Skip to content

feat(models): audit registry metadata and Databricks cache pricing - #37902

Closed
devin-ai-integration[bot] wants to merge 15 commits into
litellm_internal_stagingfrom
litellm_databricks_claude_cache_pricing
Closed

devin-ai-integration[bot] wants to merge 15 commits into
litellm_internal_stagingfrom
litellm_databricks_claude_cache_pricing

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Registry metadata lagged official provider documentation
  • Databricks cached tokens used full input pricing
  • Retired routes remained available with incomplete metadata

How it solves it:

  • Revalidates registry changes against official provider sources
  • Adds Databricks cache read and write pricing
  • Records lifecycle dates and removes unavailable routes
  • Consolidates 91 open registry PRs field by field

User Flow

Before: a developer calculating Databricks Claude spend sees cached tokens charged at full input price

  1. They configure databricks/databricks-claude-3-7-sonnet and send requests through POST https://litellm-domain/v1/chat/completions
  2. The response succeeds with 1,500 prompt tokens, including 800 cache reads and 500 cache creations, plus 100 completion tokens
  3. They send the usage to POST https://litellm-domain/spend/calculate and receive {"cost":0.005999987000000001}

After: the same request reports the discounted cache rates and accurate spend

  1. They configure databricks/databricks-claude-3-7-sonnet and send requests through POST https://litellm-domain/v1/chat/completions
  2. The response succeeds with 1,500 prompt tokens, including 800 cache reads and 500 cache creations, plus 100 completion tokens
  3. They send the usage to POST https://litellm-domain/spend/calculate and receive {"cost":0.00421499295}

Relevant issues

Supports the deprecation_date metadata planned in #26900

Linear ticket

Resolves LIT-5977

Registry audit

The final diff against litellm_internal_staging adds 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 intact

Schema support now covers max_audio_per_prompt, max_images_per_prompt, max_videos_per_prompt, and max_audio_length_hours. The hardcoded registry test schema also recognizes every field used by the audited registry

Claude 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:0
  • friendliai/meta-llama-3.1-8b-instruct
  • github_copilot/claude-opus-4.6-fast
  • github_copilot/claude-opus-41
  • github_copilot/claude-sonnet-4
  • github_copilot/gemini-3-pro-preview
  • github_copilot/gpt-4.1
  • github_copilot/gpt-4.1-2025-04-14
  • github_copilot/gpt-5
  • github_copilot/gpt-5.1
  • github_copilot/gpt-5.1-codex-max
  • github_copilot/gpt-5.2
  • scaleway/google/gemma-3-27b-it
  • scaleway/mistralai/devstral-2-123b-instruct-2512
  • scaleway/mistralai/voxtral-small-24b-2507

Source 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-thinking was excluded because only provider and mode were verifiable, which would silently price requests at zero

The 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: S219
  • anthropic.claude-3-5-sonnet-20241022-v2:0: S219
  • anthropic.claude-fable-5: S142
  • apac.amazon.nova-2-lite-v1:0: S143
  • azure/eu/gpt-4o-2024-11-20: S119
  • azure/eu/gpt-5.6-luna: S122
  • azure/eu/gpt-5.6-sol: S122
  • azure/eu/gpt-5.6-terra: S122, S123
  • azure/gpt-4.1-nano: S196
  • azure/gpt-4.1-nano-2025-04-14: S196
  • azure/gpt-5.4-mini: S192
  • azure/gpt-5.4-mini-2026-03-17: S192
  • azure/gpt-5.4-nano: S192
  • azure/gpt-5.4-nano-2026-03-17: S192
  • azure/gpt-5.6: S122, S123
  • azure/gpt-5.6-luna: S122
  • azure/gpt-5.6-sol: S122, S123
  • azure/gpt-5.6-terra: S122, S123, [S236]
  • azure/gpt-audio-1.5-2026-02-23: S122
  • azure/gpt-audio-mini: S122
  • azure/gpt-audio-mini-2025-10-06: S122
  • azure/gpt-image-1.5: [S234]
  • azure/gpt-image-1.5-2025-12-16: [S234]
  • azure/gpt-realtime-1.5-2026-02-23: S122
  • azure/gpt-realtime-2: S122, S187, S191
  • azure/gpt-realtime-2.1: S122, S187, S191
  • azure/gpt-realtime-2.1-mini: S122, S187, S191
  • azure/gpt-realtime-2025-08-28: S122
  • azure/gpt-realtime-mini: S122
  • azure/gpt-realtime-mini-2025-10-06: S122
  • azure/us/gpt-4.1-nano-2025-04-14: S196
  • azure/us/gpt-4o-2024-11-20: S119
  • azure/us/gpt-5.6: S122, S123
  • azure/us/gpt-5.6-luna: S122
  • azure/us/gpt-5.6-sol: S122
  • azure/us/gpt-5.6-terra: S122
  • azure_ai/AI21-Jamba-1.5-Large: S197, [S241]
  • azure_ai/AI21-Jamba-1.5-Mini: S197, [S241]
  • azure_ai/Codestral-2501: S195
  • azure_ai/Cohere-command-r-08-2024: S124, S156
  • azure_ai/Cohere-command-r-plus-08-2024: S155, S197
  • azure_ai/DeepSeek-R1-0528: S2, [S240]
  • azure_ai/Llama-4-Maverick-17B-128E-Instruct-FP8: S120
  • azure_ai/Meta-Llama-3-8B-Instruct: S199, [S237]
  • azure_ai/claude-fable-5: S142
  • azure_ai/claude-haiku-4-5: S142
  • azure_ai/claude-opus-4-1: S142
  • azure_ai/claude-opus-4-5: S142
  • azure_ai/claude-opus-4-6: S142
  • azure_ai/claude-opus-4-7: S142
  • azure_ai/claude-opus-4-8: S142
  • azure_ai/claude-sonnet-4-5: S142
  • azure_ai/claude-sonnet-4-6: S142, S194
  • azure_ai/claude-sonnet-5: S142
  • azure_ai/cohere-command-a-03-2025: S3, S157, S197, [S235]
  • azure_ai/gpt-5.4: S190
  • azure_ai/gpt-5.4-2026-03-05: S190
  • azure_ai/gpt-5.4-mini: S190
  • azure_ai/gpt-5.4-mini-2026-03-17: S190
  • azure_ai/kimi-k2.7-code: S188, S198, [S242]
  • azure_ai/mistral-medium-3-5: S165, S166, [S243]
  • azure_ai/mistral-ocr-2503: S121, S193
  • azure_ai/mistral-ocr-4-0: S169, [S243]
  • bedrock/eu-west-1/qwen.qwen3-next-80b-a3b: S117, S148
  • bedrock/us-gov-east-1/meta.llama3-70b-instruct-v1:0: S144
  • bedrock/us-gov-west-1/meta.llama3-70b-instruct-v1:0: S144
  • bedrock_mantle/openai.gpt-5.6-luna: S116, S145, S150
  • bedrock_mantle/openai.gpt-5.6-sol: S139, S146, S150, S226
  • bedrock_mantle/openai.gpt-5.6-terra: S118, S147
  • bedrock_mantle/xai.grok-4.3: S149
  • cerebras/gemma-4-31b: S12
  • cerebras/gpt-oss-120b: S12
  • cerebras/zai-glm-4.7: S186
  • chat-latest: S189, S225
  • dashscope/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: S159
  • databricks/databricks-claude-opus-4-1: S159
  • databricks/databricks-claude-opus-4-5: S159
  • databricks/databricks-claude-opus-4-7: S158, S220, [S250]
  • databricks/databricks-claude-sonnet-4: S159
  • databricks/databricks-claude-sonnet-4-5: S159
  • databricks/databricks-claude-sonnet-5: S158, S220, [S250]
  • databricks/databricks-gemini-2-5-flash: S159
  • databricks/databricks-gemini-2-5-pro: S159
  • databricks/databricks-gemma-3-12b: S159
  • databricks/databricks-gpt-5: S159
  • databricks/databricks-gpt-5-1: S159
  • databricks/databricks-gpt-5-mini: S159
  • databricks/databricks-gpt-5-nano: S159
  • databricks/databricks-gpt-oss-120b: S159
  • databricks/databricks-gpt-oss-20b: S159
  • databricks/databricks-llama-4-maverick: S159
  • databricks/databricks-meta-llama-3-1-8b-instruct: S159
  • databricks/databricks-meta-llama-3-3-70b-instruct: S159
  • deepinfra/google/gemma-4-26B-A4B-it: S133, S137
  • deepinfra/google/gemma-4-31B-it: S134, S137
  • deepinfra/google/gemma-4-31B-it-Ultra: S135
  • deepinfra/google/gemma-4-31B-it-turbo: S136, S137
  • deepseek-v4-flash-vision-exp: S8, S9, S10
  • deepseek/deepseek-v4-flash-vision-exp: S8, S9, S10
  • elevenlabs/scribe_v2: S178
  • empiriolabs/deepreasoning: S13
  • empiriolabs/deepseek-v3-2: S14
  • empiriolabs/deepseek-v4-flash: S15
  • empiriolabs/deepseek-v4-flash-0731: S18
  • empiriolabs/deepseek-v4-flash:variant1: S16
  • empiriolabs/deepseek-v4-flash:variant2: S17
  • empiriolabs/deepseek-v4-pro: S19
  • empiriolabs/deepseek-v4-pro-0813: S22
  • empiriolabs/deepseek-v4-pro:variant1: S20
  • empiriolabs/deepseek-v4-pro:variant2: S21
  • empiriolabs/exa-answer: S23
  • empiriolabs/fugu-ultra-v1-0: S24
  • empiriolabs/fugu-ultra-v1-1: S25
  • empiriolabs/gemma-3-27b: S26
  • empiriolabs/gemma-4-26b-a4b: S27
  • empiriolabs/glm-4-5-flash: S28
  • empiriolabs/glm-4-6v-flash: S29
  • empiriolabs/glm-4-7-flash: S30
  • empiriolabs/glm-5-1: S31
  • empiriolabs/glm-5-2: S32
  • empiriolabs/glm-5-2:variant1: S33
  • empiriolabs/gptzero: S34
  • empiriolabs/janus-pro-deepseek: S35
  • empiriolabs/kimi-k2-6: S36
  • empiriolabs/kimi-k2-7-code: S37
  • empiriolabs/kimi-k2-7-code-highspeed: S39
  • empiriolabs/kimi-k2-7-code:variant1: S38
  • empiriolabs/kimi-k3: S40
  • empiriolabs/linkup-deep-search: S41
  • empiriolabs/linkup-standard: S42
  • empiriolabs/mimo-v2-5: S43
  • empiriolabs/mimo-v2-5-pro: S44
  • empiriolabs/minimax-m2-7: S45
  • empiriolabs/minimax-m2-7-highspeed: S46
  • empiriolabs/minimax-m3: S47
  • empiriolabs/minimax-m3:priority: S48
  • empiriolabs/mistral-medium-3: S49
  • empiriolabs/mistral-medium-3-1: S50
  • empiriolabs/mistral-small-3-1: S51
  • empiriolabs/mistral-small-4: S52
  • empiriolabs/muse-glimmer-30b: S53
  • empiriolabs/muse-spark-1-1: S54
  • empiriolabs/muse-spark-1-2: S55
  • empiriolabs/nova-lite-1-0: S56
  • empiriolabs/nova-lite-2: S57
  • empiriolabs/nova-micro-1-0: S58
  • empiriolabs/nova-premier-1-0: S59
  • empiriolabs/nova-pro-1-0: S60
  • empiriolabs/perplexity-advanced-deep-research: S61
  • empiriolabs/perplexity-deep-research: S62
  • empiriolabs/perplexity-pro-search: S63
  • empiriolabs/perplexity-sonar: S64
  • empiriolabs/perplexity-sonar-pro: S65
  • empiriolabs/perplexity-sonar-reasoning-pro: S66
  • empiriolabs/qwen3-5-122b-a10b: S67
  • empiriolabs/qwen3-5-27b: S68
  • empiriolabs/qwen3-5-35b-a3b: S69
  • empiriolabs/qwen3-5-397b-a17b: S70
  • empiriolabs/qwen3-5-4b: S71
  • empiriolabs/qwen3-5-9b: S72
  • empiriolabs/qwen3-5-flash: S73
  • empiriolabs/qwen3-5-flash:variant1: S74
  • empiriolabs/qwen3-5-omni-flash: S75
  • empiriolabs/qwen3-5-omni-plus: S76
  • empiriolabs/qwen3-5-plus: S77
  • empiriolabs/qwen3-5-plus:variant1: S78
  • empiriolabs/qwen3-6-27b: S79
  • empiriolabs/qwen3-6-35b-a3b: S80
  • empiriolabs/qwen3-6-flash: S81
  • empiriolabs/qwen3-6-flash:variant1: S82
  • empiriolabs/qwen3-6-max-preview: S83
  • empiriolabs/qwen3-6-plus: S84
  • empiriolabs/qwen3-6-plus:variant1: S85
  • empiriolabs/qwen3-7-flash: S86
  • empiriolabs/qwen3-7-flash:variant1: S87
  • empiriolabs/qwen3-7-max: S88
  • empiriolabs/qwen3-7-max:variant1: S89
  • empiriolabs/qwen3-7-plus: S90
  • empiriolabs/qwen3-7-plus:variant1: S91
  • empiriolabs/qwen3-8-27b: S92
  • empiriolabs/qwen3-8-max: S93
  • empiriolabs/qwen3-8-max:variant1: S94
  • empiriolabs/qwen3-max: S95
  • empiriolabs/qwen3-max-preview: S96
  • empiriolabs/qwen3-max-thinking: S97
  • empiriolabs/qwen3-rerank: S98
  • empiriolabs/seed-2-0-code: S99
  • empiriolabs/seed-2-0-lite: S100
  • empiriolabs/seed-2-0-mini: S101
  • empiriolabs/seed-2-0-pro: S102
  • empiriolabs/seed-2-1-turbo: S103
  • empiriolabs/step-3-5-flash: S104
  • empiriolabs/step-3-5-flash-2603: S105
  • empiriolabs/step-3-7-flash: S106
  • empiriolabs/stepaudio-2-5-chat: S107
  • empiriolabs/text-embedding-v4: S108
  • empiriolabs/tongyi-embedding-vision-flash: S109
  • empiriolabs/tongyi-embedding-vision-plus: S110
  • eu.anthropic.claude-fable-5: S220
  • featherless_ai/WeiboAI/VibeThinker-1.5B: S111
  • featherless_ai/WeiboAI/VibeThinker-3B: S111
  • fireworks_ai/accounts/fireworks/models/deepseek-v4-pro: S179
  • fireworks_ai/accounts/fireworks/models/glm-5p2: S180
  • fireworks_ai/accounts/fireworks/models/kimi-k2p6: S181
  • fireworks_ai/accounts/fireworks/models/kimi-k3: S182
  • fireworks_ai/accounts/fireworks/models/kimi-k3-fast: S160, S182
  • fireworks_ai/deepseek-v4-pro: S179
  • fireworks_ai/glm-5p2: S180
  • fireworks_ai/kimi-k2p6: S181
  • fireworks_ai/kimi-k3: S182
  • fireworks_ai/kimi-k3-fast: S182
  • friendliai/gemma-4-31B-it: S112, S184
  • friendliai/meta-llama-3.1-8b-instruct: S183
  • gemini-2.5-flash-native-audio-preview-12-2025: S5, S7
  • gemini-2.5-flash-preview-tts: S7
  • gemini-3-pro-image: S7
  • gemini-3.1-flash-lite: S6, S7, S153
  • gemini-3.1-flash-lite-preview: S4
  • gemini-3.1-flash-live-preview: S5
  • gemini/gemini-2.5-flash-native-audio-preview-12-2025: S5, S7
  • gemini/gemini-2.5-flash-preview-tts: S7
  • gemini/gemini-3-pro-image: S7
  • gemini/gemini-3.1-flash-image: S7
  • gemini/gemini-3.1-flash-lite: S6, S7, S153
  • gemini/gemini-3.1-flash-live-preview: S5
  • github_copilot/claude-haiku-4.5: S162
  • github_copilot/claude-opus-4.6-fast: S161
  • github_copilot/claude-opus-41: S161
  • github_copilot/claude-sonnet-4: S161
  • github_copilot/gemini-3-pro-preview: S161
  • github_copilot/gpt-4.1: S161
  • github_copilot/gpt-4.1-2025-04-14: S161
  • github_copilot/gpt-5: S161
  • github_copilot/gpt-5-mini: S162
  • github_copilot/gpt-5.1: S161
  • github_copilot/gpt-5.1-codex-max: S161
  • github_copilot/gpt-5.2: S161
  • github_copilot/gpt-5.3-codex: S161, S162
  • global.anthropic.claude-fable-5: S220
  • gpt-4o-audio-preview: S224
  • gpt-4o-mini-audio-preview: S224
  • gpt-4o-mini-realtime-preview: S224
  • gpt-4o-realtime-preview: S224
  • gpt-4o-realtime-preview-2024-12-17: S224
  • gpt-4o-realtime-preview-2025-06-03: S224
  • gpt-5.6-luna: S138, S228
  • gpt-5.6-sol: S139, S228
  • gpt-5.6-terra: S140, S228
  • gpt-realtime-2: S227, S228
  • groq/compound-beta-mini: S131
  • groq/qwen/qwen3.6-27b: S132
  • infercom/gemma-4-31B-it: S185
  • jp.amazon.nova-2-lite-v1:0: S143
  • libertai/glm-5.2: S113, S115, S163
  • minimax/MiniMax-M2.7: S221, S222, S223
  • minimax/MiniMax-M3: S223
  • mistral/voxtral-mini-latest: S167
  • mistral/voxtral-small-2507: S164, S168, S170
  • mistral/voxtral-small-latest: S164, S168
  • novita/moonshotai/kimi-k3: S114
  • oci/xai.grok-4.3: S171
  • openrouter/anthropic/claude-fable-5: S11, S151, S152, S208, S214
  • openrouter/anthropic/claude-haiku-4.5: S142, S209
  • openrouter/anthropic/claude-opus-4.1: S142
  • openrouter/anthropic/claude-opus-4.5: S142
  • openrouter/anthropic/claude-opus-4.6: S142
  • openrouter/anthropic/claude-opus-4.7: S142
  • openrouter/anthropic/claude-opus-4.7-fast: S11, S151, S152, S210, S214
  • openrouter/anthropic/claude-opus-4.8: S11, S151, S152, S211, S214
  • openrouter/anthropic/claude-opus-4.8-fast: S11, S151, S152, S212, S214
  • openrouter/anthropic/claude-sonnet-4: S142
  • openrouter/anthropic/claude-sonnet-4.5: S142
  • openrouter/anthropic/claude-sonnet-4.6: S142
  • openrouter/anthropic/claude-sonnet-5: S11, S151, S152, S213, S214
  • openrouter/deepseek/deepseek-v4-flash: S10, S214
  • openrouter/deepseek/deepseek-v4-pro: S10
  • openrouter/google/gemma-4-26b-a4b-it: S214
  • openrouter/google/gemma-4-31b-it: S214
  • openrouter/inception/mercury-2: S214
  • openrouter/kwaipilot/kat-coder-air-v2.5: S214, S215
  • openrouter/kwaipilot/kat-coder-pro-v2.5: S214, S216
  • openrouter/moonshotai/kimi-k3: S214
  • openrouter/openai/gpt-5.1: S214
  • openrouter/openai/gpt-5.5: S214
  • openrouter/sakana/fugu-ultra: S214, S217
  • openrouter/z-ai/glm-5.2: S214, S218
  • sambanova/DeepSeek-V3.2: S172
  • scaleway/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: S142
  • snowflake/claude-sonnet-4-5: S142
  • snowflake/claude-sonnet-4-6: S142
  • soniox/stt-rt-v5: [S238], [S239]
  • stepfun/step-3.5-flash: S230, S231, S233
  • stepfun/step-3.5-flash-2603: S229, S230, S231, S233
  • stepfun/step-3.7-flash: S230, S232, S233
  • telnyx/moonshotai/Kimi-K2.6: S141, [S244], [S245]
  • text-embedding-004: S127
  • together_ai/moonshotai/Kimi-K2.6: [S254]
  • us.anthropic.claude-fable-5: S220
  • vercel_ai_gateway/amazon/titan-embed-text-v2: S1
  • vercel_ai_gateway/anthropic/claude-haiku-4.5: S220
  • vercel_ai_gateway/anthropic/claude-opus-4.1: S220
  • vercel_ai_gateway/anthropic/claude-opus-4.5: S220
  • vercel_ai_gateway/anthropic/claude-opus-4.6: S220
  • vercel_ai_gateway/anthropic/claude-sonnet-4: S220
  • vercel_ai_gateway/anthropic/claude-sonnet-4.5: S220
  • vercel_ai_gateway/cohere/embed-v4.0: S1
  • vercel_ai_gateway/mistral/codestral-embed: S1
  • vercel_ai_gateway/mistral/mistral-embed: S1
  • vertex_ai/claude-fable-5: S220
  • vertex_ai/claude-fable-5@default: S220
  • vertex_ai/claude-haiku-4-5: S129
  • vertex_ai/claude-haiku-4-5@20251001: S129
  • vertex_ai/claude-sonnet-4-6: S154
  • vertex_ai/claude-sonnet-4-6@default: S154
  • vertex_ai/gemini-3.1-flash-lite: S6, S7, S153
  • vertex_ai/gemini-3.1-flash-lite-image: S130
  • vertex_ai/google/gemma-4-26b-a4b-it-maas: S128
  • vertex_ai/xai/grok-4.20-non-reasoning: S125
  • vertex_ai/xai/grok-4.20-reasoning: S125
  • vertex_ai/xai/grok-4.3: S125, S126
  • wandb/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: S174
  • xai/grok-4.5-latest: S174
  • xiaomi_mimo/mimo-v2.5: S201, S202, S203, S204, S205, S206, S207
  • xiaomi_mimo/mimo-v2.5-asr: S200, S202, S207
  • xiaomi_mimo/mimo-v2.5-pro: S201, S202, S203, S207
  • zai/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

  • I have added meaningful tests
  • The focused test files covering my change pass locally
  • My PR passes all required CI/CD checks
  • My PR's scope is isolated to model registry metadata and pricing
  • I have received a Greptile Confidence Score of at least 4/5

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 occurred

Before (b9bff09)

Databricks Claude cache pricing

  1. Start the proxy from the litellm_internal_staging merge base on port 4002
  2. POST the 1,500 prompt, 800 cache-read, 500 cache-creation, and 100 completion token payload to http://127.0.0.1:4002/spend/calculate
  3. Observe databricks/databricks-claude-3-7-sonnet returns {"cost":0.005999987000000001}
  4. Observe databricks/databricks-claude-fable-5 returns {"cost":0.0}
  5. Observe databricks/databricks-claude-sonnet-5 returns {"cost":0.0}

After (8ad2b59)

Databricks Claude cache pricing

  1. Start the proxy from the PR tip on port 4000
  2. POST the identical payload to http://127.0.0.1:4000/spend/calculate
  3. Observe databricks/databricks-claude-3-7-sonnet returns {"cost":0.00421499295}
  4. Observe databricks/databricks-claude-fable-5 returns {"cost":0.014050056300000002}
  5. Observe databricks/databricks-claude-sonnet-5 returns {"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.py
  • tests/test_litellm/llms/stepfun/test_stepfun_pricing.py
  • tests/test_litellm/test_mistral_voxtral_models.py
  • tests/test_litellm/llms/soniox/test_soniox_stt_rt_pricing.py
  • tests/test_litellm/test_bedrock_claude_3_5_sonnet_model_metadata.py
  • tests/test_litellm/test_kimi_k3_pricing.py
  • tests/test_litellm/test_wandb_model_metadata.py

2026-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.

  • Added 58 chat models from that response, each with 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.
  • Corrected prices that drifted: novita/qwen/qwen3-coder-480b-a35b-instruct input 3e-07 to 3.8e-07 and output 1.3e-06 to 1.55e-06; novita/xiaomimimo/mimo-v2-flash input 1e-07 to 1.1e-07 and output 3e-07 to 3.3e-07.
  • Added capability flags Novita documents but the registry omitted, on 14 entries (supports_response_schema, supports_function_calling with supports_tool_choice, supports_reasoning).
  • Not changed: entries where Novita's response omits a feature the registry marks true, and context or output limits where Novita reports a smaller served window than the model's published one (for example meta-llama/llama-3.3-70b-instruct at 12,288). Dropping a documented capability or window on the strength of an omission risks breaking working routes.
  • Excluded the internal or zero-priced ids in that list (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.

  • Priority pricing on the data-zone GPT-5.6 rows was set to the global values rather than the data-zone ones. Corrected 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-luna and azure/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, matching 5.6 sol ShortCo Inp PP DZ = $11.00/1M, Cd Inp PP DZ = $1.10/1M, Opt PP DZ = $66.00/1M).
  • Added the missing cache-write meters: cache_creation_input_token_cost on azure/eu/gpt-5.6 ($6.875/1M), azure/eu/gpt-5.6-terra and azure/us/gpt-5.6-terra ($2.75/1M), plus cache_creation_input_token_cost_priority on the data-zone 5.6 rows and on azure/gpt-5.6-luna ($0.50/1M).
  • Added azure_ai/gpt-5.6, azure_ai/gpt-5.6-sol, azure_ai/gpt-5.6-terra and azure_ai/gpt-5.6-luna at the global meter prices, absorbing fix(azure_ai): add pricing for GPT 5.6 family on Azure Foundry (#37282) #37286.
  • Realtime cache-read and cache-write audio rows on azure/gpt-realtime-2025-08-28 and azure/gpt-realtime-1.5-2026-02-23 were 10x the published cached-audio meter; both set to 4e-07. Added the documented cached text input price to gpt-realtime-mini (6e-08). Absorbs fix: cache-read price on 3 realtime rows that disagree with their own siblings (10x) #37932.
  • After these edits all 12 GPT-5.6 Azure entries reproduce the retail meters exactly for standard, priority and above-272k tiers.

OpenAI (https://platform.openai.com/docs/models/)

  • gpt-5.6-cyber and daybreak-red-latest list a 400,000-token context window with 272,000 maximum input tokens; max_input_tokens corrected to 272000. daybreak-blue-latest corrected to 922000, matching its gpt-5.6-sol default.
  • All three model pages list Responses as the only supported endpoint, so supported_endpoints is now ["/v1/responses"] on each.
  • Not changed: the 1,050,000-token context window on the GPT-5.6 family. OpenAI documents context window and maximum input tokens as different numbers, and max_input_tokens holds the latter.

WandB Inference (https://wandb.ai/site/pricing/tokens/, https://docs.wandb.ai/inference/models)

  • Removed seven entries whose per-token fields held dollars-per-million values (a 100,000x overcharge) for models WandB no longer lists in either its catalog or its pricing table: 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 rescaled gpt-oss-120b/gpt-oss-20b values ($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.
  • Added wandb/Qwen/Qwen3.8-27B ($0.40 input, $3.00 output, $0.15 cache hit, 262k context, listed as Text and Vision).
  • Added supports_vision to wandb/Qwen/Qwen3.5-35B-A3B, wandb/Qwen/Qwen3.6-27B and wandb/Qwen/Qwen3.6-35B-A3B, which the catalog lists as Text and Vision.
  • Every remaining wandb/* entry now matches the pricing table for input, output and cache-hit rates.
  • Not changed: the pricing page lists a "Z.AI GLM 5" row that has no catalog entry, so its API model id is unknown and no entry was added.

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), and max_input_tokens on openrouter/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_date removals are out of scope for this audit and its search_context_cost_per_query removals were not documented).

Not absorbed: #37585, which sets supports_vision false on novita/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-20240307 held 6e-06 against a 2.5e-07 input (24x) and claude-3-opus-20240229 held 6e-06 against a 1.5e-05 input (0.4x). They now read 5e-07 and 3e-05. A scan of the whole registry found no other cache_creation_input_token_cost_above_1hr off 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_date from the lifecycle table's retirement column: wandb/MiniMaxAI/MiniMax-M2.5, wandb/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8 and wandb/Qwen/Qwen3-Coder-480B-A35B-Instruct at 2026-08-25, wandb/moonshotai/Kimi-K2-Instruct at 2026-03-04.

Not changed: the lifecycle row for zai-org/GLM-5.1-FP8 has no matching registry id (the branch carries wandb/zai-org/GLM-5.1), and wandb/moonshotai/Kimi-K2.5 appears in neither table, so neither got a date. Re-checked every wandb/* 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)

multimodalembedding now carries 2027-04-01, the retirement date the page lists for multimodalembedding@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-001 2028-05-14 vs vertex_ai/gemini-embedding-001 2028-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 covers gemini/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-20 cache read at 1.375e-06, including its cost-calculation test), #38015 (wandb per-token rescaling, values already on the branch), #38016 (Azure realtime cached rates at 4e-07 and gpt-realtime-mini cached text at 6e-08, already on the branch and confirmed against the OpenAI pricing table rows $32.00 / $0.40 audio and $0.60 / $0.06 text), #38079.

Not absorbed:

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.py passes; uv run --no-sync python ci_cd/generate_model_prices_schema.py regenerated 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-code and moonshot/kimi-k2.7-code-highspeed are 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 set

The 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_caching is now true on moonshot/kimi-k3, moonshot/kimi-k2.6 and moonshot/kimi-k2.5

Not 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_search describes, 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 siblings

Source 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 alone

Validation for this run

  • Merged the current litellm_internal_staging in again at field level, keeping 806 branch fields and 56 newer staging fields with no tiered-pricing keys lost
  • python3 ci_cd/check_files_match.py passes and the schema was regenerated
  • LITELLM_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 skipped

Type

New Feature

Bug Fix

Infrastructure

Test

Caveats (if any)

  • Provider values changed only with exact official documentation
  • Seven source test paths were unavailable on this branch
  • One stale Bedrock docstring remains outside registry scope

Final Attestation

  • The tests check real pricing, aliases, schemas, and registry edge cases

Link to Devin session: https://app.devin.ai/sessions/ab125e83748e407da8048334d3194e47

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-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds pricing and capability metadata for newer Databricks-hosted Claude models and makes Databricks spend calculation cache-aware.

  • Adds cache read and creation rates across Databricks proprietary chat models.
  • Routes Databricks token costs through the shared generic calculator while preserving legacy endpoint aliases.
  • Adds pricing, cache-accounting, registry, and fallback-generalization coverage.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

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

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

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>
@codspeed

codspeed Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_databricks_claude_cache_pricing (effe427) with litellm_internal_staging (d447be1)1

Open in CodSpeed

Footnotes

  1. No successful run was found on litellm_internal_staging (37b659e) during the generation of this report, so d447be1 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Verified on a local proxy: cached request logs $0.034000 with cache read and write itemised, its no-cache twin $0.067500

Cached cost breakdown

@shivamrawat1

Copy link
Copy Markdown
Contributor

@greptile

@shivamrawat1

Copy link
Copy Markdown
Contributor

@BugBot

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>
@engmohamedsalah

Copy link
Copy Markdown

Small follow-up on the absorbed #38079 (claude-3-haiku/opus cache_creation_input_token_cost_above_1hr correction): thanks for folding it in and re-verifying against the provider docs. When convenient, could the landing commit carry a Co-authored-by: engmohamedsalah <engmohamedsalah@users.noreply.github.com> trailer for that hunk? Keeps the contribution attributable on my end — happy either way, and thanks again for the fast turnaround.

…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>
@mateo-berri

Copy link
Copy Markdown
Contributor

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

@jlan-nl

jlan-nl commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

@mateo-berri This PR also contained cache creation prices for the azure/ prefixed gpt-5.6 models, which we are in dire need of.

I created a new PR for those only:

#38187

OrangerXu added a commit to OrangerXu/litellm that referenced this pull request Oct 13, 2026
…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
OrangerXu added a commit to OrangerXu/litellm that referenced this pull request Oct 13, 2026
…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
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.

5 participants