Skip to content

feat(pricing): add Xiaomi MiMo V2.5 official pricing - #35449

Closed
starroadRRR wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
starroadRRR:agent/update-xiaomi-mimo-v2-5-pricing
Closed

starroadRRR wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
starroadRRR:agent/update-xiaomi-mimo-v2-5-pricing

Conversation

@starroadRRR

Copy link
Copy Markdown

Summary

  • add official Xiaomi MiMo pricing entries for mimo-v2.5-pro and mimo-v2.5
  • add time-based pricing for mimo-v2.5-asr
  • include the official context/output limits and supported modalities

Why

LiteLLM already supports the xiaomi_mimo provider, 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 output
  • mimo-v2.5: $0.0028 cached input, $0.14 uncached input, $0.28 output
  • mimo-v2.5-asr: $0.074 per input audio hour

The ASR hourly rate is represented as 0.074 / 3600 USD per audio second.

Validation

  • parsed the full updated model price JSON successfully
  • parsed the current upstream JSON schema successfully
  • verified every added pricing field exists in the schema
  • converted all per-token values back to USD per million tokens and matched the official prices exactly
  • verified the branch is one commit ahead and changes only model_prices_and_context_window.json (47 additions, 0 deletions)

@CLAassistant

CLAassistant commented Aug 1, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@starroadRRR
starroadRRR marked this pull request as ready for review August 1, 2026 10:05
@greptile-apps

greptile-apps Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds official pricing, context limits, and capability metadata for Xiaomi MiMo V2.5 models

  • Registers token and prompt-cache pricing for mimo-v2.5-pro and mimo-v2.5
  • Registers duration-based pricing for mimo-v2.5-asr
  • Declares supported modalities and model capabilities

Confidence Score: 4/5

The 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

Important Files Changed

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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants