{"repo":"yigitkonur/api-llm-ocr","free":true,"listed":false,"github":"https://github.com/yigitkonur/api-llm-ocr","clone":"git clone https://github.com/yigitkonur/api-llm-ocr.git","description":"PDF to markdown using vision LLMs — tables, layouts, and structure preserved","language":"Python","stars":903,"topics":["document-ai","fastapi","ocr","pdf-to-markdown","python","table-extraction","text-extraction","vision-llm"],"license":null,"category":"media-processing","readme_excerpt":"LLM-powered PDF to markdown. uses vision models to actually read your documents — tables, headers, mixed layouts — and outputs clean, structured markdown. not traditional OCR. --- demo https://github.com/user-attachments/assets/6b39f3ea-248e-4c29-ac2e-b57de64d5d65 NASA Apollo 17 flight docs — mixed orientations, messy layouts — converted to structured markdown. --- what it does - vision model OCR — understands context, not just character shapes - parallel processing — 50-page PDF in seconds, not minutes - table preservation — detected and formatted as proper markdown tables - smart batching — configurable pages-per-request for speed vs accuracy tradeoff - retry with backoff — handles rate limits and timeouts without crashing - flexible input — file upload or URL, your choice - image descriptions — non-text elements get [Image: description] annotations cost using OpenAI as an example ( 1,500 tokens/page average): model cost per 1,000 pages :--- :--- GPT-4o $15 GPT-4o mini $8 batch API $4 works with any OpenAI-compatible vision API. swap the endpoint and model in config. install configure create a .env file: run API lives at http://127.0.0.1:8000 . auto-generated docs at /docs . usage upload a file process from URL response health check error codes code meaning :--- :--- 200 success 400 bad request (no file/URL, or both provided) 422 validation error 429 rate limited — retry with backoff 500 processing error 504 timeout downloading PDF configuration variable default description","default_branch":null,"files":null,"tree":[],"storefront":"/r/yigitkonur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yigitkonur/api-llm-ocr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}