POST
/v1/ocrExtract text + structure from a document
Credit metering
Authentication
Send your virtual key as Authorization: Bearer sk-nemo-…. One key works across every model and modality.
Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
| model | string | required |
| document | string | required |
Response200
{
"pages": [
{
"index": 0,
"markdown": "# Heading\n\nbody…"
}
]
}Errors
| Status | Meaning |
|---|---|
| 400 | 400 — Guardrail blocked the request |
| 402 | 402 — Not enough credits |
| 429 | 429 — one of: rate_limit_exceeded (RPM limit exceeded); tpm_limit_exceeded (TPM limit exceeded) |
| 503 | 503 — Credit system unavailable |