
Mistral OCR 4.0
About Mistral OCR 4.0
Optical Character Recognition or Reader (OCR) is the electronic or mechanical conversion of images of typed, handwritten or printed text into machine-encoded text. The image can be a scanned document or a photo of a license plate, a road sign or anything else that contains text (type of files allowed: jpg, jpeg, png, tiff) .
Mistral OCR 4.0 is a Mistral AI model available on Eden AI for 2 tasks: OCR, Multipage OCR, from $4 / 1K pages. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint, with processing in Europe.
Tasks and prices
Mistral OCR 4.0 is available on Eden AI for 2 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.
Parameters
What you send and what you get back when you call Mistral OCR 4.0 through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
OCR
Input
- file (required): file (PDF, images). PDF or image file ID from /v3/upload or direct file URL
- language: text. Document language code. Most providers detect the language themselves and ignore this field; providers that cannot detect it reject requests that omit it. Check
Response
- text
- bounding_boxes
Multipage OCR
Input
- file (required): file (PDF, images). PDF or image file ID from /v3/upload or direct file URL
Response
- raw_text
- pages
- number_of_pages
Estimate your monthly cost
Enter your monthly volume for OCR to compare Mistral OCR 4.0 with its cheapest alternatives.
Call Mistral OCR 4.0 with Eden AI
Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.
import requests
response = requests.post(
"https://api.edenai.run/v3/universal-ai",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "",
"input": {},
},
)
print(response.json())
curl https://api.edenai.run/v3/universal-ai \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "", "input": {}}'
const response = await fetch("https://api.edenai.run/v3/universal-ai", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "",
input: {},
}),
});
console.log(await response.json());
"file": "https://example.com/document.pdf"
Questions about Mistral OCR 4.0
On Eden AI, Mistral OCR 4.0 costs $4 / 1K pages for OCR. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Mistral OCR 4.0 is available for: OCR, Multipage OCR. Input: PDF, Image. Output: text, bounding_boxes.
Yes. Mistral OCR 4.0 is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.
Asynchronous: you start a job, then get the result by polling it or through a webhook. This suits long files such as audio, video or multipage documents.
Eden AI offers OCR from 7 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for OCR
Other OCR models you can call with the same key, cheapest first.
More from Mistral AI
Other Mistral AI models on Eden AI, for every task.

