Skip to main content
POST
unlimited-ocr: Responses
Baidu’s Unlimited-OCR is a 3B-parameter document-parsing and OCR model, served on ZeroGPU as a bf16 build. It reads PDFs, scanned documents, and images and returns clean Markdown, with tables as HTML and formulas as LaTeX, and it works through long multi-page documents in a few passes. It suits invoices, receipts, contracts, forms, tables, books, and reports, and it is billed per page rather than per token. When the input is a document rather than text you already have, this is the model.
References: Model docs • Terms • Privacy
Send the document as an input_file content part on /v1/responses, or as a file content part on /v1/chat/completions. Streaming ("stream": true) is supported on Chat Completions.

Authorizations

x-api-key
string
header
required

Headers

x-project-id
string

Optional project identifier. Scopes the request to a specific project when provided.

Body

application/json
model
string
default:unlimited-ocr
required

Model identifier (fixed for this playground). Use request examples to change use cases.

Allowed value: "unlimited-ocr"
Example:

"unlimited-ocr"

input
string<textarea>
required

Multi-line text or document content to send to the model.

Required string length: 1 - 131072
instructions
string
max_tokens
integer

Maximum number of tokens to generate in the response.

Required range: x >= 1
Example:

800

metadata
object

Response

Success

The response is of type object.