Skip to main content
Scene-text OCR (PP-OCRv6 detection + recognition). Accepts up to 8 images or a 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.lang selects the recognition language (en, ch, japan, …); optional method_params.score_threshold filters 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

A single image returns the region container alone, with no wrapper:
For PDFs, each page’s 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.