document_url PDF; no text-only input. Default method: ocr.
Output by method
The payload kind is the same for an image and for each page of a PDF. Text mode
emits the payload alone for one image, one
<image> block per image for several,
and one <document> / <page> block per PDF. In JSON mode an image content is
the tagged container above, and a document page content is always
document.page.blocks. See Methods & Response Format.
Coordinates are normalized 0-1 against the image or rasterized page, at
precision decimals (default 4).
ocr: full detection + recognition.method_params.langselects the recognition language (en,ch,japan, …); optionalmethod_params.score_thresholdfilters low-confidence lines. (default)detect: text detection only. Boxes and polygons without recognized text.text: the recognized lines stitched into one string per image or page. It is plain scene text, not generative Markdown.
Request
Response
- Text mode
- JSON mode
A single image returns the region container alone, with no wrapper:
content is document.page.blocks, and every region
becomes one block with the same geometry under a zero-based index. See the
Document OCR guide.