# Xiaomi-OCR-0

> Xiaomi's open-weight OCR model joins the catalog. It parses pages into Markdown, tables and LaTeX, and answers questions about scans. BYOK only.

- Date: 2026-11-30
- HTML: https://anyrouter.dev/blog/releases/xiaomi-ocr-0

## Models

- `xiaomi/xiaomi-ocr-0` (Xiaomi-OCR-0) — 0.8B open-weight document OCR model. Image in, text out, 8,192-token context. Apache-2.0. BYOK.

## Notes

[`xiaomi/xiaomi-ocr-0`](https://anyrouter.dev/model/xiaomi/xiaomi-ocr-0) is Xiaomi's 0.8B document OCR model, trained from Qwen3.5-0.8B-Base on an approximately 170M-sample OCR corpus. It parses whole pages into Markdown with OTSL tables and LaTeX formulas, and handles OCR-centric questions and field extraction in the same checkpoint.

The model card reports 96.83 on OmniDocBench v1.6 and a mean of 83.2 across five OCR-VQA benchmarks. The hosted route accepts one page image with an 8,192-token window and is **BYOK-only**: add your own key under [Dashboard → BYOK](https://anyrouter.dev/dashboard/byok).

```ts
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"
const anyrouter = createAnyRouter()
const { text } = await generateText({
  model: anyrouter("xiaomi/xiaomi-ocr-0"),
  messages: [{ role: "user", content: [
    { type: "text", text: "Extract the text in the image." },
    { type: "image", image: pageImage },
  ] }],
})
```

_Vision request._

```bash
curl -fsSL https://anyr.dev/cli.sh | bash
anyr login
anyr claude --model "xiaomi/xiaomi-ocr-0"
```

_Coding agent with vision._

Playbooks: [document parsing](https://anyrouter.dev/use-cases/ai-sdk), [vision models](https://anyrouter.dev/models).
