How to Use Mistral document text extraction in Gemini
Mistral OCR 3 extracts text, tables, and embedded images from PDFs and images into page-based Markdown. Use it to turn scanned reports and complex tables into material an agent can search, compare, or analyze.
Prompts to try with Mistral document text extraction in Gemini
Copy an example into Gemini, or ask in your own words.
Use Mistral document text extraction on Microsoft's 2024 annual report PDF and show the extracted income statement with its original headings.
Use Mistral document text extraction on https://arxiv.org/pdf/2201.04234 and explain the abstract using the extracted text.
Use Mistral document text extraction on Apple's 2024 annual report PDF and extract the product sales table, keeping the reporting periods clear.
Use Mistral document text extraction on the Mistral 7B paper at https://arxiv.org/pdf/2310.06825 and organize the extracted benchmark tables by section.
Use Mistral document text extraction on Berkshire Hathaway's 2024 annual report PDF and list the section headings from the extracted text.
How to set up Mistral document text extraction in Gemini
Pick the way that suits you. Each takes about two minutes.
Use the Gemini connector
- Open Connected Apps
On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.
- Add Spiral as a custom app
Under Custom apps, click Add a custom app and paste this MCP server URL:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.
Use the Spiral skill
- Send Gemini this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Mistral document text extraction
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "mistral", "model": "mistral-ocr-3-0", "input": { "document": { "document_url": "<document_url>" } } }'
Then paste one of the prompts above: Gemini finds Mistral document text extraction on Spiral, shows the price and runs it.
Mistral document text extraction providers and prices
Spiral runs Mistral document text extraction through Mistral. Open a card for today's price, with every fee included.
Settings you can ask for
Mistral document text extraction works from your document annotation prompt. Ask Gemini for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Image limit | a whole number | Max images to extract | |
| Table format | markdown or html | ||
| Extract footer | on or off | off | Extract the page footer into the response's |
| Extract header | on or off | off | Extract the page header into the response's |
| Image min size | a whole number | Minimum height and width of image to extract | |
| Include blocks | on or off | on | Return paragraph-level bounding boxes for all content blocks in the response |
| Include image base64 | on or off | Include image URLs in response | |
| Confidence scores granularity | word, page, or block | Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small. |
Every API field of Mistral OCR 3.0 is on its tool page: open its card above.
What can you do with Mistral document text extraction in Gemini?
Read a scanned report and compare its tables without copying the document by hand. A chat agent can use Mistral's extracted text to explain passages and organize figures from the submitted edition.
Search scanned business archives
Extract page text from archived company reports, then index it so staff can find passages without reading every scan.
Compare annual report tables
Extract financial tables from successive public annual reports and compare rows while retaining their column headings.
Prepare research papers for retrieval
Convert technical PDFs into page-based text for a research search tool, keeping extracted figures available alongside the text.
Extract operational document fields
Turn authorized supplier invoices into structured records for a reviewer to check before entering them into accounting software.
Compare manual revisions
Extract text and tables from two editions of a product manual, then identify changed specifications and instructions.
Make historical publications searchable
Transcribe scanned institutional publications into searchable text, including handwritten annotations where present.
Catalog figures in technical reports
Extract embedded figures and request captions to help readers locate relevant diagrams within a report collection.
More on Mistral document text extraction and Gemini
Overview
Mistral document text extraction in other agents
Questions about Mistral document text extraction in Gemini
Can Gemini use Mistral document text extraction?
Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Mistral document text extraction like any built-in tool.
How much does Mistral document text extraction cost in Gemini?
$0.0026 per page ($0.0039 with document or bounding-box annotations). You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.
Do I need a Mistral account to use Mistral document text extraction in Gemini?
No. Spiral runs Mistral document text extraction on its own Mistral account. You sign in to Spiral once and never paste a key.
How long does it take to set up Mistral document text extraction in Gemini?
About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.
Does Gemini wait while Mistral document text extraction runs?
Mistral document text extraction runs in the background. Gemini starts the run, checks on it and gives you the json when it's ready.
Where does the extracted information come from?
It comes from the PDF or image submitted for processing. A report's contents therefore reflect that document's edition, including any outdated figures it contains.
How large a document can Mistral OCR process?
Mistral's chunking cookbook lists typical limits of approximately 50 MB and 1,000 pages per processing call. It recommends splitting larger documents into smaller parts and combining their results.
Can OCR 3 extract tables with merged cells?
Yes. Mistral documents support for merged cells, multi-row blocks, table headers, and column hierarchies.
Does OCR 3 handle handwriting?
Mistral describes support for cursive, mixed-content annotations, and handwriting layered over printed forms. These are supported document types, rather than a published guarantee of perfect transcription.
Does OCR 3 return paragraph bounding boxes?
Mistral's current documentation says paragraph-level block extraction requires OCR 4 or newer. Do not build an OCR 3 workflow that depends on those paragraph coordinates.
Start using Mistral document text extraction in Gemini
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini:
set up https://spiral.ai/SKILL.md


