Router

POST /v2/router/ocr

Changed on

Extracts text content while maintaining document structure and hierarchy

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/router/ocr
  • Auth
    HTTP bearer

Request body

modelstring required

ID of the model to use for OCR.

pagesinteger[] nullable

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

Example request

{
  "model": "mistral/mistral-ocr-4-0",
  "document": {
    "document_url": "https://example.com/invoice.pdf"
  }
}

Response

Represents an OCR response from the API.

modelstring required

ID of the model used for OCR.

Changes