Repository navigation
feat(pricing): add Xiaomi MiMo V2.5 official pricing - #35449
starroadRRR wants to merge 1 commit into
Conversation
Greptile SummaryAdds official pricing, context limits, and capability metadata for Xiaomi MiMo V2.5 models
Confidence Score: 4/5The ASR pricing path needs to be fixed before merging because current cost calculation records Xiaomi MiMo V2.5 ASR usage as free The chat-model token pricing is represented through supported fields, but the ASR entry supplies only an audio-duration field that Xiaomi's generic cost path never reaches Files Needing Attention: model_prices_and_context_window.json
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds three Xiaomi pricing entries, but the ASR rate is stored in a field that its reachable cost-calculation path does not consume |
Reviews (1): Last reviewed commit: "feat(pricing): add Xiaomi MiMo V2.5 offi..." | Re-trigger Greptile
| }, | ||
| "xiaomi_mimo/mimo-v2.5-asr": { | ||
| "max_tokens": 2048, | ||
| "max_input_tokens": 8192, |
There was a problem hiding this comment.
ASR duration pricing is bypassed
When cost is calculated for xiaomi_mimo/mimo-v2.5-asr, the generic Xiaomi path does not consume input_cost_per_audio_per_second because this entry has no token or generic per-second price, causing ASR usage to be recorded as $0.00 in spend logs and budget accounting
Knowledge Base Used: Cost Tracking and Budget Enforcement
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7d7103419
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "supports_reasoning": false, | ||
| "source": "https://pinstripes.io/pricing" | ||
| }, | ||
| "xiaomi_mimo/mimo-v2.5-pro": { |
There was a problem hiding this comment.
Add the new models to the bundled cost map
When LITELLM_LOCAL_MODEL_COST_MAP=True or the remote map fetch fails, GetModelCostMap loads litellm/model_prices_and_context_window_backup.json, but none of these three entries were added there. In those supported production paths, direct Xiaomi MiMo V2.5 requests remain unpriced, so cost tracking and budget enforcement can undercount them; mirror the entries into the bundled backup map as other model-pricing changes do.
Useful? React with 👍 / 👎.
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
Summary
mimo-v2.5-proandmimo-v2.5mimo-v2.5-asrWhy
LiteLLM already supports the
xiaomi_mimoprovider, but the official Xiaomi API models are missing from the model cost map. Only reseller-specific OpenRouter/Novita entries currently exist, so direct Xiaomi MiMo calls cannot resolve the official provider pricing.Official overseas pricing source: https://mimo.mi.com/docs/en-US/price/pay-as-you-go
The official page lists prices in USD per million tokens:
mimo-v2.5-pro: $0.0036 cached input, $0.435 uncached input, $0.87 outputmimo-v2.5: $0.0028 cached input, $0.14 uncached input, $0.28 outputmimo-v2.5-asr: $0.074 per input audio hourThe ASR hourly rate is represented as
0.074 / 3600USD per audio second.Validation
model_prices_and_context_window.json(47 additions, 0 deletions)