Capability · OCR
Turn documents into structured markdown.
Extract text and layout from scanned forms, faxes and PDFs — page-billed, PHI-eligible via Azure, and resident in Switzerland, the EU or the US.
POST /v1/ocr
What you get
Built for regulated workloads
OCR is the one endpoint that is not OpenAI-shaped — OpenAI has no OCR equivalent — so /v1/ocr uses the Mistral-native request (a document plus optional page range and table format) and returns per-page markdown. It is available in Switzerland, the EU and the US; elsewhere it returns no_route.
PHI on Azure
Tables & structure
Resident extraction
Availability & pricing
Where it runs, what it costs
Every route is region-resident and the PHI gate is enforced per call. Prices include the flat +10% gateway margin and mirror the live /v1/pricing rate card.
| Region | Provider | Model | Tier | Price |
|---|---|---|---|---|
| CH | Azure Doc Intelligence | OCR | PHI | $0.00165 / page |
| EU | Mistral OCR | OCR | General | $0.0022 / page |
| EU | Azure Doc Intelligence | OCR | PHI | $0.00165 / page |
| US | Azure Doc Intelligence | OCR | PHI | $0.00165 / page |
| Other | — | OCR | No route | CH/EU/US only |
Billed per page (Mistral OCR with annotations is priced higher). Gateway margin included. Mistral OCR carries general traffic only; PHI OCR is Azure.
Try it
A real call, end to end
OCR a scanned referral in Switzerland; get markdown back, page by page.
curl https://phi-cloud.com/api/v1/ocr \
-H "Authorization: Bearer $PHI_API_KEY" \
-H "X-Region: CH" \
-H "X-PHI: true" \
-H "Content-Type: application/json" \
-d '{ "document": "data:application/pdf;base64,JVBER..." }'x-phi-routed: azure-docintel-ocr/CH/phi
x-phi-tier: phi
{ "pages": [{ "index": 0, "markdown": "# Referral..." }],
"pageCount": 3 }Residency & coverage
- CH OCR → Azure Document Intelligence (Switzerland), PHI-eligible.
- EU OCR → Mistral OCR (general) or Azure (PHI).
- US OCR → Azure, PHI-eligible.
- Every other region → no_route. OCR is CH/EU/US only.
FAQ
Common questions
Ready when you are
Put document ocr in production — without giving up your data.
Spin up a key in minutes. The residency and PHI posture above arrives unchanged.
Free to test · Prepaid credits, no subscription · No data retained