Skip to content

fix(model_prices): gemini deep research input limits, vertex flash retirement dates, azure data zone gpt-6.1-sol pricing - #44633

Merged
kerry-berri merged 4 commits into
mainfrom
litellm_registry_audit_2026_10_05
Oct 6, 2026
Merged

kerry-berri merged 4 commits into
mainfrom
litellm_registry_audit_2026_10_05

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Two Gemini Deep Research preview entries understate their input window (131,072 vs Google's documented 1,048,576)
  • Vertex gemini-3.6-flash and gemini-3.7-flash have announced retirement dates but no deprecation_date in the registry
  • Azure gpt-6.1-sol has no US, EU or APAC Data Zone rows, so Data Zone deployments fall back to Global pricing and undercharge by 10% to 20%

How it solves it:

User Flow

Before:

  1. litellm.get_model_info("gemini/deep-research-preview-04-2026") reports max_input_tokens 131072, so pre-call checks reject prompts the model accepts
  2. litellm.get_model_info("vertex_ai/gemini-3.6-flash") has no deprecation_date
  3. A call through azure/eu/gpt-6.1-sol is costed at Global rates ($2.00 input, $10.00 output per 1M)

After:

  1. The Deep Research lookup reports 1048576, the same for gemini/deep-research-max-preview-04-2026
  2. vertex_ai/gemini-3.6-flash reports deprecation_date 2026-11-19, vertex_ai/gemini-3.7-flash reports 2027-01-28
  3. azure/eu/gpt-6.1-sol is costed at $2.40 input and $12.00 output per 1M, 1.2x Global

Changes by provider

Gemini (Google AI Studio)

gemini/deep-research-preview-04-2026 max_input_tokens 131072 to 1048576, source https://ai.google.dev/gemini-api/docs/models/deep-research-preview-04-2026 (Token limits row: "Input context window 1,048,576, Output token limit 65,536")

gemini/deep-research-max-preview-04-2026 max_input_tokens 131072 to 1048576, source https://ai.google.dev/gemini-api/docs/models/deep-research-max-preview-04-2026 (same Token limits row)

Vertex AI (absorbed from #44828)

gemini-3.6-flash and vertex_ai/gemini-3.6-flash deprecation_date 2026-11-19, gemini-3.7-flash and vertex_ai/gemini-3.7-flash deprecation_date 2027-01-28. Source https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions, raw HTML rows ['gemini-3.6-flash', 'July 21, 2026', 'November 19, 2026', 'gemini-3.8-flash'] and ['gemini-3.7-flash', 'August 13, 2026', 'January 28, 2027', 'gemini-3.8-flash']. The gemini/ (AI Studio) keys are not changed, that page covers Vertex only

Azure (absorbed from #44816)

New rows azure/us/gpt-6.1-sol, azure/eu/gpt-6.1-sol, azure/apac/gpt-6.1-sol, per 1M tokens:

Row Input Cached input Cache write Output Input >272k Cached >272k Cache write >272k Output >272k
us 2.20 0.11 2.75 11.00 4.40 0.22 5.50 16.50
eu, apac 2.40 0.12 3.00 12.00 4.80 0.24 6.00 18.00

Source: Microsoft's GPT-6.1 Sol launch post https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-gpt-6-1-sol-in-microsoft-foundry-advanced-intelligence-optimized-for/4560811, raw HTML pricing table ("the US Data Zone is priced at a 10% premium to Global, and the EU and APAC Data Zones are priced at a 20% premium to Global"). https://azure.microsoft.com/en-us/pricing/details/azure-openai/ lists the Data Zone rows but renders the prices client-side ($- in raw HTML), so the launch post is the readable official source. Other fields (limits, capabilities, deprecation_date 2028-03-11, web search price) copy the existing azure/gpt-6.1-sol row. Tests added in tests/unit/test_model_prices_schema.py assert each Data Zone row costs exactly 1.1x or 1.2x Global

Checked and deliberately not changed

Azure: https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule (updated 2026-09-23) lists gpt-4.1-nano 2025-04-14 retiring 2026-10-14, while the registry carries 2027-04-14 from the Models API rows restored in #44072. This value has flipped six times since August, so it is left alone for a maintainer call. The same page has two conflicting gpt-realtime-mini 2025-10-06 rows (2027-04-06 and 2026-09-21) under the same heading, so azure/gpt-realtime-mini-2025-10-06 is unchanged

Gemini: ListModels limits disagree with the model pages for several image models (gemini-3-pro-image, gemini-3.1-flash-image, gemini-2.5-flash-image). The docs pages match the current registry, so nothing changed. antigravity-preview-09-2026 and gemini-robotics-er-1.6-preview have model pages but no per-token rows on https://ai.google.dev/gemini-api/docs/pricing, so they were not added. gemini-3-pro-image-preview and gemini-3.1-flash-image-preview have no model page (404), so their supports_reasoning flags were not touched

Mistral: the models API reports 256000 context for codestral-2508, but https://docs.mistral.ai/models/codestral-25-08 shows 128k, matching the registry

Together AI: the models API lists different prices for Kimi K3, Qwen3.8 Flash and Qwen3.7-Max than https://www.together.ai/pricing. The pricing page matches the registry

DeepSeek: https://api-docs.deepseek.com/quick_start/pricing matches the registry (peak rates)

Fireworks: accounts/fireworks/models/qwen3p8-2p4t-a95b is on-demand only on https://fireworks.ai/models/fireworks/qwen3p8-2p4t-a95b with no per-token price, so not added. glm-5p3-flash, inkling and qwen3p8-max serverless prices from https://api.fireworks.ai/v1/serverless/models match the registry

Cohere: north-small-translate-1-0, north-mini-code-1-0, the tiny-aya-* models, c4ai-aya-vision-32b and cohere-transcribe-03-2026 are on https://docs.cohere.com/docs/models but have no published per-token price, so not added

Groq: allam-2-7b is returned by the models API but is not on https://console.groq.com/docs/models or https://groq.com/pricing, so not added

Bedrock: newer inference-profile IDs (for example luma.ray-v2:0, jp.amazon.nova-2-lite-v1:0, eu.cohere.embed-v4:0) could not be matched to a per-region price on https://aws.amazon.com/bedrock/pricing/, so not added

OpenAI, Anthropic, xAI, OpenRouter: newest models from the provider model APIs are already in the registry

Capability pins: no capability flag is lowered in this PR

Other open registry PRs reviewed

Absorbed and closed as superseded: #44828 (all four Vertex dates), #44816 (all three Azure rows and its tests, co-authored by its author)

#43879 (bare kimi-k2.5): dropped. https://platform.kimi.ai/docs/pricing/chat lists kimi-k2.5 as Deprecated, and the PR's 8192 output limit contradicts the existing moonshot/kimi-k2.5 record

#43753 (bare deepseek-v3): dropped. The current DeepSeek pricing page no longer lists DeepSeek-V3, so its $0.27 / $1.10 rates and 65,536 window cannot be verified

#43859 (Tinker) and #44167 (ScaleDown): left open. Both add a litellm_provider that is not registered in LiteLLM, so they need provider code, not just registry data

Screenshots / Proof of Fix

Before (origin/main 10444df)

gemini/deep-research-preview-04-2026 max_input_tokens is 131072, gemini-3.6-flash and vertex_ai/gemini-3.7-flash have no deprecation_date, and azure/us/gpt-6.1-sol is absent. The new tests in tests/unit/test_model_prices_schema.py fail against these values

After (7c88e55)

  1. python3 ci_cd/check_files_match.py passes
  2. LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_schema.py tests/unit/test_model_cost_aliases.py gives 86 passed
  3. uv run --no-sync python ci_cd/generate_model_prices_schema.py produces no schema diff
  4. ruff check and ruff format --check pass on the test file

Type

🐛 Bug Fix

Link to Devin session: https://app.devin.ai/sessions/4392b60bac8042c0b0a14b7c6d435612
Open in Devin Desktop: https://app.devin.ai/desktop/session/4392b60bac8042c0b0a14b7c6d435612?variant=devin

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • 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 Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium risk] Updates model capability limits for an AI provider.

The metadata change appears correct, but the repository’s regression-test requirement should be met before merging

Findings

  1. P2 Missing regression test ▶

Summary

The PR raises the registered input limits for two Gemini Deep Research preview models from 131,072 to 1,048,576 tokens in both registry copies. The corrected limits lack a regression test

Reviews (1) · Last reviewed commit: "fix(model_prices): correct Gemini Deep R..."

"input_cost_per_token_batches": 1e-06,
"litellm_provider": "gemini",
"max_input_tokens": 131072,
"max_input_tokens": 1048576,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Missing regression test Both Deep Research limits are corrected in the registry and backup, but no test catches their old values. The repository requires regression coverage for bug fixes. Please add a focused test before merging

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added in 7c88e55: test_gemini_deep_research_previews_accept_the_documented_input_window pins 1,048,576 input and 65,536 output for both Deep Research entries, and fails on the old 131,072 value

@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_registry_audit_2026_10_05 (7c88e55) with main (d4619c4)1

Open in CodSpeed

Footnotes

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

devin-ai-integration Bot and others added 3 commits October 6, 2026 13:10
…nd Azure data zone gpt-6.1-sol pricing

Co-authored-by: ceng <christianpetersen98@gmail.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…flash retirement dates

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title fix(model_prices): correct Gemini Deep Research preview input limits fix(model_prices): Gemini Deep Research input limits, Vertex flash retirement dates, Azure data zone gpt-6.1-sol pricing Oct 6, 2026
@devin-ai-integration devin-ai-integration Bot changed the title fix(model_prices): Gemini Deep Research input limits, Vertex flash retirement dates, Azure data zone gpt-6.1-sol pricing fix(model_prices): gemini deep research input limits, vertex flash retirement dates, azure data zone gpt-6.1-sol pricing Oct 6, 2026
@kerry-berri
kerry-berri merged commit 126e79c into main Oct 6, 2026
98 of 101 checks passed
@kerry-berri
kerry-berri deleted the litellm_registry_audit_2026_10_05 branch October 6, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants