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