Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Body

application/json

input

model
string
required

ID of the model to use for OCR.

document
object
required

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

pages
integer[] | null

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

ocr_settings
object

Optional settings for the OCR run

Response

200 - application/json

Represents an OCR response from the API.

model
string
required

ID of the model used for OCR.

pages
object[]
required
usage
object
required

The usage information for the OCR run counted as pages processed