Unlimited-OCR API — Long-Document OCR via Chat Completions
Unlimited-OCR brings long-document OCR and layout understanding into the familiar chat completions API—useful when your product already speaks OpenAI multimodal.
Overview
Unlimited-OCR brings long-document OCR and layout understanding into the familiar chat completions API—useful when your product already speaks OpenAI multimodal. KeyoAPI packages it as an ocr api option next to MinerU and UVDoc on one relay bill. Instead of only emitting raw text, Unlimited-OCR emphasizes structure so LLMs can cite sections correctly. That reduces “hallucinated table cells” when finance or legal users ask questions about uploads. Token-metered at roughly $1.92 / $1.92 per 1M in/out. Great when document sizes vary wildly and per-page billing is a poor fit. Chat-with-PDF features, mobile document capture, and agent tools that read screenshots. Pre-unwarp with UVDoc when pages are curved. Send multimodal chat messages with model=Unlimited-OCR. Keys and samples: /pricing/Unlimited-OCR. Unlimited-OCR stays on chat completions so existing multimodal clients can paste images/PDFs without a second SDK; use MinerU when you need dedicated async parse jobs. Unlimited-OCR is for product surfaces that already speak multimodal chat: the user pastes a screenshot and asks a question in one turn. Send an image part plus a text instruction asking for structured JSON or markdown tables. Validate the schema server-side before showing answers. When documents are multi-page PDFs with complex layout, prefer MinerU’s async parse instead of stuffing everything into one chat call. Unlimited-OCR’s token pricing fits variable-length captures; MinerU’s per-page pricing fits batch archives. Document both paths in your internal OCR API guide so engineers pick deliberately. Prefer image_url or base64 image parts with a strict extraction instruction. Reject empty OCR with a retry that increases detail level. Unlimited-OCR is ideal inside chat UIs; MinerU remains better for overnight PDF folders.
Quick start
Base URL: https://www.keyoapi.xyz/v1
Endpoint: POST /v1/chat/completions
Model: model=Unlimited-OCR
curl https://www.keyoapi.xyz/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"Unlimited-OCR","messages":[{"role":"user","content":[{"type":"text","text":"Extract tables as markdown"},{"type":"image_url","image_url":{"url":"https://example.com/scan.png"}}]}]}'
Auth uses the same Bearer API key as chat. Full notes: Keyo docs.
FAQ
Why is OCR exposed through chat completions?
Unlimited-OCR uses a multimodal chat path so you can pass images and receive structured text in one OpenAI-compatible call.
MinerU vs Unlimited-OCR?
MinerU is strong for paginated PDF pipelines; Unlimited-OCR shines for flexible long-document multimodal extraction in chat-style apps.
Token pricing?
About $1.92 per 1M input and output tokens—see /pricing/Unlimited-OCR.