Skip to main content
POST
cURL
Related guide: OCR guide. See the OCR guide for a walkthrough with examples.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
document
object
required

Document to run OCR on. Can be a DocumentURLChunk or ImageURLChunk.

model
string
required

ID of the model to use for OCR.

ocr_settings
object

Optional settings for the OCR run

pages
integer<int64>[] | null

Specific pages to process. Can be a single number, range, or list. Starts from 0. Null for all pages.

Response

Represents an OCR response from the API.

model
string
required

ID of the model used for OCR.

pages
object[] | null
required
usage
object
required

The usage information for the OCR run counted as pages processed