# Mistral OCR 4.1 > Mistral's document OCR - turns PDFs and images into clean per-page markdown with tables, reading order, paragraph-level bounding boxes and block labels. Billed per processed page (9.3 credits/page); the first 10 pages are processed unless `pages` is given. - **Provider**: mistral-ocr - **Model ID**: mistral/ocr-4.1 - **Category**: ocr_vision - **Credits**: from 93 for the default configuration — varies by input, see Pricing - **Pricing Type**: formula ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `document` (string, **required**): URL of the document - a PDF or an image (JPEG, PNG, WEBP, GIF, BMP, TIFF, HEIF, AVIF). Mistral downloads it directly, so the URL must be publicly reachable. Up to 50MB. - `extract_footer` (boolean, optional): Return each page's running footer separately in `footer` instead of inside the markdown. - `extract_header` (boolean, optional): Return each page's running header separately in `header` instead of inside the markdown. - `include_blocks` (boolean, optional): Return paragraph-level bounding boxes and block labels in `blocks` (on by default upstream). Set false for markdown only. - `pages` (array, optional): 0-based page indexes to process. Defaults to the first 10 pages. Indexes beyond the end of the document are ignored and not billed - you pay for pages actually processed. Images are always one page. (Default: `[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]`) - `table_format` (string, optional): How tables are written inside the page markdown. Omit for Mistral's default (inline markdown tables). (Options: `markdown`, `html`) ## Example Request ```json { "model": "mistral/ocr-4.1", "input": { "document": "https://arxiv.org/pdf/2201.04234", "pages": [ 0, 1 ] } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "mistral-ocr", "model": "mistral/ocr-4.1", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null, "credits_used": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` When the job is `completed`, `result` holds the output URL(s) or data and `credits_used` the net credits charged. When it is `failed`, `error` and `error_code` say why and the charge is refunded. ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Pricing - Formula: `9.3 * max(1, min(min(1000, pages), done))` credits - `done`: 1,000 - `pages`: the `pages` input (default 1,000) Default configuration: 93 credits. These are list prices. The amount charged is rounded, and large charges are discounted progressively. `POST /predictions/estimate` with the same `model` and `input` returns the charge for that input without creating a job (an estimate when the price depends on the output). ## Output Type json ## Tags mistral, ocr, document, pdf, markdown ## Documentation https://docs.mistral.ai/models/ocr-4-1