image_url or a document_url PDF; no text-only input. The context window is
32,768 tokens, with a maximum output of 24,576 tokens. Aliases include
baidu/Unlimited-OCR and unlimited-ocr. The model weights are
baidu/Unlimited-OCR.
Output by method
Both methods return the Markdown-kind payload.
multi_page reads an 8-page
sliding window per model call by default. Set method_params.window_size to
change the window size. The maximum is one image_url or one document_url.
Text mode emits a bare payload string for one image, and one <document> block
per PDF. With markdown, each document contains one <page> block per page
with layout-tagged lines in the form block_type [x1, y1, x2, y2]text. With
multi_page, the <document> block carries continuous plain text with no
<page> blocks or layout tags. In JSON mode, the response has a data array
with kind set to image or document; it does not include top-level model
or method keys. See Methods & Response Format.
Request
multi_page and set
window_size with the Python SDK:
Response
- Text mode
- JSON mode
With A single image returns the payload string alone, with no wrapper. With
markdown, a PDF returns one <document> block with one <page>
block per page:multi_page, the <document> block carries continuous plain text with no
<page> blocks or layout tags.