# OCRRouter > One API for every OCR model. Send a PDF or image to one endpoint and get Markdown or JSON back from any OCR model, with automatic fallback and pay-per-page credits. ## API - Endpoint: POST https://api.ocrrouter.ai/v1/ocr - Auth: Authorization: Bearer - Body: { "model": "|auto", "file_url": "", "format": "markdown|json", "fallbacks": [""], "route": "cheapest|fastest|quality" } - Pricing: credits per page, $1 = 1000 credits, 200 free credits on sign-up. Failed and cached requests are free. - File to link: POST https://api.ocrrouter.ai/v1/files (multipart: file, public=true) returns a public "url" for any file type. Use it as file_url. - [Docs](https://ocrrouter.ai/docs) - [Pricing](https://ocrrouter.ai/pricing) ## Models - [mistral/mistral-ocr](https://ocrrouter.ai/models/mistral/mistral-ocr): Fast document OCR that returns clean Markdown with tables and embedded images. 6 credits per page. - [google/gemini-flash](https://ocrrouter.ai/models/google/gemini-flash): General vision model with strong handwriting and layout understanding at a low price. 3 credits per page. - [openai/gpt](https://ocrrouter.ai/models/openai/gpt): General vision model. Good at messy scans and following extraction instructions. 11 credits per page. - [anthropic/claude](https://ocrrouter.ai/models/anthropic/claude): General vision model with careful reading of long, dense documents. 14 credits per page. - [llamaindex/llamaparse](https://ocrrouter.ai/models/llamaindex/llamaparse): Document parser built for RAG pipelines, with several quality tiers. 5 credits per page. - [mathpix/convert](https://ocrrouter.ai/models/mathpix/convert): Specialist for math, science papers and handwritten formulas. Outputs LaTeX. 7 credits per page. - [reducto/parse](https://ocrrouter.ai/models/reducto/parse): High-accuracy parsing for complex financial and legal documents, with citations. 20 credits per page. - [datalab/marker](https://ocrrouter.ai/models/datalab/marker): Hosted version of the open-source Marker and Surya models. Strong on books and papers. 14 credits per page. - [aws/textract](https://ocrrouter.ai/models/aws/textract): AWS OCR with form key-value pairs, tables and per-word confidence scores. 6 credits per page. - [azure/document-intelligence](https://ocrrouter.ai/models/azure/document-intelligence): Azure layout model with tables, selection marks and prebuilt invoice and ID readers. 15 credits per page. - [google/document-ai](https://ocrrouter.ai/models/google/document-ai): Google Cloud OCR with layout parsing and specialised processors. 3 credits per page. - [deepseek/deepseek-ocr](https://ocrrouter.ai/models/deepseek/deepseek-ocr): Open-source vision model that compresses pages into few tokens. 1 credits per page. - [jina/jina-ocr](https://ocrrouter.ai/models/jina/jina-ocr): Compact page-to-Markdown model from Jina AI, built on the DeepSeek-OCR encoder. 1 credits per page. - [baidu/qianfan-ocr](https://ocrrouter.ai/models/baidu/qianfan-ocr): Baidu's OCR-tuned vision model. Strong on Chinese documents and tables. 1 credits per page. - [paddle/paddleocr-vl](https://ocrrouter.ai/models/paddle/paddleocr-vl): Open-source document model from Baidu. Excellent on Chinese, Japanese and Korean. 2 credits per page. - [zai/glm-ocr](https://ocrrouter.ai/models/zai/glm-ocr): Small open-source OCR model from Z.ai with layout regions. MIT licensed. 2 credits per page. - [baidu/unlimited-ocr](https://ocrrouter.ai/models/baidu/unlimited-ocr): Open-source model from Baidu that reads hundreds of pages in one pass with flat memory use. 2 credits per page. - [opendatalab/mineru](https://ocrrouter.ai/models/opendatalab/mineru): Open-source PDF to Markdown pipeline popular for academic and Chinese documents. 2 credits per page. - [ibm/docling](https://ocrrouter.ai/models/ibm/docling): IBM's open-source document converter with a structured document model. 2 credits per page. - [tesseract/tesseract](https://ocrrouter.ai/models/tesseract/tesseract): The classic open-source OCR engine. Plain text from clean printed scans. Free. ## Free tools - [PDF to Markdown](https://ocrrouter.ai/tools/pdf-to-markdown): Upload a PDF and get clean Markdown with headings, tables and formulas. Works on scanned PDFs too. - [PDF to text](https://ocrrouter.ai/tools/pdf-to-text): Extract plain text from any PDF, including scanned and image-only files. - [Image to text](https://ocrrouter.ai/tools/image-to-text): Extract text from photos, screenshots and scans. JPG, PNG and WebP are supported. - [Handwriting to text](https://ocrrouter.ai/tools/handwriting-to-text): Turn handwritten notes, letters and forms into editable text. Cursive works too. - [PDF to JSON](https://ocrrouter.ai/tools/pdf-to-json): Get every heading, paragraph and table in a PDF as structured JSON with page positions. - [PDF to link](https://ocrrouter.ai/tools/pdf-to-link): Upload a PDF and get a URL you can paste into a chat, an email or an API call. It opens in the browser, no download needed. - [Image to link](https://ocrrouter.ai/tools/image-to-link): Upload a JPG, PNG, WebP or GIF and get a direct image URL. Use it in Markdown, HTML, a chat or a vision API. - [Video to link](https://ocrrouter.ai/tools/video-to-link): Upload a short MP4 or WebM clip and get a link that plays in the browser. - [MP3 to link](https://ocrrouter.ai/tools/mp3-to-link): Upload an audio file and get a link that plays in the browser. MP3, WAV, M4A and OGG are supported. - [File to link](https://ocrrouter.ai/tools/file-to-link): Upload a document, image, archive or any other file and get a URL for it. No account needed. ## OCR by document and language - [Invoice OCR](https://ocrrouter.ai/ocr/invoice): Turn PDF and scanned invoices into line items, totals and supplier details you can post straight to your accounting system. - [Receipt OCR](https://ocrrouter.ai/ocr/receipt): Read crumpled, faded and photographed receipts and get merchant, date, items and totals back as JSON. - [Passport OCR](https://ocrrouter.ai/ocr/passport): Extract the machine-readable zone and the printed fields from passport photos and scans for KYC and onboarding flows. - [Bank statement OCR](https://ocrrouter.ai/ocr/bank-statement): Convert bank statement PDFs into clean transaction rows for lending, bookkeeping and reconciliation. - [ID card OCR](https://ocrrouter.ai/ocr/id-card): Read national ID cards and driver licences from a phone photo and return the printed fields. - [Resume OCR](https://ocrrouter.ai/ocr/resume): Parse resumes and CVs in any layout into structured work history, education and skills. - [Table OCR](https://ocrrouter.ai/ocr/table): Pull tables out of PDFs and images with merged cells and multi-row headers intact, as Markdown or as rows. - [Contract OCR](https://ocrrouter.ai/ocr/contract): Convert long scanned contracts to clean Markdown with headings and clause numbering preserved, ready for review or search. - [Handwriting OCR](https://ocrrouter.ai/ocr/handwriting): Read handwritten notes, forms and letters, including cursive, and get editable text back. - [Math OCR](https://ocrrouter.ai/ocr/math): Convert printed and handwritten equations, worksheets and papers to LaTeX inside Markdown. - [Chinese OCR](https://ocrrouter.ai/ocr/chinese): Read Simplified and Traditional Chinese from scans, screenshots and photos, including vertical text. - [Japanese OCR](https://ocrrouter.ai/ocr/japanese): Read Japanese documents with kanji, kana and furigana, in horizontal or vertical layout. - [Korean OCR](https://ocrrouter.ai/ocr/korean): Read Korean printed and handwritten text, including documents with Hanja. - [Arabic OCR](https://ocrrouter.ai/ocr/arabic): Read Arabic right-to-left text with correct letter joining and diacritics. - [Vietnamese OCR](https://ocrrouter.ai/ocr/vietnamese): Read Vietnamese with every tone mark in place, from IDs, invoices and scanned books. - [Hindi OCR](https://ocrrouter.ai/ocr/hindi): Read Hindi and other Devanagari text, including conjunct characters. - [Thai OCR](https://ocrrouter.ai/ocr/thai): Read Thai text, which has no spaces between words and vowels above and below the line. - [Russian OCR](https://ocrrouter.ai/ocr/russian): Read Russian and other Cyrillic text from documents, including handwriting. - [Turkish OCR](https://ocrrouter.ai/ocr/turkish): Read Turkish with dotted and dotless i, ğ, ş and ç kept exactly right. - [Hebrew OCR](https://ocrrouter.ai/ocr/hebrew): Read Hebrew right-to-left text, with or without vowel points. - [German OCR](https://ocrrouter.ai/ocr/german): Read German documents, including older Fraktur prints, with umlauts and ß preserved. - [Spanish OCR](https://ocrrouter.ai/ocr/spanish): Read Spanish documents with accents, ñ and inverted punctuation kept intact.