xiaomi-ocr-0
API pricing.
These are catalogue “From” rates in EUR. Dynamic pricing can change the applicable price. Confirm the active rate in the console.
See the rate card ↗- Input / 1M tokens
- From€0.0639
- Output / 1M tokens
- From€0.329
10,000 input tokens + 2,000 output tokens = €0.001297 at the displayed starting rate.
Catalogue updated 2026-11-22.
Model licence and attribution
- Licence
- apache-2.0
Check API model access
Use the model ID xiaomi-ocr-0. This check lists models available to your account; it does not send an inference request.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.models.blade.sh/v1",
api_key=os.environ["BLADE_API_KEY"],
timeout=120.0,
)
model_id = "xiaomi-ocr-0"
models = client.models.list()
match = next(
(item for item in models.data
if item.id == model_id),
None,
)
if match is None:
raise RuntimeError("Model not listed for this account")
print(match.model_dump_json(indent=2))Install openai and set BLADE_API_KEY. This checks the account’s model list; it does not run inference. Copy the confirmed model-specific inference request from the console before integrating.
Blade catalogue reference ↗