OCR

Extract text and structure from a document or image as markdown using an OCR model.

post/v1/ocr

Request body

modelstring required

ID of the OCR model to use.

idstring
include_image_base64boolean

Whether to return extracted images as base64 in the response.

image_limitinteger
image_min_sizeinteger
bbox_annotation_formatobject
document_annotation_formatobject

Example request

{
  "model": "mistral-ocr-latest",
  "document": {
    "document_url": "https://arxiv.org/pdf/2201.04234"
  }
}

Response

OCR response.

modelstring
document_annotationstring nullable

Changes

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