# Xiaomi-OCR-0

> Xiaomi-OCR-0 is an open-weight 0.8B document OCR model. It parses pages into Markdown, tables as OTSL and formulas as LaTeX, and answers questions about scanned documents. AnyRouter routes it through a BYOK host.

**ID**: `xiaomi/xiaomi-ocr-0`  
**Creator**: Xiaomi  
**Category**: multimodal  
**Context**: 8K tokens  
**Pricing**: $0.03 / $0.03 per 1M · billed by your provider (BYOK)  
**Released**: 2026-09-30  
**Links**: [Weights on Hugging Face](https://huggingface.co/xiaomi-research/Xiaomi-OCR-0) · [Announcement](https://github.com/SeerRay-Lab/Xiaomi-OCR-0) · [Paper](https://arxiv.org/abs/2609.36136) · [AnyRouter release](https://anyrouter.dev/blog/releases/xiaomi-ocr-0)  
**Web page**: https://anyrouter.dev/model/xiaomi/xiaomi-ocr-0

**Input modalities**: text, image  
**Output modalities**: text  

**Capabilities**: ocr, document-parsing

**Supported parameters**: frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, top_p

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "xiaomi/xiaomi-ocr-0",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| phala-byok | $0.03/M (list) | $0.03/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Model card

- Architecture: dense [1]
- Total parameters: 0.8B [1]
- Native context: 8192 tokens [1]
- License: Apache-2.0, open weights (https://huggingface.co/xiaomi-research/Xiaomi-OCR-0) [1]

### Strengths [1]

- Trained from Qwen3.5-0.8B-Base on an approximately 170M-sample OCR-centric corpus with Q-Mask anchoring and mixed-task reinforcement learning
- Combines whole-page parsing, OCR-centric question answering and key information extraction in one 0.8B checkpoint
- Vendor reports 96.83 on OmniDocBench v1.6 and a mean of 83.2 across five OCR-VQA benchmarks
- Handles scanned, warped and photographed pages as well as standard documents

### Known limits [1]

- The hosted listing exposes an 8,192-token window and one page image per request
- Region prompts must be chosen by task, for example OTSL for tables and LaTeX for formulas
- Community GGUF and NInfer conversions are not evaluated by the model authors

### Use cases [1]

- Converting document pages to Markdown with tables and formulas
- Extracting receipt and form fields as JSON
- Question answering over scanned documents

### API notes [1]

- Whole-page prompts ask for Markdown, OTSL tables, LaTeX formulas and reading order
- Region prompts include Extract the text in the image, Parse the table in the image into OTSL and LaTeX formula extraction
- Key information extraction accepts a JSON schema in the prompt and returns a JSON object

### Links

- announcement: https://github.com/SeerRay-Lab/Xiaomi-OCR-0
- model card: https://huggingface.co/xiaomi-research/Xiaomi-OCR-0
- paper: https://arxiv.org/abs/2609.36136
- docs: https://github.com/SeerRay-Lab/Xiaomi-OCR-0

### Sources

1. [Xiaomi-OCR-0 model card](https://huggingface.co/xiaomi-research/Xiaomi-OCR-0/raw/main/README.md) (accessed 2026-11-30)

## Source

- Upstream docs: https://huggingface.co/xiaomi-research/Xiaomi-OCR-0
