MistralOcrRequest
The admitted OCR request. `document` and `pages` are required; unlisted fields are rejected with a `400`, and the request forwarded upstream is rebuilt from exactly these fields.
Properties
| Name | Type | Description |
|---|---|---|
| model | string | Pinned. Optional to send, but no other value — including the `mistral-ocr-latest` alias — is accepted, because an alias can re-point to a model at a different price. |
| document | object | What to read — one of the two admitted URL chunks. Mistral's third chunk type, a `file_id` handle to a file on the account, is denied. |
| pages | object | Which pages to read — **required**, and the basis for both the balance preflight and the charge. Zero-based, at most 100 unique pages per request, and each index at most 9999. A repeated or overlappin |
| table_format | object | How tables come back in the page markdown. `null` leaves Mistral's own default in place. |
| extract_header | boolean | Whether page headers are extracted alongside the body text. |
| extract_footer | boolean | Whether page footers are extracted alongside the body text. |
| confidence_scores_granularity | object | Ask for per-page confidence scores. Only `page` (or `null`) is admitted; Mistral's `word` granularity is denied, since a score per word multiplies the response size without changing what is metered. |
| include_blocks | boolean | Always forwarded as `false`. Sending `true` is rejected rather than silently rewritten. |
| include_image_base64 | boolean | Always forwarded as `false`. Sending `true` is rejected rather than silently rewritten — extracted image bytes are neither metered nor buffered here. |
| document_annotation_format | object | |
| bbox_annotation_format | object | |
| document_annotation_prompt | string | Plain-language instructions for the annotation pass. On its own it does not change the rate — only an annotation format does. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/nativeport-ai/json-schema/nativeport-ai-mistral-ocr-request-schema.json",
"title": "MistralOcrRequest",
"description": "The admitted OCR request. `document` and `pages` are required; unlisted fields are rejected\nwith a `400`, and the request forwarded upstream is rebuilt from exactly these fields.\n",
"x-generated": "2026-11-19",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/nativeport-ai-openapi.yml#/components/schemas/MistralOcrRequest",
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"mistral-ocr-4-0"
],
"description": "Pinned. Optional to send, but no other value — including the `mistral-ocr-latest` alias — is accepted, because an alias can re-point to a model at a different price."
},
"document": {
"$ref": "#/$defs/MistralOcrRequestDocument",
"description": "What to read — one of the two admitted URL chunks. Mistral's third chunk type, a `file_id` handle to a file on the account, is denied."
},
"pages": {
"$ref": "#/$defs/MistralOcrRequestPages",
"description": "Which pages to read — **required**, and the basis for both the balance preflight and the\ncharge. Zero-based, at most 100 unique pages per request, and each index at most 9999. A\nrepeated or overlapping selection is refused rather than deduplicated, so a request always\ncosts what it looks like it costs. Either spelling works: an integer array, or a string of\ncomma-separated indices and ascending `start-end` ranges.\n"
},
"table_format": {
"$ref": "#/$defs/MistralOcrRequestTableFormat",
"description": "How tables come back in the page markdown. `null` leaves Mistral's own default in place."
},
"extract_header": {
"type": "boolean",
"description": "Whether page headers are extracted alongside the body text."
},
"extract_footer": {
"type": "boolean",
"description": "Whether page footers are extracted alongside the body text."
},
"confidence_scores_granularity": {
"$ref": "#/$defs/MistralOcrRequestConfidenceScoresGranularity",
"description": "Ask for per-page confidence scores. Only `page` (or `null`) is admitted; Mistral's `word` granularity is denied, since a score per word multiplies the response size without changing what is metered."
},
"include_blocks": {
"type": "boolean",
"enum": [
false
],
"description": "Always forwarded as `false`. Sending `true` is rejected rather than silently rewritten."
},
"include_image_base64": {
"type": "boolean",
"enum": [
false
],
"description": "Always forwarded as `false`. Sending `true` is rejected rather than silently rewritten — extracted image bytes are neither metered nor buffered here."
},
"document_annotation_format": {
"$ref": "#/$defs/MistralAnnotationFormat"
},
"bbox_annotation_format": {
"$ref": "#/$defs/MistralAnnotationFormat"
},
"document_annotation_prompt": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "Plain-language instructions for the annotation pass. On its own it does not change the rate — only an annotation format does."
}
},
"required": [
"document",
"pages"
],
"$defs": {
"MistralAnnotationFormat": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"json_schema"
]
},
"json_schema": {
"$ref": "#/$defs/MistralAnnotationFormatJsonSchema"
}
},
"required": [
"type",
"json_schema"
],
"description": "Mistral's `json_schema` response format, at most 8,192 bytes serialized. Used for both\n`document_annotation_format` (fields drawn from the whole document) and\n`bbox_annotation_format` (labels for each detected figure); either one prices the call at the\nDocument AI rate.\n",
"title": "MistralAnnotationFormat"
},
"MistralAnnotationFormatJsonSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "A short identifier for the schema — 1–64 letters, digits, `_`, or `-`."
},
"schema": {
"type": "object",
"additionalProperties": {
"description": "Any type"
},
"description": "The JSON Schema describing what to extract."
},
"description": {
"type": "string"
},
"strict": {
"type": "boolean"
}
},
"required": [
"name",
"schema"
],
"title": "MistralAnnotationFormatJsonSchema"
},
"MistralDocumentUrlChunk": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"document_url"
]
},
"document_url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "A public `https` URL — signed, time-limited links are the intended use. Refused: any other\nscheme, an embedded `user:password`, an IP-literal host in any spelling, a single-label or\n`.localhost`/`.local`/`.internal` hostname.\n"
},
"document_name": {
"type": "string",
"pattern": "^[A-Za-z0-9._()-]+$",
"maxLength": 256,
"description": "Optional label Mistral echoes back in its response. A plain filename — letters, digits, `.`, `_`, `-`, and parentheses; no spaces, quotes, or path separators."
}
},
"required": [
"type",
"document_url"
],
"description": "A document (PDF and the other formats Mistral's OCR accepts) that Mistral fetches itself, from its own network, at the URL you give it.",
"title": "MistralDocumentUrlChunk"
},
"MistralImageUrlChunk": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image_url"
]
},
"image_url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "A public `https` URL, under the same URL policy as `document_url`."
}
},
"required": [
"type",
"image_url"
],
"description": "A single image to read, fetched by Mistral from the URL you give it.",
"title": "MistralImageUrlChunk"
},
"MistralOcrRequestConfidenceScoresGranularity": {
"type": "string",
"enum": [
"page"
],
"description": "Ask for per-page confidence scores. Only `page` (or `null`) is admitted; Mistral's `word` granularity is denied, since a score per word multiplies the response size without changing what is metered.",
"title": "MistralOcrRequestConfidenceScoresGranularity"
},
"MistralOcrRequestDocument": {
"oneOf": [
{
"$ref": "#/$defs/MistralDocumentUrlChunk"
},
{
"$ref": "#/$defs/MistralImageUrlChunk"
}
],
"description": "What to read — one of the two admitted URL chunks. Mistral's third chunk type, a `file_id` handle to a file on the account, is denied.",
"title": "MistralOcrRequestDocument"
},
"MistralOcrRequestPages": {
"oneOf": [
{
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9999
}
},
{
"type": "string",
"maxLength": 1000
}
],
"description": "Which pages to read — **required**, and the basis for both the balance preflight and the\ncharge. Zero-based, at most 100 unique pages per request, and each index at most 9999. A\nrepeated or overlapping selection is refused rather than deduplicated, so a request always\ncosts what it looks like it costs. Either spelling works: an integer array, or a string of\ncomma-separated indices and ascending `start-end` ranges.\n",
"title": "MistralOcrRequestPages"
},
"MistralOcrRequestTableFormat": {
"type": "string",
"enum": [
"markdown",
"html"
],
"description": "How tables come back in the page markdown. `null` leaves Mistral's own default in place.",
"title": "MistralOcrRequestTableFormat"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/nativeport-ai-mistral-ocr-request"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.