Repository navigation
feat(models): audit registry metadata and Databricks cache pricing - #37902
devin-ai-integration[bot] wants to merge 15 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
|
Greptile SummaryThis PR adds pricing and capability metadata for newer Databricks-hosted Claude models and makes Databricks spend calculation cache-aware.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| litellm/llms/databricks/cost_calculator.py | Replaces manual token multiplication with the shared cache-aware calculator and centralizes legacy model-name normalization. |
| model_prices_and_context_window.json | Adds new Databricks Claude model records and cached-token pricing and capability metadata. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the Databricks pricing and model metadata additions in the backup registry. |
| tests/test_litellm/llms/databricks/test_databricks_cost_calculator.py | Covers cached and uncached token billing and legacy endpoint-name resolution. |
| tests/test_litellm/llms/databricks/test_databricks_pricing.py | Validates Databricks DBU conversion and cached-token pricing metadata. |
| tests/test_litellm/litellm_core_utils/test_fallback_generalizations.py | Updates the unmapped Databricks model fixture now that Opus 5 is registered. |
Reviews (2): Last reviewed commit: "refactor(tests): drop redundant comments..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… entries Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…itellm_databricks_claude_cache_pricing
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… and Vertex retirement dates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…sorbed from #37996) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Small follow-up on the absorbed #38079 (claude-3-haiku/opus |
…cache_pricing Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…t limit and accept databricks DBU rounding Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…cache_pricing Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Declining: Databricks cache pricing already shipped in #37975 (LIT-5977). The rest is unreviewable 20k-line churn, now conflicting, and it drops /v1/chat/completions from existing models |
|
@mateo-berri This PR also contained cache creation prices for the I created a new PR for those only: |
…dow and sibling disagreements The two bare Bedrock Claude 3.5 Sonnet ids listed a 1,000,000-token context window and carried the Sonnet 4 long-context price tier (*_above_200k_tokens), while every regional sibling of the same models correctly listed 200000 with no long-context tier. Anything reading max_input_tokens (context_window_fallbacks, pre-call context checks, context-usage reporting) treated bare-id Claude 3.5 Sonnet as having 5x its real window. The same pass aligns the bare/regional siblings enumerated in the issue: deepseek.v3.2, moonshotai.kimi-k2.5, nvidia.nemotron-nano-3-30b, the two qwen3 next ids, and the us-gov llama3 copies. Both the primary and the backup cost map are corrected, and regression tests pin bare-vs-regional agreement in both files. This correction was made before in BerriAI#35635, then lost when that PR was closed in favor of the registry audit BerriAI#37902, which was declined; the tests keep it from regressing again. Fixes BerriAI#46216
…dow and sibling disagreements The two bare Bedrock Claude 3.5 Sonnet ids listed a 1,000,000-token context window and carried the Sonnet 4 long-context price tier (*_above_200k_tokens), while every regional sibling of the same models correctly listed 200000 with no long-context tier. Anything reading max_input_tokens (context_window_fallbacks, pre-call context checks, context-usage reporting) treated bare-id Claude 3.5 Sonnet as having 5x its real window. The same pass aligns the bare/regional siblings enumerated in the issue: deepseek.v3.2, moonshotai.kimi-k2.5, nvidia.nemotron-nano-3-30b, the two qwen3 next ids, and the us-gov llama3 copies. Both the primary and the backup cost map are corrected, and regression tests pin bare-vs-regional agreement in both files. This correction was made before in BerriAI#35635, then lost when that PR was closed in favor of the registry audit BerriAI#37902, which was declined; the tests keep it from regressing again. Fixes BerriAI#46216
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer calculating Databricks Claude spend sees cached tokens charged at full input price
databricks/databricks-claude-3-7-sonnetand send requests through POST https://litellm-domain/v1/chat/completions{"cost":0.005999987000000001}After: the same request reports the discounted cache rates and accurate spend
databricks/databricks-claude-3-7-sonnetand send requests through POST https://litellm-domain/v1/chat/completions{"cost":0.00421499295}Relevant issues
Supports the
deprecation_datemetadata planned in #26900Linear ticket
Resolves LIT-5977
Registry audit
The final diff against
litellm_internal_stagingadds 190 model entries, removes 15 unavailable entries, and updates 177 existing entries. Verified source changes from 91 open registry PRs were applied at field level so newer staging metadata remains intactSchema support now covers
max_audio_per_prompt,max_images_per_prompt,max_videos_per_prompt, andmax_audio_length_hours. The hardcoded registry test schema also recognizes every field used by the audited registryClaude Fable 5 prompt-cache minimums are 512 tokens on supported routes. Fireworks GLM-5.2 uses the documented 1,040,000-token context. OpenRouter Claude Fable 5 uses always-on thinking. Azure audio aliases remain exact mirrors of their dated entries
Removed retired or unavailable entries
apac.amazon.nova-2-lite-v1:0friendliai/meta-llama-3.1-8b-instructgithub_copilot/claude-opus-4.6-fastgithub_copilot/claude-opus-41github_copilot/claude-sonnet-4github_copilot/gemini-3-pro-previewgithub_copilot/gpt-4.1github_copilot/gpt-4.1-2025-04-14github_copilot/gpt-5github_copilot/gpt-5.1github_copilot/gpt-5.1-codex-maxgithub_copilot/gpt-5.2scaleway/google/gemma-3-27b-itscaleway/mistralai/devstral-2-123b-instruct-2512scaleway/mistralai/voxtral-small-24b-2507Source PR disposition
Absorbed and closed after supersession: #27627, #28104, #28170, #28649, #28701, #28768, #28776, #29115, #29797, #30034, #30289, #30354, #30564, #30580, #30758, #30832, #30838, #30886, #31077, #31374, #31436, #31482, #31491, #31532, #31563, #31565, #31747, #31818, #31962, #31964, #31965, #31967, #32101, #32113, #32119, #32185, #32504, #32600, #32615, #32633, #32645, #32657, #32762, #33063, #33069, #33070, #33084, #33218, #33239, #33311, #33413, #33501, #33524, #33662, #33776, #33812, #33939, #34012, #34173, #34611, #34621, #34818, #34824, #34904, #35007, #35024, #35204, #35235, #35345, #35378, #35385, #35449, #35635, #35728, #35841, #35914, #36067, #36068, #36090, #36152, #36409, #36652, #36886, #36911, #37081, #37178, #37237, #37371, #37773, #37827, #37843
No verified fields were absorbed from these registry-only PRs: #26380, #28506, #28853, #29276, #29345, #29836, #30019, #31460, #31806, #32035, #32107, #32117, #32417, #32455, #32754, #33176, #33618, #33920, #33930, #33966, #34494, #34609, #35125, #35446, #35776, #35891, #36084, #36254, #36274, #36279, #36299, #36385, #36820, #37585, #37830
These new-model proposals lacked complete official routing metadata: #29920, #30775, #32291, #32418, #32419, #32427, #32842, #33185, #33358, #35720
#33765 was excluded because its partial family update left inconsistent pricing tiers.
libertai/glm-5.2-thinkingwas excluded because only provider and mode were verifiable, which would silently price requests at zeroThe audit dropped 2,365 undocumented or conflicting candidate values. It also skipped 235 fields from #33765, 277 incomplete new-model fields, 7 fields without an exact source-PR match, and 2 fields from the unpriced LibertAI stub
#33947 and #35617 contain behavior changes, so they remain separate
Official source matrix
Each model maps to the official pages used for its changed values. Multiple references cover different fields for that model
Official provider sources by model
anthropic.claude-3-5-sonnet-20240620-v1:0: S219anthropic.claude-3-5-sonnet-20241022-v2:0: S219anthropic.claude-fable-5: S142apac.amazon.nova-2-lite-v1:0: S143azure/eu/gpt-4o-2024-11-20: S119azure/eu/gpt-5.6-luna: S122azure/eu/gpt-5.6-sol: S122azure/eu/gpt-5.6-terra: S122, S123azure/gpt-4.1-nano: S196azure/gpt-4.1-nano-2025-04-14: S196azure/gpt-5.4-mini: S192azure/gpt-5.4-mini-2026-03-17: S192azure/gpt-5.4-nano: S192azure/gpt-5.4-nano-2026-03-17: S192azure/gpt-5.6: S122, S123azure/gpt-5.6-luna: S122azure/gpt-5.6-sol: S122, S123azure/gpt-5.6-terra: S122, S123, [S236]azure/gpt-audio-1.5-2026-02-23: S122azure/gpt-audio-mini: S122azure/gpt-audio-mini-2025-10-06: S122azure/gpt-image-1.5: [S234]azure/gpt-image-1.5-2025-12-16: [S234]azure/gpt-realtime-1.5-2026-02-23: S122azure/gpt-realtime-2: S122, S187, S191azure/gpt-realtime-2.1: S122, S187, S191azure/gpt-realtime-2.1-mini: S122, S187, S191azure/gpt-realtime-2025-08-28: S122azure/gpt-realtime-mini: S122azure/gpt-realtime-mini-2025-10-06: S122azure/us/gpt-4.1-nano-2025-04-14: S196azure/us/gpt-4o-2024-11-20: S119azure/us/gpt-5.6: S122, S123azure/us/gpt-5.6-luna: S122azure/us/gpt-5.6-sol: S122azure/us/gpt-5.6-terra: S122azure_ai/AI21-Jamba-1.5-Large: S197, [S241]azure_ai/AI21-Jamba-1.5-Mini: S197, [S241]azure_ai/Codestral-2501: S195azure_ai/Cohere-command-r-08-2024: S124, S156azure_ai/Cohere-command-r-plus-08-2024: S155, S197azure_ai/DeepSeek-R1-0528: S2, [S240]azure_ai/Llama-4-Maverick-17B-128E-Instruct-FP8: S120azure_ai/Meta-Llama-3-8B-Instruct: S199, [S237]azure_ai/claude-fable-5: S142azure_ai/claude-haiku-4-5: S142azure_ai/claude-opus-4-1: S142azure_ai/claude-opus-4-5: S142azure_ai/claude-opus-4-6: S142azure_ai/claude-opus-4-7: S142azure_ai/claude-opus-4-8: S142azure_ai/claude-sonnet-4-5: S142azure_ai/claude-sonnet-4-6: S142, S194azure_ai/claude-sonnet-5: S142azure_ai/cohere-command-a-03-2025: S3, S157, S197, [S235]azure_ai/gpt-5.4: S190azure_ai/gpt-5.4-2026-03-05: S190azure_ai/gpt-5.4-mini: S190azure_ai/gpt-5.4-mini-2026-03-17: S190azure_ai/kimi-k2.7-code: S188, S198, [S242]azure_ai/mistral-medium-3-5: S165, S166, [S243]azure_ai/mistral-ocr-2503: S121, S193azure_ai/mistral-ocr-4-0: S169, [S243]bedrock/eu-west-1/qwen.qwen3-next-80b-a3b: S117, S148bedrock/us-gov-east-1/meta.llama3-70b-instruct-v1:0: S144bedrock/us-gov-west-1/meta.llama3-70b-instruct-v1:0: S144bedrock_mantle/openai.gpt-5.6-luna: S116, S145, S150bedrock_mantle/openai.gpt-5.6-sol: S139, S146, S150, S226bedrock_mantle/openai.gpt-5.6-terra: S118, S147bedrock_mantle/xai.grok-4.3: S149cerebras/gemma-4-31b: S12cerebras/gpt-oss-120b: S12cerebras/zai-glm-4.7: S186chat-latest: S189, S225dashscope/deepseek-v4-flash: [S247]dashscope/deepseek-v4-pro: [S248]dashscope/qwen3.6-plus: [S249]databricks/databricks-claude-3-7-sonnet: S158, S220, [S250]databricks/databricks-claude-fable-5: S158, S220, [S250]databricks/databricks-claude-haiku-4-5: S159databricks/databricks-claude-opus-4-1: S159databricks/databricks-claude-opus-4-5: S159databricks/databricks-claude-opus-4-7: S158, S220, [S250]databricks/databricks-claude-sonnet-4: S159databricks/databricks-claude-sonnet-4-5: S159databricks/databricks-claude-sonnet-5: S158, S220, [S250]databricks/databricks-gemini-2-5-flash: S159databricks/databricks-gemini-2-5-pro: S159databricks/databricks-gemma-3-12b: S159databricks/databricks-gpt-5: S159databricks/databricks-gpt-5-1: S159databricks/databricks-gpt-5-mini: S159databricks/databricks-gpt-5-nano: S159databricks/databricks-gpt-oss-120b: S159databricks/databricks-gpt-oss-20b: S159databricks/databricks-llama-4-maverick: S159databricks/databricks-meta-llama-3-1-8b-instruct: S159databricks/databricks-meta-llama-3-3-70b-instruct: S159deepinfra/google/gemma-4-26B-A4B-it: S133, S137deepinfra/google/gemma-4-31B-it: S134, S137deepinfra/google/gemma-4-31B-it-Ultra: S135deepinfra/google/gemma-4-31B-it-turbo: S136, S137deepseek-v4-flash-vision-exp: S8, S9, S10deepseek/deepseek-v4-flash-vision-exp: S8, S9, S10elevenlabs/scribe_v2: S178empiriolabs/deepreasoning: S13empiriolabs/deepseek-v3-2: S14empiriolabs/deepseek-v4-flash: S15empiriolabs/deepseek-v4-flash-0731: S18empiriolabs/deepseek-v4-flash:variant1: S16empiriolabs/deepseek-v4-flash:variant2: S17empiriolabs/deepseek-v4-pro: S19empiriolabs/deepseek-v4-pro-0813: S22empiriolabs/deepseek-v4-pro:variant1: S20empiriolabs/deepseek-v4-pro:variant2: S21empiriolabs/exa-answer: S23empiriolabs/fugu-ultra-v1-0: S24empiriolabs/fugu-ultra-v1-1: S25empiriolabs/gemma-3-27b: S26empiriolabs/gemma-4-26b-a4b: S27empiriolabs/glm-4-5-flash: S28empiriolabs/glm-4-6v-flash: S29empiriolabs/glm-4-7-flash: S30empiriolabs/glm-5-1: S31empiriolabs/glm-5-2: S32empiriolabs/glm-5-2:variant1: S33empiriolabs/gptzero: S34empiriolabs/janus-pro-deepseek: S35empiriolabs/kimi-k2-6: S36empiriolabs/kimi-k2-7-code: S37empiriolabs/kimi-k2-7-code-highspeed: S39empiriolabs/kimi-k2-7-code:variant1: S38empiriolabs/kimi-k3: S40empiriolabs/linkup-deep-search: S41empiriolabs/linkup-standard: S42empiriolabs/mimo-v2-5: S43empiriolabs/mimo-v2-5-pro: S44empiriolabs/minimax-m2-7: S45empiriolabs/minimax-m2-7-highspeed: S46empiriolabs/minimax-m3: S47empiriolabs/minimax-m3:priority: S48empiriolabs/mistral-medium-3: S49empiriolabs/mistral-medium-3-1: S50empiriolabs/mistral-small-3-1: S51empiriolabs/mistral-small-4: S52empiriolabs/muse-glimmer-30b: S53empiriolabs/muse-spark-1-1: S54empiriolabs/muse-spark-1-2: S55empiriolabs/nova-lite-1-0: S56empiriolabs/nova-lite-2: S57empiriolabs/nova-micro-1-0: S58empiriolabs/nova-premier-1-0: S59empiriolabs/nova-pro-1-0: S60empiriolabs/perplexity-advanced-deep-research: S61empiriolabs/perplexity-deep-research: S62empiriolabs/perplexity-pro-search: S63empiriolabs/perplexity-sonar: S64empiriolabs/perplexity-sonar-pro: S65empiriolabs/perplexity-sonar-reasoning-pro: S66empiriolabs/qwen3-5-122b-a10b: S67empiriolabs/qwen3-5-27b: S68empiriolabs/qwen3-5-35b-a3b: S69empiriolabs/qwen3-5-397b-a17b: S70empiriolabs/qwen3-5-4b: S71empiriolabs/qwen3-5-9b: S72empiriolabs/qwen3-5-flash: S73empiriolabs/qwen3-5-flash:variant1: S74empiriolabs/qwen3-5-omni-flash: S75empiriolabs/qwen3-5-omni-plus: S76empiriolabs/qwen3-5-plus: S77empiriolabs/qwen3-5-plus:variant1: S78empiriolabs/qwen3-6-27b: S79empiriolabs/qwen3-6-35b-a3b: S80empiriolabs/qwen3-6-flash: S81empiriolabs/qwen3-6-flash:variant1: S82empiriolabs/qwen3-6-max-preview: S83empiriolabs/qwen3-6-plus: S84empiriolabs/qwen3-6-plus:variant1: S85empiriolabs/qwen3-7-flash: S86empiriolabs/qwen3-7-flash:variant1: S87empiriolabs/qwen3-7-max: S88empiriolabs/qwen3-7-max:variant1: S89empiriolabs/qwen3-7-plus: S90empiriolabs/qwen3-7-plus:variant1: S91empiriolabs/qwen3-8-27b: S92empiriolabs/qwen3-8-max: S93empiriolabs/qwen3-8-max:variant1: S94empiriolabs/qwen3-max: S95empiriolabs/qwen3-max-preview: S96empiriolabs/qwen3-max-thinking: S97empiriolabs/qwen3-rerank: S98empiriolabs/seed-2-0-code: S99empiriolabs/seed-2-0-lite: S100empiriolabs/seed-2-0-mini: S101empiriolabs/seed-2-0-pro: S102empiriolabs/seed-2-1-turbo: S103empiriolabs/step-3-5-flash: S104empiriolabs/step-3-5-flash-2603: S105empiriolabs/step-3-7-flash: S106empiriolabs/stepaudio-2-5-chat: S107empiriolabs/text-embedding-v4: S108empiriolabs/tongyi-embedding-vision-flash: S109empiriolabs/tongyi-embedding-vision-plus: S110eu.anthropic.claude-fable-5: S220featherless_ai/WeiboAI/VibeThinker-1.5B: S111featherless_ai/WeiboAI/VibeThinker-3B: S111fireworks_ai/accounts/fireworks/models/deepseek-v4-pro: S179fireworks_ai/accounts/fireworks/models/glm-5p2: S180fireworks_ai/accounts/fireworks/models/kimi-k2p6: S181fireworks_ai/accounts/fireworks/models/kimi-k3: S182fireworks_ai/accounts/fireworks/models/kimi-k3-fast: S160, S182fireworks_ai/deepseek-v4-pro: S179fireworks_ai/glm-5p2: S180fireworks_ai/kimi-k2p6: S181fireworks_ai/kimi-k3: S182fireworks_ai/kimi-k3-fast: S182friendliai/gemma-4-31B-it: S112, S184friendliai/meta-llama-3.1-8b-instruct: S183gemini-2.5-flash-native-audio-preview-12-2025: S5, S7gemini-2.5-flash-preview-tts: S7gemini-3-pro-image: S7gemini-3.1-flash-lite: S6, S7, S153gemini-3.1-flash-lite-preview: S4gemini-3.1-flash-live-preview: S5gemini/gemini-2.5-flash-native-audio-preview-12-2025: S5, S7gemini/gemini-2.5-flash-preview-tts: S7gemini/gemini-3-pro-image: S7gemini/gemini-3.1-flash-image: S7gemini/gemini-3.1-flash-lite: S6, S7, S153gemini/gemini-3.1-flash-live-preview: S5github_copilot/claude-haiku-4.5: S162github_copilot/claude-opus-4.6-fast: S161github_copilot/claude-opus-41: S161github_copilot/claude-sonnet-4: S161github_copilot/gemini-3-pro-preview: S161github_copilot/gpt-4.1: S161github_copilot/gpt-4.1-2025-04-14: S161github_copilot/gpt-5: S161github_copilot/gpt-5-mini: S162github_copilot/gpt-5.1: S161github_copilot/gpt-5.1-codex-max: S161github_copilot/gpt-5.2: S161github_copilot/gpt-5.3-codex: S161, S162global.anthropic.claude-fable-5: S220gpt-4o-audio-preview: S224gpt-4o-mini-audio-preview: S224gpt-4o-mini-realtime-preview: S224gpt-4o-realtime-preview: S224gpt-4o-realtime-preview-2024-12-17: S224gpt-4o-realtime-preview-2025-06-03: S224gpt-5.6-luna: S138, S228gpt-5.6-sol: S139, S228gpt-5.6-terra: S140, S228gpt-realtime-2: S227, S228groq/compound-beta-mini: S131groq/qwen/qwen3.6-27b: S132infercom/gemma-4-31B-it: S185jp.amazon.nova-2-lite-v1:0: S143libertai/glm-5.2: S113, S115, S163minimax/MiniMax-M2.7: S221, S222, S223minimax/MiniMax-M3: S223mistral/voxtral-mini-latest: S167mistral/voxtral-small-2507: S164, S168, S170mistral/voxtral-small-latest: S164, S168novita/moonshotai/kimi-k3: S114oci/xai.grok-4.3: S171openrouter/anthropic/claude-fable-5: S11, S151, S152, S208, S214openrouter/anthropic/claude-haiku-4.5: S142, S209openrouter/anthropic/claude-opus-4.1: S142openrouter/anthropic/claude-opus-4.5: S142openrouter/anthropic/claude-opus-4.6: S142openrouter/anthropic/claude-opus-4.7: S142openrouter/anthropic/claude-opus-4.7-fast: S11, S151, S152, S210, S214openrouter/anthropic/claude-opus-4.8: S11, S151, S152, S211, S214openrouter/anthropic/claude-opus-4.8-fast: S11, S151, S152, S212, S214openrouter/anthropic/claude-sonnet-4: S142openrouter/anthropic/claude-sonnet-4.5: S142openrouter/anthropic/claude-sonnet-4.6: S142openrouter/anthropic/claude-sonnet-5: S11, S151, S152, S213, S214openrouter/deepseek/deepseek-v4-flash: S10, S214openrouter/deepseek/deepseek-v4-pro: S10openrouter/google/gemma-4-26b-a4b-it: S214openrouter/google/gemma-4-31b-it: S214openrouter/inception/mercury-2: S214openrouter/kwaipilot/kat-coder-air-v2.5: S214, S215openrouter/kwaipilot/kat-coder-pro-v2.5: S214, S216openrouter/moonshotai/kimi-k3: S214openrouter/openai/gpt-5.1: S214openrouter/openai/gpt-5.5: S214openrouter/sakana/fugu-ultra: S214, S217openrouter/z-ai/glm-5.2: S214, S218sambanova/DeepSeek-V3.2: S172scaleway/google/gemma-3-27b-it: [S252]scaleway/mistralai/devstral-2-123b-instruct-2512: [S252]scaleway/mistralai/voxtral-small-24b-2507: [S252]scaleway/zai/glm-5.2: [S253]snowflake/claude-haiku-4-5: S142snowflake/claude-sonnet-4-5: S142snowflake/claude-sonnet-4-6: S142soniox/stt-rt-v5: [S238], [S239]stepfun/step-3.5-flash: S230, S231, S233stepfun/step-3.5-flash-2603: S229, S230, S231, S233stepfun/step-3.7-flash: S230, S232, S233telnyx/moonshotai/Kimi-K2.6: S141, [S244], [S245]text-embedding-004: S127together_ai/moonshotai/Kimi-K2.6: [S254]us.anthropic.claude-fable-5: S220vercel_ai_gateway/amazon/titan-embed-text-v2: S1vercel_ai_gateway/anthropic/claude-haiku-4.5: S220vercel_ai_gateway/anthropic/claude-opus-4.1: S220vercel_ai_gateway/anthropic/claude-opus-4.5: S220vercel_ai_gateway/anthropic/claude-opus-4.6: S220vercel_ai_gateway/anthropic/claude-sonnet-4: S220vercel_ai_gateway/anthropic/claude-sonnet-4.5: S220vercel_ai_gateway/cohere/embed-v4.0: S1vercel_ai_gateway/mistral/codestral-embed: S1vercel_ai_gateway/mistral/mistral-embed: S1vertex_ai/claude-fable-5: S220vertex_ai/claude-fable-5@default: S220vertex_ai/claude-haiku-4-5: S129vertex_ai/claude-haiku-4-5@20251001: S129vertex_ai/claude-sonnet-4-6: S154vertex_ai/claude-sonnet-4-6@default: S154vertex_ai/gemini-3.1-flash-lite: S6, S7, S153vertex_ai/gemini-3.1-flash-lite-image: S130vertex_ai/google/gemma-4-26b-a4b-it-maas: S128vertex_ai/xai/grok-4.20-non-reasoning: S125vertex_ai/xai/grok-4.20-reasoning: S125vertex_ai/xai/grok-4.3: S125, S126wandb/JetBrains/Mellum2-12B-A2.5B-Instruct: S173, [S246]wandb/MiniMaxAI/MiniMax-M2.5: [S246]wandb/MiniMaxAI/MiniMax-M3: S173, [S246]wandb/OpenPipe/Qwen3-14B-Instruct: S173, [S246]wandb/Qwen/Qwen3-30B-A3B-Instruct-2507: S173, [S246]wandb/Qwen/Qwen3-Coder-480B-A35B-Instruct: S173, [S246]wandb/Qwen/Qwen3.5-35B-A3B: S173, [S246]wandb/Qwen/Qwen3.6-27B: S173, [S246]wandb/Qwen/Qwen3.6-35B-A3B: S173, [S246]wandb/deepseek-ai/DeepSeek-V3.1: S173, [S246]wandb/deepseek-ai/DeepSeek-V4-Flash: S173, [S246]wandb/deepseek-ai/DeepSeek-V4-Flash-0731: S173, [S246]wandb/deepseek-ai/DeepSeek-V4-Pro: S173, [S246]wandb/google/gemma-4-31B-it: S173, [S246]wandb/ibm-granite/granite-4.1-8b: S173, [S246]wandb/meta-llama/Llama-3.1-70B-Instruct: S173, [S246]wandb/meta-llama/Llama-3.1-8B-Instruct: [S246]wandb/meta-llama/Llama-3.3-70B-Instruct: [S246]wandb/moonshotai/Kimi-K2.6: S173, [S246]wandb/moonshotai/Kimi-K2.7-Code: S173, [S246]wandb/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8: S173, [S246]wandb/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B: S173, [S246]wandb/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B: S173, [S246]wandb/openai/gpt-oss-120b: S173, [S246]wandb/openai/gpt-oss-20b: S173, [S246]wandb/zai-org/GLM-5.1: S173, [S246]wandb/zai-org/GLM-5.2: S173, [S246]watsonx/ibm/granite-4-h-small: [S251]watsonx/openai/gpt-oss-120b: [S251]xai/grok-4.5: S174xai/grok-4.5-latest: S174xiaomi_mimo/mimo-v2.5: S201, S202, S203, S204, S205, S206, S207xiaomi_mimo/mimo-v2.5-asr: S200, S202, S207xiaomi_mimo/mimo-v2.5-pro: S201, S202, S203, S207zai/glm-5.2: S175, S176, S177[S234]: https://prices.azure.com/api/retail/prices?$filter=contains(meterName,'gpt img 1.5')
[S235]: https://prices.azure.com/api/retail/prices?$filter=contains(productName,'Cohere')
[S236]: https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview&$filter=contains(meterName,'5.6%20terra')
[S237]: https://raw.githubusercontent.com/meta-llama/llama3/main/MODEL_CARD.md
[S238]: https://soniox.com/docs/stt/models
[S239]: https://soniox.com/pricing
[S240]: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/deepseek-r1-0528-is-now-available-on-azure-ai-foundry/4420730
[S241]: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-ai21-labs-jamba-1-5-large-and-jamba-1-5-mini-on-azure-ai-models-as-a/4220040
[S242]: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-kimi-k2-7-code-in-microsoft-foundry/4532286
[S243]: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/mistral-document-ai-with-ocr-4-and-mistral-medium-3-5-arrive-in-microsoft-foundry/4529863
[S244]: https://telnyx.com/pricing.md
[S245]: https://telnyx.com/pricing/inference-api
[S246]: https://wandb.ai/site/pricing/tokens/
[S247]: https://www.alibabacloud.com/help/en/model-studio/deepseek-v4-flash
[S248]: https://www.alibabacloud.com/help/en/model-studio/deepseek-v4-pro
[S249]: https://www.alibabacloud.com/help/en/model-studio/qwen3-6-plus
[S250]: https://www.databricks.com/product/pricing/proprietary-foundation-model-serving
[S251]: https://www.ibm.com/docs/en/watsonx/saas?topic=solutions-supported-foundation-models
[S252]: https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/
[S253]: https://www.scaleway.com/en/generative-apis/
[S254]: https://www.together.ai/models/kimi-k26
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review)
Screenshots / Proof of Fix
Shared setup used
LITELLM_LOCAL_MODEL_COST_MAP=True, a local master key, and the same usage payload at both revisions. The configured upstream was a dead local port, so no provider request occurredBefore (b9bff09)
Databricks Claude cache pricing
litellm_internal_stagingmerge base on port 4002databricks/databricks-claude-3-7-sonnetreturns{"cost":0.005999987000000001}databricks/databricks-claude-fable-5returns{"cost":0.0}databricks/databricks-claude-sonnet-5returns{"cost":0.0}After (8ad2b59)
Databricks Claude cache pricing
databricks/databricks-claude-3-7-sonnetreturns{"cost":0.00421499295}databricks/databricks-claude-fable-5returns{"cost":0.014050056300000002}databricks/databricks-claude-sonnet-5returns{"cost":0.0028099718500000006}The 3.7 Sonnet result is 29.8 percent lower because cache reads and cache creations use their documented rates. All six values matched independent arithmetic from each revision's registry. Logs contained only health and spend-calculation requests with no provider egress
Automated validation
JSON parsing, registry synchronization, generated schema checks, targeted Ruff, and relevant registry suites passed. The consolidated result was 616 passed, 4 skipped, 0 failed
Seven source test paths were absent and were not imported blindly:
tests/test_litellm/test_openai_chat_latest_model_metadata.pytests/test_litellm/llms/stepfun/test_stepfun_pricing.pytests/test_litellm/test_mistral_voxtral_models.pytests/test_litellm/llms/soniox/test_soniox_stt_rt_pricing.pytests/test_litellm/test_bedrock_claude_3_5_sonnet_model_metadata.pytests/test_litellm/test_kimi_k3_pricing.pytests/test_litellm/test_wandb_model_metadata.py2026-08-22 audit run
Novita (https://api.novita.ai/v3/openai/models)
Novita publishes per-model pricing, context, endpoint and modality metadata on its OpenAI-compatible model endpoint. The registry carried 86 of the 149 models it lists.
input_cost_per_token,output_cost_per_token, context and output limits, and the capability flags Novita reports (function-calling,structured-outputs,reasoning, image input). Families: DeepSeek V4 (flash, flash-0731, pro, pro-0813), DeepSeek R1 and V3 community routes, GLM 4.7-flash/4.7-h/5/5-turbo/5.1/5.2/5.3/5v-turbo, Qwen3.5 and Qwen3.6 families, Qwen3.7-max, Qwen3.8-max, Qwen3-coder-next, Kimi K2.5/K2.6/K2.7-code, MiniMax M2.5/M2.7/M3, Gemma 4, Ling and Ring, Nemotron 3 Nano, MiMo v2 family, StepFun Step 3.7 Flash, Tencent HY3, Macaron v1, Baidu Cobuddy, DeepSeek OCR 2 and several legacy 7B/13B routes.novita/qwen/qwen3-coder-480b-a35b-instructinput 3e-07 to 3.8e-07 and output 1.3e-06 to 1.55e-06;novita/xiaomimimo/mimo-v2-flashinput 1e-07 to 1.1e-07 and output 3e-07 to 3.3e-07.supports_response_schema,supports_function_callingwithsupports_tool_choice,supports_reasoning).meta-llama/llama-3.3-70b-instructat 12,288). Dropping a documented capability or window on the strength of an omission risks breaking working routes.ai_infer_test_*,bunny,elephant,dev/glm46,gt-4p,minimax/m2-her,nex-agi/nex-n2-pro,inclusionai/ling-3.0-tiny,qwen/qwen3.5-plus,qwen/qwen3.6-plus).Azure OpenAI and Azure AI Foundry (https://prices.azure.com/api/retail/prices, https://ai.azure.com/catalog/models/gpt-5.6)
Every GPT-5.6 meter was read from the Azure retail price API (
contains(productName,'OpenAI')), which publishes short-context, long-context, cached-input, cache-write, standard and priority rows per deployment type.azure/eu/gpt-5.6,azure/eu/gpt-5.6-sol,azure/us/gpt-5.6-sol,azure/us/gpt-5.6-terra,azure/eu/gpt-5.6-lunaandazure/us/gpt-5.6-luna(sol: input 1.375e-05 to 1.1e-05, cache read 1.375e-06 to 1.1e-06, output 8.25e-05 to 6.6e-05, matching5.6 sol ShortCo Inp PP DZ= $11.00/1M,Cd Inp PP DZ= $1.10/1M,Opt PP DZ= $66.00/1M).cache_creation_input_token_costonazure/eu/gpt-5.6($6.875/1M),azure/eu/gpt-5.6-terraandazure/us/gpt-5.6-terra($2.75/1M), pluscache_creation_input_token_cost_priorityon the data-zone 5.6 rows and onazure/gpt-5.6-luna($0.50/1M).azure_ai/gpt-5.6,azure_ai/gpt-5.6-sol,azure_ai/gpt-5.6-terraandazure_ai/gpt-5.6-lunaat the global meter prices, absorbing fix(azure_ai): add pricing for GPT 5.6 family on Azure Foundry (#37282) #37286.azure/gpt-realtime-2025-08-28andazure/gpt-realtime-1.5-2026-02-23were 10x the published cached-audio meter; both set to 4e-07. Added the documented cached text input price togpt-realtime-mini(6e-08). Absorbs fix: cache-read price on 3 realtime rows that disagree with their own siblings (10x) #37932.OpenAI (https://platform.openai.com/docs/models/)
gpt-5.6-cyberanddaybreak-red-latestlist a 400,000-token context window with 272,000 maximum input tokens;max_input_tokenscorrected to 272000.daybreak-blue-latestcorrected to 922000, matching itsgpt-5.6-soldefault.supported_endpointsis now["/v1/responses"]on each.max_input_tokensholds the latter.WandB Inference (https://wandb.ai/site/pricing/tokens/, https://docs.wandb.ai/inference/models)
Qwen3-235B-A22B-Instruct-2507,Qwen3-235B-A22B-Thinking-2507,DeepSeek-R1-0528,DeepSeek-V3-0324,Llama-4-Scout-17B-16E-Instruct,Phi-4-mini-instruct,GLM-4.5. This supersedes fix: wandb/* model prices stored as $/1M in a per-token field (100,000x overcharge) #37930, whose rescaledgpt-oss-120b/gpt-oss-20bvalues ($0.15/$0.60 and $0.05/$0.20 per 1M) disagree with the current table ($0.03/$0.17 and $0.03/$0.13); the branch already carries the published values.wandb/Qwen/Qwen3.8-27B($0.40 input, $3.00 output, $0.15 cache hit, 262k context, listed as Text and Vision).supports_visiontowandb/Qwen/Qwen3.5-35B-A3B,wandb/Qwen/Qwen3.6-27Bandwandb/Qwen/Qwen3.6-35B-A3B, which the catalog lists as Text and Vision.wandb/*entry now matches the pricing table for input, output and cache-hit rates.OpenRouter (https://openrouter.ai/api/v1/models)
Filled in values that were absent, so these routes stopped billing at zero:
openrouter/deepseek/deepseek-v4-flash(6.006e-08 / 1.2012e-07),openrouter/google/gemma-4-26b-a4b-it(7e-08 / 3.4e-07, 16,384 output),openrouter/google/gemma-4-31b-it(1e-07 / 3.4e-07),openrouter/z-ai/glm-5.2(9.66e-07 / 3.036e-06, 131,072 output), andmax_input_tokensonopenrouter/openai/gpt-5.1(272000, matching its siblings and the OpenAI model page).Not changed: roughly 50 further
openrouter/*price differences. OpenRouter's published price follows whichever upstream provider currently serves the default endpoint, so those numbers move without the model changing, and rewriting them all would churn the registry.Source PR disposition for this run
Absorbed and superseded: #36820 (voyage-code-4 already present at the published $0.12/1M with its source URL), #37286, #37830 (the $0.001375/1K data-zone cached input meter is already on the branch), #37930, #37932, #37945 (GPT-5.6 family metadata; the Azure meters confirm every price it touched, while its
deprecation_dateremovals are out of scope for this audit and itssearch_context_cost_per_queryremovals were not documented).Not absorbed: #37585, which sets
supports_visionfalse onnovita/openai/gpt-oss-120b. Novita's own model endpoint reports"input_modalities": ["text", "image"]for that id, so the provider documents image input and the change contradicts its source.2026-08-24 audit run
Anthropic (https://docs.claude.com/en/docs/build-with-claude/prompt-caching)
The prompt-caching page states 1-hour cache writes cost 2x base input. Two entries disagreed:
claude-3-haiku-20240307held6e-06against a2.5e-07input (24x) andclaude-3-opus-20240229held6e-06against a1.5e-05input (0.4x). They now read5e-07and3e-05. A scan of the whole registry found no othercache_creation_input_token_cost_above_1hroff the 2x rule. This absorbs #38079.W&B Serverless Inference (https://docs.wandb.ai/guides/inference/lifecycle/, https://wandb.ai/site/pricing/inference)
Added
deprecation_datefrom the lifecycle table's retirement column:wandb/MiniMaxAI/MiniMax-M2.5,wandb/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8andwandb/Qwen/Qwen3-Coder-480B-A35B-Instructat 2026-08-25,wandb/moonshotai/Kimi-K2-Instructat 2026-03-04.Not changed: the lifecycle row for
zai-org/GLM-5.1-FP8has no matching registry id (the branch carrieswandb/zai-org/GLM-5.1), andwandb/moonshotai/Kimi-K2.5appears in neither table, so neither got a date. Re-checked everywandb/*input, output and cache-hit rate against the pricing table: all match, so #38015 is already covered by the branch.Vertex AI (https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions)
multimodalembeddingnow carries 2027-04-01, the retirement date the page lists formultimodalembedding@001, which is the alias's only version and already had the date.Re-verified, no change needed
Re-read the raw tables on the Azure OpenAI retirement schedule, the OpenAI deprecations page, the AWS Bedrock model lifecycle page, the Anthropic model deprecations page, the Gemini API deprecations page and the Vertex model versions page. Every registry date that maps to a documented row already agrees, including the Gemini API and Vertex splits (
gemini/gemini-embedding-0012028-05-14 vsvertex_ai/gemini-embedding-0012028-05-20).Deliberately left without a date:
azure/gpt-realtime-mini-2025-10-06: the Azure schedule lists that version twice with different retirement dates, so the value is ambiguous.gpt-5,gpt-5-mini,gpt-5-nano,gpt-5-pro,o3,o3-pro: the OpenAI table lists only the dated snapshots (Dec 11, 2026), which the registry already has. Alias shutdown dates are not published, so they were not inferred.vertex_ai/imagen-4.0-*: the Aug 17, 2026 date appears on the Gemini API page, which coversgemini/imagen-4.0-*(already dated), not on the Vertex lifecycle page.Source PR disposition for this run
Absorbed and closed: #37996 (data-zone
gpt-4o-2024-11-20cache read at1.375e-06, including its cost-calculation test), #38015 (wandb per-token rescaling, values already on the branch), #38016 (Azure realtime cached rates at4e-07andgpt-realtime-minicached text at6e-08, already on the branch and confirmed against the OpenAI pricing table rows$32.00 / $0.40audio and$0.60 / $0.06text), #38079.Not absorbed:
supports_visionfalse onnovita/openai/gpt-oss-120b. Novita's model endpoint reports"input_modalities": ["text", "image"], the same contradiction that kept fix: set supports_vision to false for novita/openai/gpt-oss-120b #37585 out.supported_regions["global", "us", "eu"]togemini-3.7-flashwith a test assertingus-central1maps to global. The Vertex locations page lists Gemini 3.7 Flash under individual regions including Iowa (us-central1), so the change conflicts with its own source.empiriolabs/*catalog, much of it priced at zero, with no official price list to verify against.Untouched as code or behavior changes that only brush the JSON: #37975, #36233, #30383, #29898, #33947, #35617.
Validation for this run
python3 ci_cd/check_files_match.pypasses;uv run --no-sync python ci_cd/generate_model_prices_schema.pyregenerated the schema.uv run --no-sync python -m pytest tests/test_litellm/test_model_prices_schema.py tests/test_litellm/llms/azure/test_azure_cost_calculation.py tests/test_litellm/test_cost_calculator.py -q: 118 passed.2026-08-24 audit run (later pass)
Moonshot / Kimi (https://platform.kimi.ai/docs/pricing/chat-k27-code, https://platform.kimi.ai/docs/models, https://platform.kimi.ai/docs/api/models-overview, https://platform.kimi.ai/docs/guide/response_format)
The Kimi model list carries two coding models with no registry entry, so
moonshot/kimi-k2.7-codeandmoonshot/kimi-k2.7-code-highspeedare new. Pricing comes from the raw HTML of the K2.7 Code pricing table, cross-checked with a second reader: $0.95 in, $0.19 cache hit and $4.00 out per 1M for the base model, $1.90 / $0.38 / $8.00 for the high-speed variant, both at a 262,144-token context. The parameter reference and the structured-output guide document tool calls,tool_choice, always-on thinking and JSON Schema output, and the pricing page documents image and video input plus automatic context caching, so those flags are setThe same pricing pages state automatic context caching for K3, K2.6 and K2.5, which already carry cache-hit rates but not the flag, so
supports_prompt_cachingis now true onmoonshot/kimi-k3,moonshot/kimi-k2.6andmoonshot/kimi-k2.5Not changed: the K2.6 and K2.5 pages advertise internet search, but Moonshot exposes it as a vendor-specific builtin tool rather than the OpenAI-style web search that
supports_web_searchdescribes, so the flag stays off. Max output tokens are not published separately from the context window, so the new entries mirror the documented context like their siblingsSource PR disposition for this run
Nothing new to absorb. #36413 (xAI grok-4.5 cached input at $0.30 and $0.60 per 1M) and #35592 (
moonshot/kimi-k3) were re-verified against the xAI and Kimi pricing pages, the branch already matches both, and both are already closed. The open PRs touching the registry today, #36233, #29898 and #30383, are code or behavior changes that only brush the JSON, so they are left aloneValidation for this run
litellm_internal_stagingin again at field level, keeping 806 branch fields and 56 newer staging fields with no tiered-pricing keys lostpython3 ci_cd/check_files_match.pypasses and the schema was regeneratedLITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/test_litellm/test_model_prices_schema.py tests/test_litellm/test_model_cost_aliases.py tests/test_litellm/test_utils.py tests/test_litellm/llms/databricks/: 461 passed, 13 skippedType
New Feature
Bug Fix
Infrastructure
Test
Caveats (if any)
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/ab125e83748e407da8048334d3194e47