Skip to main content
Document OCR to Markdown / HTML (vLLM). Accepts one image_url or a document_url PDF; no text-only input. markdown is the only method, and it emits a Markdown / HTML string for an image and for each page of a PDF.

Output by method

Text mode emits the string alone for one image, and one <document> / <page> block per PDF, each page carrying format="markdown". In JSON mode an image content is the string, and a document page content is document.page.blocks. See Methods & Response Format.

Request

Response

One <document> block per PDF, one <page> block per page. A failed page is self-closing, with status="error" and no body:
A single image returns the Markdown string alone, with no wrapper.