Repository navigation
feat(gemini): add gemini-decision-1, the Decisions API model priced at $0.10 per 1M input tokens - #51215
Conversation
…t $0.10 per 1M input tokens
|
|
|
@BugBot run |
[Low impact] The catalog addition appears safe to merge. SummaryAdds
Reviews (2) · Last reviewed commit: "fix(cost-map): give gemini-decision-1 it..." · Reviewed by Greptile |
Merging this PR will not alter performance1 warning
Comparing |
|
Devin is currently unreachable - the session may have died. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ce-sync-gemini Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # litellm/model_prices_and_context_window_backup.json # model_prices_and_context_window.json
…ini' into litellm-providers/price-sync-gemini
|
Devin is currently unreachable - the session may have died. |
…get_model_info_gemini passes
|
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 d5983d5. Configure here.
TLDR
Problem this solves:
gemini-decision-1, a Decisions API model, and the Gemini list API now returns itgemini/gemini-decision-1row, so Decisions API spend on it could not be trackedHow it solves it:
gemini/gemini-decision-1with the page price, a zero output price and the model page's limits and capability flagsmodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.jsonRows added
Kind page for every field.
prices geminireports no structured price API for this provider, so every value comes from the pages below, fetched raw with a cache buster on 2026-11-11 (ai.google.dev now redirects to aistudio.google.com/docs). The list API row forgemini-decision-1("Gemini Decision 1", contextWindow 262144, maxOutput 1) confirms the id and the input limitinput_cost_per_token1e-07output_cost_per_token0.0modedecisionsmax_input_tokens262144max_output_tokensis written, matching the catalog's other decision rowssupported_endpoints["/v1/decisions"]supported_modalitiessupports_vision,supports_audio_input,supports_video_input,supports_pdf_inputtruesupports_audio_output,supports_function_calling,supports_parallel_function_calling,supports_tool_choice,supports_prompt_caching,supports_reasoning,supports_response_schema,supports_web_search,supports_url_context,supports_computer_usefalseNo batch, flex or priority price fields: the pricing page has only a Standard tab for this model and the model page marks Batch API, Flex inference and Priority inference not supported.
rpm1500 andtpm1000000 are the Tier 1 limits from the "Gemini Decision rate limits" table at https://ai.google.dev/gemini-api/docs/rate-limits (Free 200 / 50,000, Tier 1 1,500 / 1,000,000, Tier 2 5,000 / 4,000,000, Tier 3 15,000 / 10,000,000). The catalog has no tier field, andtests/unit/test_utils.py::test_get_model_info_geminirequires both on everygemini/row, so the first paid tier goes on the rowEvery other Standard, Batch, Flex and Priority price on the pricing page matches the catalog rows for the gemini provider (40 sections compared). Contributor tier prices stay out per ruling
gemini-contributor-tier-prices-leave-out, the per-image Nano Banana tier prices stay out pergemini-nano-banana-pro-tier-image-prices-leave-out, and the list API ids without a catalog row (gemini-decision-eap, the carbon, hydrogen, mcdi and file-processing EAP ids, keen, nimble and swift-chatter) stay out per their leave_out rulingsDelisted by the provider
No deprecation date is published for these ids, so their rows are kept unchanged per ruling
gemini-delisted-no-date-keep: gemini-exp-1206, gemini/gemini-exp-1114, gemini/gemini-gemma-2-27b-it, gemini/gemini-gemma-2-9b-it, gemini/gemini-live-2.5-flash-preview-native-audio-09-2025, gemini/gemma-3-27b-it, gemini/imagen-3.0-fast-generate-001, gemini/imagen-3.0-generate-001, gemini/learnlm-1.5-pro-experimental, gemini/lyria-3.5-clip-preview, gemini/lyria-3.5-pro-preview, gemini/veo-3.1-fast-generate-001, gemini/veo-3.1-generate-001. gemini/veo-3.1-fast-generate-preview, gemini/veo-3.1-generate-preview and gemini/veo-3.1-lite-generate-preview already carry deprecation_date 2026-10-22 from the deprecations pageRolling registry PR
This is the single open registry PR. On 2026-11-11 it was brought up to date with
main, and the Gemini Decision row was checked again against the raw pricing page HTML and the Gemini list API (models/gemini-decision-1, inputTokenLimit 262144, methodcreateDecision). No other value was verifiable enough to change this run, so the diff is still that one row in both JSON copies.Checked and not changed (2026-11-11 audit)
OpenAI. The models API ids without a row are all fine-tune checkpoints from the test org.
gpt-6.1-terra-proshows up on OpenRouter but not in the OpenAI models API or on https://developers.openai.com/api/docs/pricing, so it stays out.Anthropic. The models API has no id without a row. Fable 5.2, Mythos 5.2 and Fable 5.1 base, cache write (5m and 1h), cache read and batch prices match https://platform.claude.com/docs/en/about-claude/pricing.
Gemini. The list API ids without a row (gemini-decision-eap, the hydrogen, argon and 3.8 file-processing EAP ids, the antigravity previews, aqa, keen, nimble and swift-chatter) have no price on https://ai.google.dev/gemini-api/docs/pricing.
Groq.
allam-2-7bis in the models API but has no per-token price on https://groq.com/pricing.Fireworks.
autoandfirerouter/autoare routers billed at the routed model's price, andaccounts/fireworks/models/qwen3p8-2p4t-a95bis not priced in the Fireworks serverless models API, and its model page was not confirmed this run, so it stays out until a published price is found. The pinnedsupports_visionon the two minimax-m3 rows inci_cd/cost_map_pins.jsondisagrees with the Fireworks API, which lists them text-only, and the pin is kept.xAI. Prices from the xAI models API for grok-4.20 (reasoning, non-reasoning, multi-agent), grok-4.3 through grok-4.7 and grok-build-0.1 match the rows.
Mistral. The models API reports 256000 context for codestral-2508, codestral-latest, mistral-code-latest and mistral-code-fim-latest (rows say 128000), 131071 for mistral-moderation-2603 (row says 131072), and vision or function calling on the OCR and Voxtral TTS models. None of these is confirmed on https://docs.mistral.ai/getting-started/models, and API-only evidence is not enough to change a row, so they are left alone.
Together. Many models API ids lack a row, but https://www.together.ai/pricing (raw HTML) has no price for them, so none were added.
OpenRouter. The catalog keeps no openrouter/ rows for current models because OpenRouter returns cost per request. None of the 453 non-free ids was added from API data.
Cohere.
command-a-reasoning-08-2025,command-a-translate-08-2025andcommand-a-vision-07-2025are on https://docs.cohere.com/docs/models with context limits, but https://cohere.com/pricing (raw HTML and r.jina.ai) has no per-token price for them, so they stay out.Voyage. Every current model on https://docs.voyageai.com/docs/pricing has a row. Only the retired voyage-01, voyage-02 and voyage-lite-01-instruct do not.
Azure AI. PR #51025 (
azure_ai/deepseek-v4.1-flash-1017) stays open and is not absorbed. Its price comes from the Azure retail API, its 128K output limit conflicts with the 384,000 output tokens on https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-sold-directly-by-azure, and that page lists only DeepSeek-V4.1-Flash with no 1017 id. PR #51085 (Soniox v6) carries provider code, so it is left alone.DeepSeek. The models API has no id without a row.
Bedrock, Vertex, Perplexity and Nebius were not audited in depth this run.
Checks
python3 ci_cd/check_files_match.pypasses.tests/unit/test_model_prices_and_context_window.pyandtests/unit/test_cost_map_guard.pypass.tests/unit/test_utils.py::test_get_model_info_geminipasses with the rpm and tpm fields (it failed on the first push without them).tests/unit/test_model_cost_aliases.pyhas 5 failures inTestAliasWarnings::test_an_alias_the_document_cannot_serve_is_logged, and the same 5 fail withmain's JSON files, so they are not from this row.tests/unit/test_model_prices_schema.pydoes not exist onmain.Pre-Submission checklist
Link to Devin session: https://app.devin.ai/sessions/6011249a73f348319349d07e87cdaff0
Open in Devin Desktop: https://app.devin.ai/desktop/session/6011249a73f348319349d07e87cdaff0?variant=devin
Note
Low Risk
Data-only catalog update with no runtime or auth logic changes.
Overview
Adds catalog support for Google's
gemini/gemini-decision-1Decisions API model in bothmodel_prices_and_context_window.jsonand itslitellm/..._backup.jsonmirror so LiteLLM can price and attribute usage.The new row uses
mode:decisions, $0.10 per 1M input tokens (1e-07), zero output cost, a 262,144 input token limit,/v1/decisions, multimodal input flags (text, image, audio, video, PDF), and 1500 rpm / 1M tpm tier-1 rate limits—matching Google's published pricing and capability docs.Reviewed by Cursor Bugbot for commit d5983d5. Bugbot is set up for automated code reviews on this repo. Configure here.