Description
api-llm-ocr converts PDFs to markdown by using vision language models to read the pages. The readme describes it as not traditional OCR: the model understands context, so tables, headers and mixed layouts come out as clean, structured markdown, and non-text elements get [Image: description] annotations. Pages are processed in parallel, and you can set how many pages go into each request to trade speed against accuracy. Requests that hit rate limits or timeouts are retried with backoff rather than failing the job. You can upload a file or give a URL. The tool runs as a local HTTP API at 127.0.0.1 on port 8000, with auto-generated docs at /docs and a health check endpoint. It works with any OpenAI-compatible vision API, and you change the endpoint and model in the configuration, which includes OpenAI and Azure OpenAI settings. The readme gives a rough cost estimate of about 1,500 tokens per page, with example prices for several OpenAI models and the batch API. The source is public on GitHub.…
Highlights
- Vision LLM reading of PDFs, not traditional OCR
- Tables, headers and mixed layouts kept as markdown
- Parallel processing with configurable pages per request
- Retries with backoff for rate limits and timeouts
- File upload or URL input
- Works with any OpenAI-compatible vision API
Ratings & Reviews
No ratings yet
Be the first to rate API LLM OCR.
People also visit
API LLM OCR FAQ
What does it do?
It converts PDFs to structured markdown by having a vision model read the pages, which keeps tables and layouts intact.
How much does it cost to run?
The readme estimates about 1,500 tokens per page. Using OpenAI as an example, it lists roughly $15 per 1,000 pages for GPT-4o, about $8 for GPT-4o mini and about $4 with the batch API.
Can I use other models?
Yes. It works with any OpenAI-compatible vision API. You swap the endpoint and model in the configuration.
How do I run it?
Install it, create a .env file with your settings and start it. The API listens on 127.0.0.1 port 8000 and serves its docs at /docs.
What do the error codes mean?
200 is success, 400 is a bad request, 422 a validation error, 429 a rate limit, 500 a processing error, and 504 a timeout downloading the PDF.
What are the best API LLM OCR alternatives?
Popular alternatives to API LLM OCR include MinerU-Skill, PDF to Markdown and Doc7. See all API LLM OCR alternatives









