fix(registry): veo 3.1 pricing tiers + roll up open registry PRs (glm-5.2, Qwen3.8-Flash, gemma-4-31b, scribe_v2, fireworks/databricks deepseek v4) + deprecation dates - #38990
Conversation
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:
|
|
|
|
PR #38990 has no labels (no |
Greptile SummaryAdds and updates provider registry metadata for Veo, Databricks, Fireworks, Z.AI, Together AI, Cerebras, and ElevenLabs, along with provider-announced deprecation dates.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Updates the primary model registry with new models, corrected pricing tiers, capability metadata, and deprecation dates. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the primary registry changes and remains synchronized with it. |
| tests/test_litellm/llms/databricks/test_databricks_cost_calculator.py | Extends published-DBU pricing coverage to the two new Databricks DeepSeek models. |
| tests/test_litellm/test_fireworks_serverless_model_costs.py | Adds pinned pricing and twin-entry consistency checks for Fireworks DeepSeek V4. |
| tests/test_litellm/test_video_generation.py | Adds local cost-calculation coverage for Gemini and Vertex AI Veo 3.1 resolution tiers. |
Reviews (5): Last reviewed commit: "fix(registry): add vertex veo 3.1 resolu..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…evin_ai_1788201394-veo31-pricing-tiers
…a-4-31b, elevenlabs/scribe_v2 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Thanks for rolling #38675 into this registry PR. I verified both registry files on the current head. The That field is absent from both the current base and this PR's diff. Could you include it before merging? The deprecation is tracked in #37184. |
…evin_ai_1788201394-veo31-pricing-tiers
…DeepSeek V4 entries, provider deprecation dates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
bugbot run |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Added |
|
bugbot run |
…put rate per repo convention Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 06d4521. Configure here.
TLDR
Problem this solves:
How it solves it:
accounts/twin at the published pricesourceUser Flow
Before: a team routing Fireworks DeepSeek V4 Flash through the gateway is billed double what the gateway advertises, and Veo 3.1 spend ignores video resolution
fireworks_ai/deepseek-v4-flash-0731at $0.14/1M input, $0.28/1M outputx-litellm-response-costheader comes back computed at $0.22/1M input and $0.66/1M output, about 2x the advertised rates, so their spend forecasts built on model info are off by halfvertex_ai/veo-3.1-generate-001; https://litellm-domain/ui/?page=logs shows $3.20 spend while Google bills the project $4.80, and an 8 second 1080p fast video logs $1.20 while Google bills $0.96After: advertised, billed, and provider prices all agree, and Veo 3.1 spend follows Google's per-resolution rates
fireworks_ai/deepseek-v4-flash-0731at $0.22/1M input, $0.66/1M output, matching the Fireworks serverless pricing pagex-litellm-response-costheader now matches what model info advertisesChanges by provider
Google (Veo 3.1, original PR scope)
gemini/veo-3.1-*andvertex_ai/veo-3.1-*(preview and 001): per-second video pricing split by resolution tier. Standard: $0.40/s base (720p/1080p) +output_cost_per_second_4k$0.60. Fast: $0.10/s base +output_cost_per_second_1080p$0.12 +output_cost_per_second_4k$0.30. The vertex_ai entries carry the same tier keys as the gemini ones, which also enables resolution inference on vertex video responses. Sources: https://ai.google.dev/gemini-api/docs/pricing, https://cloud.google.com/vertex-ai/generative-ai/pricingcompletion_costfor all eight gemini/vertex veo 3.1 entries at the published tier rates intests/test_litellm/test_video_generation.pyZ.AI (absorbed from #38866)
zai/glm-5.2: $1.40/1M input, $0.26/1M cached input, $4.40/1M output, 1M context / 128K output. Source: https://docs.z.ai/guides/overview/pricingTogether AI (absorbed from #38946)
together_ai/Qwen/Qwen3.8-Flash: $0.15/1M input, $0.47/1M output, 1M context. Source: https://docs.together.ai/docs/serverless-modelsCerebras (absorbed from #38675)
cerebras/gemma-4-31b: $0.99/1M input, $1.49/1M output, 131072 context / 40960 output, tool + vision + reasoning flags per the official model endpoint. Source: https://api.cerebras.ai/public/v1/models/gemma-4-31bCerebras deprecation (absorbed from #38675, requested in #37184)
cerebras/zai-glm-4.7:deprecation_date2026-08-17 per the official deprecations page ("2026-08-17 Deprecated zai-glm-4.7", raw-HTML verified). Source: https://inference-docs.cerebras.ai/support/deprecationElevenLabs (absorbed from #38860)
elevenlabs/scribe_v2: $0.22/hour = $6.11e-5/second batch transcription. Scribe v2 Realtime ($0.39/hour) is a separate tier, not covered. Source: https://elevenlabs.io/pricing/apiFireworks AI (absorbed from #38797)
fireworks_ai/deepseek-v4-flash-0731: input $0.22/1M, output $0.66/1M, cache read $0.007/1M, brings the bare key in line with the already-correctaccounts/fireworks/models/twin. Source: https://docs.fireworks.ai/serverless/pricingtests/test_litellm/test_fireworks_serverless_model_costs.pyDatabricks (absorbed from #38933, field-level)
databricks/databricks-deepseek-v4-flash-0731(2.0 DBU/M in, 4.0 DBU/M out, 0.4 DBU/M cache read) anddatabricks/databricks-deepseek-v4-pro-0813(18.857 / 56.571 / 1.886 DBU/M), converted at $0.070/DBU. Source: https://www.databricks.com/product/pricing/foundation-model-servingcache_creation_input_token_costis set to the input rate (no cache-write premium), matching the existing convention for databricks gpt/gemini/kimi/glm entries and the databricks cost-calculator testsDeprecation dates (provider-announced, raw-HTML verified)
azure_ai/claude-sonnet-52027-06-30,azure_ai/claude-opus-52027-07-08,azure_ai/claude-opus-4-82027-09-01,azure_ai/claude-fable-52027-12-05. Source: https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/model-lifecycle-retirementamazon.nova-sonic-v1:02026-09-14. Source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.htmlgemini-live-2.5-flash-native-audio2026-12-13. Source: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versionsAlready covered by the base branch (source PRs closed as superseded)
Dropped as unverifiable (left open, not absorbed)
supports_vision: false): Novita's official models API listsimageininput_modalities, contradicting the PRsupports_web_searchon 32 entries): Anthropic's web-search doc does not enumerate supported models in its static contentLeft alone (code/behavior or too large to re-verify field-by-field)
#38976, #38789, #38516, #38384, #38165, #37972, #37433, #38881, #36416, #36422, #36279, #36274, #35720, #33185, #33930, #31907, #31884, #31018, #29204, #32197, #26016, #32059
Relevant issues
Deprecation dates support #26900 (proactive model deprecation alerts)
Linear ticket
Resolves LIT-6408
Resolves LIT-6565
Pre-Submission checklist
LITELLM_LOCAL_MODEL_COST_MAP=True uv run pytest -q tests/test_litellm/test_model_prices_schema.py tests/test_litellm/test_model_cost_aliases.py tests/test_litellm/test_fireworks_serverless_model_costs.py tests/test_litellm/test_video_generation.pypasses locallypython3 ci_cd/check_files_match.pypasses (root and backup JSON in sync)Screenshots / Proof of Fix
Live A/B on two local proxies, 2 uvicorn workers each,
LITELLM_LOCAL_MODEL_COST_MAP=True, same config:fireworks_ai/deepseek-v4-flash-0731(real Fireworks key),vertex_ai/veo-3.1-generate-001,vertex_ai/veo-3.1-fast-generate-001,gemini/veo-3.1-fast-generate-preview. Before leg on port 51185 at the merge base, after leg on port 20034 at the tip. The chat completion is a real paid Fireworks call.Before (ec3f818)
Fireworks DeepSeek V4 Flash: advertised vs billed price
curl http://127.0.0.1:51185/v1/model/info -H "Authorization: Bearer $KEY"showsinput_cost_per_token 1.4e-07, output_cost_per_token 2.8e-07, cache_read 2.8e-08curl -D - http://127.0.0.1:51185/v1/chat/completions -d '{"model":"deepseek-flash","messages":[...]}'returns usage 18 prompt / 16 completion (0 cached) and headerx-litellm-response-cost: 1.452e-05accounts/twin's rates, roughly 2x the 7.0e-06 the advertised rates predictVeo 3.1 resolution tiers on /v1/model/info
curl /v1/model/info:veo-3.1-fast(vertex and gemini) showsoutput_cost_per_second 0.15and nooutput_cost_per_second_1080p/output_cost_per_second_4kkeys;veo-3.1-generate-001shows flat0.4and no4kkeyAfter (06d4521)
Fireworks DeepSeek V4 Flash: advertised vs billed price
curl http://127.0.0.1:20034/v1/model/info -H "Authorization: Bearer $KEY"showsinput_cost_per_token 2.2e-07, output_cost_per_token 6.6e-07, cache_read 7e-09, matching https://docs.fireworks.ai/serverless/pricing ($0.22 / $0.007 cached / $0.66 per 1M)curl /v1/chat/completionsreturns usage 17 prompt / 16 completion (0 cached) and headerx-litellm-response-cost: 1.43e-05Veo 3.1 resolution tiers on /v1/model/info
curl /v1/model/info:veo-3.1-fast(vertex and gemini) showsoutput_cost_per_second 0.1, output_cost_per_second_1080p 0.12, output_cost_per_second_4k 0.3;veo-3.1-generate-001shows0.4base plusoutput_cost_per_second_4k 0.6, matching https://cloud.google.com/vertex-ai/generative-ai/pricingLITELLM_LOCAL_MODEL_COST_MAP=True uv run pytest -q tests/test_litellm/test_video_generation.pypasses, pinning 8s costs at $3.20 (standard 720p/1080p), $4.80 (standard 4k), $0.80 (fast 720p), $0.96 (fast 1080p), $2.40 (fast 4k) for all eight gemini/vertex veo 3.1 entriesType
🆕 New Feature
🐛 Bug Fix
Caveats (if any)
Low
accounts/twin's rate); dashboards built on model info shift, billed chat spend does notelevenlabs/scribe_v2per-second rate rounds $0.22/hr to 6.11e-05 (exact 6.1111e-05, 0.18% under), repo decimal conventionFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/a6934bd774524c00a458d340f440e9ac
Open in Devin Desktop: https://app.devin.ai/desktop/session/a6934bd774524c00a458d340f440e9ac?variant=devin
Note
Medium Risk
Registry-only, but it changes reported costs for Veo 3.1, Fireworks DeepSeek V4 Flash, and newly added models—downstream spend dashboards and alerts will shift without code deploys beyond the JSON sync.
Overview
Updates the shipped model cost registry (
model_prices_and_context_window.jsonand backup) so billing and model metadata match current provider pricing and lifecycles.Veo 3.1 (Gemini + Vertex) fast variants drop the default per-second rate (e.g. $0.15 → $0.10) and gain 1080p / 4k tier fields; standard variants add 4k tiers. Pricing
sourceURLs move to the official pricing docs. A new test assertscompletion_costforcreate_videomatches those tier rates.New registry entries: Databricks DeepSeek V4 Flash/Pro (DBU-derived token costs),
zai/glm-5.2,together_ai/Qwen/Qwen3.8-Flash,cerebras/gemma-4-31b, andelevenlabs/scribe_v2(audio transcription).Price corrections:
fireworks_ai/deepseek-v4-flash-0731input/output/cache-read rates are raised to match the published serverless page and the account-prefixed twin; tests pin twins and cross-check account vs bare keys.Deprecation metadata:
deprecation_dateis set on Bedrockamazon.nova-sonic-v1:0, several Azure AI Claude SKUs,cerebras/zai-glm-4.7, andgemini-live-2.5-flash-native-audio.Databricks cost-calculator tests include the two new DeepSeek models in the published DBU table.
Reviewed by Cursor Bugbot for commit 06d4521. Bugbot is set up for automated code reviews on this repo. Configure here.