OCR

Run OCR

Document-AI workload: send a handwritten, scanned, or printed document (PDF or image) by URL or as base64, and get clean, structured Markdown back. Billed per page.

post/ocr

Request

  • Base URL
    https://api.munito.ai/inference/v1
  • URL
    https://api.munito.ai/inference/v1/ocr
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Headers

munito-service-tier'priority' | 'standard' | 'flex'

priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit. See Service tiers.

prefer'respond-async'

respond-async: answer 202 at once. Then poll the location until the request finishes.

Request body

modelstring

An OCR model id from GET /models. Omit it, or send munito/ocr-auto, to let Munito pick.

pagesinteger[]

Zero-based page numbers to read, each one time, at most 1000. A negative or repeated number, or a number past the last page, answers 422. Omit it to read every page.

confidence_scoresboolean

Return a confidence per page.

extractstring[]

Page parts to move from the page text into their own fields.

preferred_region'global' | 'eu' | 'us'

Where the request can run. Omit it to use the default region of the organization.

Response

The OCR result, when the request finishes within the synchronous wait.

Changes

No recorded changes to this operation across all 1 revision of this API.