changedInput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
removedInput schema / additionalProperties
Removed value: -false
removedInput schema / properties / bbox_annotation_format / additionalProperties
Removed value: -false
addedInput schema / properties / bbox_annotation_format / description
Added value: +"JSON Schema for structured annotations of each extracted bounding box or image."
removedInput schema / properties / bbox_annotation_format / properties / json_schema / additionalProperties
Removed value: -false
addedInput schema / properties / bbox_annotation_format / properties / json_schema / description
Added value: +"Named JSON Schema and optional strictness for the extracted annotation."
addedInput schema / properties / bbox_annotation_format / properties / json_schema / properties / description / description
Added value: +"Description of the annotation to extract."
addedInput schema / properties / bbox_annotation_format / properties / json_schema / properties / name / description
Added value: +"Name identifying the annotation schema."
addedInput schema / properties / bbox_annotation_format / properties / json_schema / properties / schema / description
Added value: +"JSON Schema object defining the fields to extract into the annotation."
addedInput schema / properties / bbox_annotation_format / properties / json_schema / properties / schema / propertyNames
Added value: +{
+ "type": "string"
+}
addedInput schema / properties / bbox_annotation_format / properties / json_schema / properties / strict / description
Added value: +"Whether the annotation must strictly follow the supplied JSON Schema."
addedInput schema / properties / confidence_scores_granularity / description
Added value: +"Confidence granularity. 'block' also fills pages[].blocks[].confidence_scores and requires OCR 4.1 (mistral-ocr-4-1) or newer."
changedInput schema / properties / confidence_scores_granularity / enum
Previous value: -[
- "page",
- "word"
-]New value: +[
+ "page",
+ "word",
+ "block"
+]
changedInput schema / properties / document / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "documentName": {
- "type": "string"
- },
- "documentUrl": {
- "description": "HTTPS URL to a PDF or image.",
- "type": "string"
- },
- "type": {
- "const": "document_url",
- "type": "string"
- }
- },
- "required": [
- "type",
- "documentUrl"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "imageUrl": {
- "description": "HTTPS URL or data:image/...;base64,... payload.",
- "type": "string"
- },
- "type": {
- "const": "image_url",
- "type": "string"
- }
- },
- "required": [
- "type",
- "imageUrl"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fileId": {
- "description": "ID of a file previously uploaded via the Files API.",
- "type": "string"
- },
- "type": {
- "const": "file",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fileId"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "documentName": {
+ "description": "Filename of the referenced document.",
+ "type": "string"
+ },
+ "documentUrl": {
+ "description": "HTTPS URL to a PDF or image.",
+ "type": "string"
+ },
+ "type": {
+ "const": "document_url",
+ "description": "Read the document from documentUrl.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "documentUrl"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "imageUrl": {
+ "description": "HTTPS URL or data:image/...;base64,... payload.",
+ "type": "string"
+ },
+ "type": {
+ "const": "image_url",
+ "description": "Read the image from the URL or data URI in imageUrl.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "imageUrl"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "fileId": {
+ "description": "ID of a file previously uploaded via the Files API.",
+ "type": "string"
+ },
+ "type": {
+ "const": "file",
+ "description": "Read a previously uploaded file identified by fileId.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fileId"
+ ],
+ "type": "object"
+ }
+]
addedInput schema / properties / document / description
Added value: +"Document to process, supplied as a document URL, an image URL or data URI, or an uploaded file ID."
removedInput schema / properties / document_annotation_format / $ref
Removed value: -"#/properties/bbox_annotation_format"
addedInput schema / properties / document_annotation_format / description
Added value: +"JSON Schema for a structured annotation extracted from the entire document."
addedInput schema / properties / document_annotation_format / properties
Added value: +{
+ "json_schema": {
+ "description": "Named JSON Schema and optional strictness for the extracted annotation.",
+ "properties": {
+ "description": {
+ "description": "Description of the annotation to extract.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Name identifying the annotation schema.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema": {
+ "additionalProperties": {},
+ "description": "JSON Schema object defining the fields to extract into the annotation.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "strict": {
+ "description": "Whether the annotation must strictly follow the supplied JSON Schema.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "name",
+ "schema"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "json_schema",
+ "description": "Only json_schema is accepted by OCR annotation formats.",
+ "type": "string"
+ }
+}
addedInput schema / properties / document_annotation_format / required
Added value: +[
+ "type",
+ "json_schema"
+]
addedInput schema / properties / document_annotation_format / type
Added value: +"object"
addedInput schema / properties / document_annotation_prompt / description
Added value: +"Instructions for whole-document structured extraction. Requires document_annotation_format."
addedInput schema / properties / extractFooter / description
Added value: +"Extract each page footer into its footer field and remove it from the page markdown."
addedInput schema / properties / extractHeader / description
Added value: +"Extract each page header into its header field and remove it from the page markdown."
addedInput schema / properties / imageLimit / description
Added value: +"Maximum number of images to extract from the document."
addedInput schema / properties / imageLimit / maximum
Added value: +9007199254740991
addedInput schema / properties / imageMinSize / description
Added value: +"Minimum height and width of an image to extract."
addedInput schema / properties / imageMinSize / maximum
Added value: +9007199254740991
addedInput schema / properties / includeBlocks
Added value: +{
+ "description": "Return paragraph-level blocks (bounding box + type) per page. Requires OCR 4 (mistral-ocr-4-0) or newer.",
+ "type": "boolean"
+}
addedInput schema / properties / includeImageBase64 / description
Added value: +"Include base64-encoded data for extracted images in the response."
removedInput schema / properties / model / enum
Removed value: -[
- "mistral-ocr-latest"
-]
addedInput schema / properties / model / maxLength
Added value: +200
addedInput schema / properties / model / minLength
Added value: +1
changedInput schema / properties / pages / anyOf
Previous value: -[
- {
- "type": "string"
- },
- {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "type": "array"
- }
-]New value: +[
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "array"
+ }
+]
addedInput schema / properties / pages / description
Added value: +"Zero-based page numbers to process, as an array or comma-separated numbers and ranges such as \"0-5,7\"."
addedInput schema / properties / tableFormat / description
Added value: +"Format for extracted tables: Markdown or HTML."
changedOutput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
addedOutput schema / properties / annotations / properties / image_annotations / items / properties / page_index / maximum
Added value: +9007199254740991
addedOutput schema / properties / annotations / properties / image_annotations / items / properties / page_index / minimum
Added value: +-9007199254740991
addedOutput schema / properties / pages / items / properties / blocks
Added value: +{
+ "description": "Paragraph-level blocks in reading order. Populated when `includeBlocks: true` and the model is OCR 4 or newer.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "bottom_right_x": {
+ "type": "number"
+ },
+ "bottom_right_y": {
+ "type": "number"
+ },
+ "confidence_scores": {
+ "additionalProperties": false,
+ "description": "Populated only when `confidence_scores_granularity: 'block'`. Fields are null when the signal is absent (an image-only block has no content to score).",
+ "properties": {
+ "average_content_confidence_score": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "block_type_confidence_score": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "minimum_content_confidence_score": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "content": {
+ "type": "string"
+ },
+ "image_id": {
+ "description": "Set on type:image — references the matching entry in `images[]`.",
+ "type": "string"
+ },
+ "table_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Set on type:table — references the matching entry in `tables[]`."
+ },
+ "top_left_x": {
+ "type": "number"
+ },
+ "top_left_y": {
+ "type": "number"
+ },
+ "type": {
+ "enum": [
+ "text",
+ "title",
+ "list",
+ "table",
+ "image",
+ "equation",
+ "caption",
+ "code",
+ "references",
+ "aside_text",
+ "header",
+ "footer",
+ "signature"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "top_left_x",
+ "top_left_y",
+ "bottom_right_x",
+ "bottom_right_y",
+ "content"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
addedOutput schema / properties / pages / items / properties / confidence_scores / properties / word_confidence_scores / items / properties / start_index / maximum
Added value: +9007199254740991
addedOutput schema / properties / pages / items / properties / confidence_scores / properties / word_confidence_scores / items / properties / start_index / minimum
Added value: +-9007199254740991
addedOutput schema / properties / pages / items / properties / footer / anyOf
Added value: +[
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+]
removedOutput schema / properties / pages / items / properties / footer / type
Removed value: -[
- "string",
- "null"
-]
addedOutput schema / properties / pages / items / properties / header / anyOf
Added value: +[
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+]
removedOutput schema / properties / pages / items / properties / header / type
Removed value: -[
- "string",
- "null"
-]
addedOutput schema / properties / pages / items / properties / index / maximum
Added value: +9007199254740991
addedOutput schema / properties / pages / items / properties / index / minimum
Added value: +-9007199254740991
addedOutput schema / properties / pages_count / maximum
Added value: +9007199254740991
addedOutput schema / properties / pages_count / minimum
Added value: +-9007199254740991