Skip to content

Commit c59bec0

Browse files
Merge pull request #371 from mistralai/doc/v0.1.33
Update docs to v0.1.33
2 parents d262718 + 2a7d138 commit c59bec0

File tree

19 files changed

+625
-275
lines changed

19 files changed

+625
-275
lines changed

changelog/2025-05-22.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ id: 2025-05-22
33
date: 2025-05-22
44
---
55

6-
- We released Mistral OCR 2505 (`mistral-ocr-2505`) and [annotations](/capabilities/OCR/annotations). <Tag model/> <Tag api/>
6+
- We released Mistral OCR 2 (`mistral-ocr-2505`) and [annotations](/capabilities/OCR/annotations). <Tag model/> <Tag api/>

changelog/2025-12-18.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
id: 2025-12-18
3+
date: 2025-12-18
4+
---
5+
6+
- We released OCR 3 (`mistral-ocr-2512`). <Tag model/>
7+
- Introducing `table_format` in our OCR API, allowing you to choose between `markdown` and `html` for table formatting. <Tag api/>
8+
- Introducing `extract_footer`, `extract_header` in our OCR API, as well as `hyperlinks` output. <Tag api/>

openapi.yaml

Lines changed: 216 additions & 87 deletions
Large diffs are not rendered by default.

public/img/basic_ocr_graph.png

-35.5 KB
Loading
281 KB
Loading

src/app/(docs)/capabilities/document_ai/basic_ocr/ocr_with_image_base64_tab/_page.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ocr_response = client.ocr.process(
2727
"type": "image_url",
2828
"image_url": f"data:image/jpeg;base64,{base64_image}"
2929
},
30+
# table_format="markdown",
3031
include_image_base64=True
3132
)
3233
```
@@ -57,6 +58,7 @@ const ocrResponse = await client.ocr.process({
5758
type: "image_url",
5859
imageUrl: "data:image/jpeg;base64," + base64Image
5960
},
61+
// tableFormat: "markdown",
6062
includeImageBase64: true
6163
});
6264
```
@@ -74,6 +76,7 @@ curl https://api.mistral.ai/v1/ocr \
7476
"type": "image_url",
7577
"image_url": "data:image/jpeg;base64,<base64_image>"
7678
},
79+
"table_format": "markdown",
7780
"include_image_base64": true
7881
}' -o ocr_output.json
7982
```

src/app/(docs)/capabilities/document_ai/basic_ocr/ocr_with_image_url_tab/_page.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ocr_response = client.ocr.process(
1919
"type": "image_url",
2020
"image_url": "https://raw.githubusercontent.com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png"
2121
},
22+
# table_format="markdown",
2223
include_image_base64=True
2324
)
2425
```
@@ -39,6 +40,7 @@ const ocrResponse = await client.ocr.process({
3940
type: "image_url",
4041
imageUrl: "https://raw.githubusercontent.com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png",
4142
},
43+
// tableFormat: "markdown",
4244
includeImageBase64: true
4345
});
4446
```
@@ -56,6 +58,7 @@ curl https://api.mistral.ai/v1/ocr \
5658
"type": "image_url",
5759
"image_url": "https://raw.githubusercontent.com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png"
5860
},
61+
"table_format": "markdown",
5962
"include_image_base64": true
6063
}' -o ocr_output.json
6164
```

src/app/(docs)/capabilities/document_ai/basic_ocr/ocr_with_pdf_base64_tab/_page.mdx

Lines changed: 95 additions & 71 deletions
Large diffs are not rendered by default.

src/app/(docs)/capabilities/document_ai/basic_ocr/ocr_with_pdf_uploaded_tab/_page.mdx

Lines changed: 51 additions & 21 deletions
Large diffs are not rendered by default.

src/app/(docs)/capabilities/document_ai/basic_ocr/ocr_with_pdf_url_tab/_page.mdx

Lines changed: 95 additions & 71 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)