Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · DataReleased 2026-07-16

How to Use Mistral OCR document extraction in Claude Code

Extracts page-by-page Markdown, tables, images, and document structure from PDFs and images. Use it to turn reports or scanned documents into readable content, with annotations when you need structured records.

Prompts to try with Mistral OCR document extraction in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use Mistral OCR document extraction on https://arxiv.org/pdf/1706.03762 and save the page Markdown in this project's research directory.

Mistral OCR document extractionClaude Code
Try asking
  • Use Mistral OCR document extraction on https://arxiv.org/pdf/2201.04234 and build a CSV export of its extracted tables, preserving page references.

  • Use Mistral OCR document extraction on https://arxiv.org/pdf/2410.07073 and add its extracted figures and page locations to the project's document viewer.

  • Use Mistral OCR document extraction on https://arxiv.org/pdf/2302.13971 and create a heading index from the returned content blocks.

  • Use Mistral OCR document extraction on https://arxiv.org/pdf/1511.08771, split the PDF as needed for the documented limits, and assemble the results into one ordered Markdown document.

How to set up Mistral OCR document extraction in Claude Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Mistral OCR document 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-latest",
        "input": {
          "document": {
            "document_url": "<document_url>"
          }
        }
      }'

Then paste one of the prompts above: Claude Code finds Mistral OCR document extraction on Spiral, shows the price and runs it.

Mistral OCR document extraction providers and prices

Spiral runs Mistral OCR document extraction through Mistral. Open a card for today's price, with every fee included.

MistralData
Mistral OCR Latest
mistral-ocr-latest

Settings you can ask for

Mistral OCR document extraction works from your document annotation prompt. Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Image limita whole number

Max images to extract

Table formatmarkdown or html
Extract footeron or offoff

Extract the page footer into the response's footer field and remove it from the markdown content

Extract headeron or offoff

Extract the page header into the response's header field and remove it from the markdown content

Image min sizea whole number

Minimum height and width of image to extract

Include blockson or offon

Return paragraph-level bounding boxes for all content blocks in the response

Include image base64on or off

Include image URLs in response

Confidence scores granularityword, 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 Latest is on its tool page: open its card above.

What can you do with Mistral OCR document extraction in Claude Code?

Build a searchable document index from Mistral OCR's page text, tables, and images. Use paragraph bounding boxes to link search results back to the document regions they came from.

Make research papers searchable

Convert paper PDFs into Markdown and organize extracted sections by page for a research search index.

Compare tables across published reports

Extract tables from annual reports, then compare matching rows while retaining their source pages.

Turn equipment manuals into reference material

Extract manual text, tables, and diagrams so a support assistant can work from the supplied documentation.

Build a figure catalog

Collect extracted figures and their page locations, then request individual figure annotations for a browsable research catalog.

Prepare document review overlays

Use paragraph bounding boxes and structural labels to connect extracted content with the corresponding region of a document page.

Create structured report records

Use document annotations to extract selected titles, reporting periods, and other stated details into a consistent JSON structure.

Digitize multilingual publications

Extract text from English, French, German, and Spanish publications for a searchable archive that retains the original wording.

Questions about Mistral OCR document extraction in Claude Code

Can Claude Code use Mistral OCR document extraction?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Mistral OCR document extraction like any built-in tool.

How much does Mistral OCR document extraction cost in Claude Code?

$0.0052 per page ($0.0065 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 Claude Code plan is separate.

Do I need a Mistral account to use Mistral OCR document extraction in Claude Code?

No. Spiral runs Mistral OCR document 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 OCR document extraction in Claude Code?

About two minutes: add the hosted server, then sign in.

Does Claude Code wait while Mistral OCR document extraction runs?

Mistral OCR document extraction runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

How large can a document be?

Mistral's chunking cookbook identifies limits of 50 MB and 1,000 pages. For larger documents, it recommends splitting the file, processing the pieces, and combining their results.

Which languages can Mistral OCR read?

The documented OCR language list includes English, French, German, Spanish, Portuguese, Italian, Dutch, Polish, and Czech. Coverage extends beyond English-language documents.

Does document-level annotation inspect every extracted image?

It receives the OCR Markdown plus the first eight extracted image bounding boxes. For figure-heavy documents, use annotations on individual extracted figures when you need descriptions beyond that boundary.

Does the latest OCR model stay fixed?

The latest alias can change: Mistral's changelog currently points it to OCR 4.1. The OCR response also identifies which model produced the extraction.

How can I check recognition quality?

OCR 4.1 supports paragraph locations, structural labels, and block-level confidence scores, which can help target a review. Mistral also acknowledges that generated output can be inaccurate.

Get started

Start using Mistral OCR document extraction in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options