Repository navigation
fix(cost-map): rolling registry audit, add elevenlabs api rates, together minimax-m3.1-flash, mistral voxtral 3 and azure_ai phi-4 dates - #47623
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
|
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…t_2026_10_20_voxtral3
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f0980a9. Configure here.
…t_2026_10_20_voxtral3
…s and together minimax-m3.1-flash Co-authored-by: Shebin Sabu <85486313+shebin09@users.noreply.github.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Shebin Sabu <85486313+shebin09@users.noreply.github.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Rolling registry PR. It adds cost map rows for the Mistral Voxtral 3 transcription and speech models, which the Mistral API already serves but LiteLLM could not price, and adds the Microsoft Foundry retirement date for the five Phi-4 models so the deprecation alerts from #26900 can warn about them. The latest run also prices the newer ElevenLabs speech models at the published API rates and adds Together's MiniMax M3.1 Flash. Each run of the registry audit re-checks every open registry PR and rolls verified data changes in here
Details
TLDR
Problem this solves:
azure_ai/Phi-4*rows have nodeprecation_datethough Microsoft scheduled retirementMiniMaxAI/MiniMax-M3.1-Flashhas no rowHow it solves it:
-3-0ids and their-3aliases)deprecation_date2027-01-17 to 5azure_ai/Phi-4*rowsUser Flow
Before: a developer transcribing audio with the newest Voxtral model gets no spend tracked
litellm.transcription(model="mistral/voxtral-mini-transcribe-3-0", file=...)After: the same call is priced at Mistral's published per-minute rate
litellm.transcription(model="mistral/voxtral-mini-transcribe-3-0", file=...)response_costis the audio duration times $0.0035 a minuteRelevant issues
Supports #26900
Changes by provider
Mistral (added 2026-10-20)
Values read from the raw HTML of each model page, cross-checked against https://api.mistral.ai/v1/models which lists all four dated ids (re-confirmed on 2026-10-21). Per-minute prices are stored as
input_cost_per_second(price / 60), matching the existing Voxtral rowsmistral/voxtral-mini-transcribe-3-0,mistral/voxtral-mini-transcribe-3mistral/voxtral-small-transcribe-3-0,mistral/voxtral-small-transcribe-3mistral/voxtral-mini-transcribe-realtime-3-0,mistral/voxtral-mini-transcribe-realtime-3mistral/voxtral-mini-tts-3-0,mistral/voxtral-mini-tts-3Azure AI Foundry (deprecation dates added 2026-10-21)
Read from the table rows of the raw HTML of https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule, which lists Phi-4, Phi-4-mini-instruct, Phi-4-mini-reasoning, Phi-4-multimodal-instruct and Phi-4-reasoning with retirement date 2027-01-17. Only the
deprecation_datefield was added, in the sameYYYY-MM-DDshape the registry already usesazure_ai/Phi-4azure_ai/Phi-4-mini-instructazure_ai/Phi-4-mini-reasoningazure_ai/Phi-4-multimodal-instructazure_ai/Phi-4-reasoningElevenLabs (changed 2026-10-23, absorbs #47917)
Rates read from the raw HTML of https://elevenlabs.io/pricing/api, which lists Text to Speech per 1K characters as v4 $0.08, v4 Turbo $0.04, v3 $0.08, v3 Conversational $0.04, Multilingual v2 $0.08 and Flash / Turbo $0.04. Model ids come from https://api.elevenlabs.io/v1/models. The old $0.18 value was the Scale plan credit rate, not the API usage price
elevenlabs/eleven_v3elevenlabs/eleven_multilingual_v2elevenlabs/eleven_v4elevenlabs/eleven_v4_turboelevenlabs/eleven_v3_conversationalelevenlabs/eleven_flash_v2_5,elevenlabs/eleven_flash_v2elevenlabs/eleven_turbo_v2_5,elevenlabs/eleven_turbo_v2tests/unit/test_elevenlabs_tts_pricing.pycomes from #47917 unchangedTogether AI (added 2026-10-23)
together_ai/MiniMaxAI/MiniMax-M3.1-Flashis priced at $0.15 input, $0.015 cached input and $0.60 output per 1M tokens per the raw HTML of https://www.together.ai/pricing, with the 1048576 context taken from https://api.together.xyz/v1/models. No capability flags were set since the pricing page documents noneChecked and left unchanged
Azure
azure/gpt-realtime-mini-2025-10-06keeps 2027-04-06 because the retirement schedule lists the model twice with different dates, andazure_ai/claude-opus-5-5-fastkeeps 2027-10-01 since the schedule's 2027-01-15 conflicts with the other Microsoft page. Both stay until Microsoft's pages agreeBedrock legacy EOL dates on https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html are region specific. Claude 3.5 Sonnet, Claude 3.7 Sonnet, Marengo Embed 3.0 and the us-gov Llama 3 and Sonnet 4.5 rows are scheduled only in regions that do not match the registry key, so no dates were set on the global or us-gov keys
Together
openai/gpt-oss-20bandgoogle/gemma-4-31B-itshow 2026-09-14 in the scheduled table and 2026-09-15 in the inference table of https://docs.together.ai/docs/deprecations, so the registry's 2026-09-15 stays. The 2026-07-29 rows on that page are fine-tuning removals, which do not retire serverless inference, so they were not appliedVertex rows whose retirement on https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions reads "or later" or "no sooner than" were not changed
Mistral
codestral-2508andcodestral-latestreport 256000 context on /v1/models, but https://docs.mistral.ai/models/codestral-25-08 still says 128k, so the registry's 128k stays. The API also flagslabs-leanstral-1-5andlabs-leanstral-1-5-1with vision and reasoning, but https://docs.mistral.ai/models/leanstral-1-5 lists neither, so no flags were addedGemini
antigravity-preview-*models are billed at the underlying Gemini rates per https://ai.google.dev/gemini-api/docs/pricing, so they have no price of their own. Groqallam-2-7bis listed by /openai/v1/models but not on https://groq.com/pricing, so no row was added. The Fireworks API key on this account is suspended, so Fireworks was checked only against https://fireworks.ai/pricingOpenAI, Anthropic, xAI and DeepSeek model lists have no missing entries apart from account fine-tunes
Left unchanged on the 2026-10-23 run: Mistral
zai-glm-5-3-flashis served by /v1/models, but https://docs.mistral.ai/models/zai-glm-5-3-flash shows $0.03 cached input on $0.15 input while https://docs.mistral.ai/studio/conversations/advanced/prompt-caching says cached tokens bill at 10%, so no row was added until the two pages agree. TogetherQwen/Qwen3.7-Maxshows $2.50 and $7.50 on /v1/models but $1.50 and $4.50 on https://www.together.ai/pricing, which matches the registry, so it stays. TogetherSalesforce/Llama-Rank-V1andBAAI/bge-base-en-v1.5show an output price only on /v1/models and not on the pricing page, so output stays 0. Geminigemini-4-argonreports 32768 output tokens on the API while https://ai.google.dev/gemini-api/docs/models documents decodes up to 1M, so the registry stays. Fireworksqwen3p8-2p4t-a95bis on-demand only on https://fireworks.ai/models/fireworks/qwen3p8-2p4t-a95b with no serverless per-token price, and the spot router ids on /inference/v1/models have no rows on https://fireworks.ai/pricing. OpenRouter rows were removed from the registry on purpose in #45669, so none were added. The xAI API key is out of credits, so xAI was checked only against https://docs.x.ai/docs/models, wheregrok-4.7at 500k context and $2 and $6 per 1M matches the registryOpen registry PRs reviewed
#47917 (ElevenLabs API rates) was re-verified against https://elevenlabs.io/pricing/api and absorbed with its test on 2026-10-23. #36274 is contradicted by the Azure retail prices API, which lists gpt-5.6 terra Global input at $2.0 and output at $12.0 per 1M and luna at $0.2 and $1.2, the values already on main. #40368 and #41376 edit keys that no longer exist on main. #43753 and #43879 add bare duplicates of
deepseek/deepseek-v3andmoonshot/kimi-k2.5, which already exist. #36385 and #33930 have no AWS doc confirming the Bedrock Mantle limits or the zero price. #33966 has no published GitHub Copilot per-token price. #37972 cites no provider pricing page. #46856, #41775 and #47269 were dropped on earlier runs for conflicting prices and model availability. #34609 and #41857 change Bedrock strict-tools behavior with their own tests, and #43390 adds the capability pins file with its tooling, so they were left alone. PRs opened since the last run that touch the JSON (#47806, #47800, #47782, #47730, #47720, #47715, #47697, #47679) are code or feature changes and were left alone tooPre-Submission checklist
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreScreenshots / Proof of Fix
Real Mistral transcription calls with the SDK and
LITELLM_LOCAL_MODEL_COST_MAP=True, transcribingtests/gettysburg.wav(17.58 seconds)After (c759962)
litellm.speech(model="elevenlabs/eleven_v4", input="hello", voice="EXAVITQu4vr4xnSDxMaL")returned audio withresponse_cost0.0004 (5 characters x 8e-05)litellm.speech(model="elevenlabs/eleven_flash_v2_5", input="hello", voice="EXAVITQu4vr4xnSDxMaL")returned audio withresponse_cost0.0002 (5 characters x 4e-05)litellm.completion(model="together_ai/MiniMaxAI/MiniMax-M3.1-Flash", messages=[{"role":"user","content":"say hi"}])returned "Hi!" withresponse_cost3.9e-05python3 ci_cd/check_files_match.pypassed,LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_and_context_window.py tests/unit/test_model_cost_aliases.py tests/unit/test_elevenlabs_tts_pricing.pygave 93 passed, and the cost map guard passed against mainAfter (dcd8703)
litellm.transcription(model="mistral/voxtral-mini-transcribe-3-0", file=open("tests/gettysburg.wav","rb"))returned "Four score and seven years ago..." withresponse_cost0.001025327 (17.577 s x 5.83333e-05)litellm.transcription(model="mistral/voxtral-small-transcribe-3", ...)returned the same transcript withresponse_cost0.001171804 (17.577 s x 6.66667e-05)litellm.get_model_info("mistral/voxtral-mini-tts-3-0")["input_cost_per_character"]returned 1.3e-05After (f0980a9)
python3 ci_cd/check_files_match.pypassedLITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_and_context_window.py tests/unit/test_model_cost_aliases.pygave 85 passedazure_ai/Phi-4*keys are the only rows carryingdeprecation_date2027-01-17, andgit diff origin/main --stattouches only the two JSON filesType
🐛 Bug Fix
Caveats (if any)
Low
ci_cd/cost_map_pins.jsonis not on main, so no pinned flags were checkedci_cd/generate_model_prices_schema.pyis not on main, so no schema was regeneratedLink to Devin session: https://app.devin.ai/sessions/b31df62d5c2e4aa381a5608607964a69
Open in Devin Desktop: https://app.devin.ai/desktop/session/b31df62d5c2e4aa381a5608607964a69?variant=devin