name = "Xiaomi Token Plan (China)" # Raw endpoints are POST https://token-plan-cn.xiaomimimo.com/v1/chat/completions # and POST https://token-plan-cn.xiaomimimo.com/anthropic/v1/messages. # Both protocols use thinking.type="enabled"|"disabled"; Flash defaults # disabled, while V2.5 Pro, V2.5, and V2 Pro default enabled. # https://platform.xiaomimimo.com/static/docs/price/tokenplan/quick-access.md (accessed 2026-06-25) # https://platform.xiaomimimo.com/static/docs/api/chat/openai-api.md (accessed 2026-06-25) env = ["XIAOMI_API_KEY"] npm = "@ai-sdk/openai-compatible" api = "https://token-plan-cn.xiaomimimo.com/v1" doc = "https://platform.xiaomimimo.com/#/docs"