# Unlimited OCR 2

Baidu's Unlimited-OCR-2 (3B, MIT), an OCR model for scanned pages and photos of documents. Send up to 20 page images per request on POST /v1/chat/completions and get each page's text with its layout blocks, one <PAGE> marker per page. Billed per token; a typical page costs about EUR 0.30 per 1,000 pages.

## Key facts

- Model ID: `unlimited-ocr-2`
- Base URL: `https://api.melious.ai/v1`
- Maker: Baidu
- Type: Chat
- Context window: 83K tokens
- Price (EUR): Input €0.10 / 1M tokens, Output €0.20 / 1M tokens
- Measured throughput: 451 tok/s
- License: MIT
- Capabilities: Vision, Tool calling, Streaming

## Where your request goes

- Processed in: Finland
- Used to train models: never
- Prompts and answers: not logged by Melious
- Zero data retention on Melious servers: processed in memory only, never stored
- Operators: Melious servers (Finland)
- Data processing agreement: https://melious.ai/legal/dpa

## Call it

```bash
curl -X POST "https://api.melious.ai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MELIOUS_API_KEY" \
  -d '{
    "model": "unlimited-ocr-2",
    "messages": [
      {"role": "user", "content": "Explain what an API is in one sentence."}
    ]
  }'
```

Human-readable page: https://melious.ai/models/unlimited-ocr-2
All models: https://melious.ai/models.md
