Pular para o conteúdo principal
POST
cURL
Guia relacionado: guia de OCR. Consulte o guia de OCR para um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json

input

model
string
obrigatório

ID of the model to use for OCR.

Exemplo:

"mistral/mistral-ocr-4-0"

document
object
obrigatório

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

Resposta

Represents an OCR response from the API.

model
string
obrigatório

ID of the model used for OCR.

pages
object[]
obrigatório
usage
object
obrigatório

The usage information for the OCR run counted as pages processed