unlimited-ocr: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": [
{
"role": "user",
"content": [
{
"type": "input_file",
"file_url": "https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf"
}
]
}
],
"model": "unlimited-ocr"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": [
{
"role": "user",
"content": [
{
"type": "input_file",
"file_url": "https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf"
}
]
}
],
"model": "unlimited-ocr"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: [
{
role: 'user',
content: [
{
type: 'input_file',
file_url: 'https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf'
}
]
}
],
model: 'unlimited-ocr'
})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_file\",\n \"file_url\": \"https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf\"\n }\n ]\n }\n ],\n \"model\": \"unlimited-ocr\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_file\",\n \"file_url\": \"https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf\"\n }\n ]\n }\n ],\n \"model\": \"unlimited-ocr\"\n}"
response = http.request(request)
puts response.read_body{}{}By model
unlimited-ocr
Model details for unlimited-ocr. Document parsing and OCR that returns clean Markdown, billed per page.
POST
/
responses
unlimited-ocr: Responses
curl --request POST \
--url https://api.zerogpu.ai/v1/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": [
{
"role": "user",
"content": [
{
"type": "input_file",
"file_url": "https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf"
}
]
}
],
"model": "unlimited-ocr"
}
'import requests
url = "https://api.zerogpu.ai/v1/responses"
payload = {
"input": [
{
"role": "user",
"content": [
{
"type": "input_file",
"file_url": "https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf"
}
]
}
],
"model": "unlimited-ocr"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: [
{
role: 'user',
content: [
{
type: 'input_file',
file_url: 'https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf'
}
]
}
],
model: 'unlimited-ocr'
})
};
fetch('https://api.zerogpu.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/v1/responses"
payload := strings.NewReader("{\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_file\",\n \"file_url\": \"https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf\"\n }\n ]\n }\n ],\n \"model\": \"unlimited-ocr\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_file\",\n \"file_url\": \"https://huggingface.co/baidu/Unlimited-OCR/resolve/8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3/Unlimited-OCR.pdf\"\n }\n ]\n }\n ],\n \"model\": \"unlimited-ocr\"\n}"
response = http.request(request)
puts response.read_body{}{}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
ApiKeyBearerAuth
Headers
Optional project identifier. Scopes the request to a specific project when provided.
Body
application/json
Model identifier (fixed for this playground). Use request examples to change use cases.
Allowed value:
"unlimited-ocr"Example:
"unlimited-ocr"
Multi-line text or document content to send to the model.
Required string length:
1 - 131072Maximum number of tokens to generate in the response.
Required range:
x >= 1Example:
800
Response
Success
The response is of type object.

