Skip to content

feat(gemini): add gemini-decision-1, the Decisions API model priced at $0.10 per 1M input tokens - #51215

Merged
kerry-berri merged 5 commits into
mainfrom
litellm-providers/price-sync-gemini
Nov 12, 2026
Merged

kerry-berri merged 5 commits into
mainfrom
litellm-providers/price-sync-gemini

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Google published gemini-decision-1, a Decisions API model, and the Gemini list API now returns it
  • The catalog had no gemini/gemini-decision-1 row, so Decisions API spend on it could not be tracked

How it solves it:

  • Adds gemini/gemini-decision-1 with the page price, a zero output price and the model page's limits and capability flags
  • Same row in model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json

Rows added

Kind page for every field. prices gemini reports 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 for gemini-decision-1 ("Gemini Decision 1", contextWindow 262144, maxOutput 1) confirms the id and the input limit

Field Value Evidence
input_cost_per_token 1e-07 https://ai.google.dev/gemini-api/docs/pricing section "Gemini Decision", Standard tab, Input price (text, image, video, audio, PDF), Paid Tier "$0.10" per 1M tokens
output_cost_per_token 0.0 Same section, Output price "Not applicable (0 output tokens)" and "Each question adds tokens for its own instructions, criteria, and formatting, and generates zero output tokens"
mode decisions New decision model row, same mode as the catalog's other Decisions API rows
max_input_tokens 262144 https://aistudio.google.com/docs/models/gemini-decision-1 "Input token limit 262,144"; the model page states "Output token limit 0 (up to 1,000 questions per request)" so no max_output_tokens is written, matching the catalog's other decision rows
supported_endpoints ["/v1/decisions"] Model page "Gemini Decision is a specialized multimodal model built for the Decisions API"; the pricing page states "Batch API isn't supported"
supported_modalities text, image, audio, video Model page Supported data types "Inputs Text, Image, Video, Audio, and PDF"
supports_vision, supports_audio_input, supports_video_input, supports_pdf_input true Same Supported data types cell
supports_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_use false Model page Capabilities grid marks Audio generation, Function calling, Caching, Thinking, Structured outputs, Search grounding, URL context and Computer use "not-supported"; pricing page Context caching price "Not available"

No 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. rpm 1500 and tpm 1000000 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, and tests/unit/test_utils.py::test_get_model_info_gemini requires both on every gemini/ row, so the first paid tier goes on the row

Every 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 per gemini-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 rulings

Delisted 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 page

Rolling 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, method createDecision). 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-pro shows 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-7b is in the models API but has no per-token price on https://groq.com/pricing.

Fireworks. auto and firerouter/auto are routers billed at the routed model's price, and accounts/fireworks/models/qwen3p8-2p4t-a95b is 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 pinned supports_vision on the two minimax-m3 rows in ci_cd/cost_map_pins.json disagrees 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-2025 and command-a-vision-07-2025 are 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.py passes. tests/unit/test_model_prices_and_context_window.py and tests/unit/test_cost_map_guard.py pass. tests/unit/test_utils.py::test_get_model_info_gemini passes with the rpm and tpm fields (it failed on the first push without them). tests/unit/test_model_cost_aliases.py has 5 failures in TestAliasWarnings::test_an_alias_the_document_cannot_serve_is_logged, and the same 5 fail with main's JSON files, so they are not from this row. tests/unit/test_model_prices_schema.py does not exist on main.

Pre-Submission checklist

  • Cost map only, no code change, no new tests needed

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-1 Decisions API model in both model_prices_and_context_window.json and its litellm/..._backup.json mirror 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.

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

@veria-ai

veria-ai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@kerry-berri
kerry-berri enabled auto-merge (squash) November 11, 2026 18:15
@kerry-berri

Copy link
Copy Markdown
Contributor

@BugBot run

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The catalog addition appears safe to merge.

Summary

Adds gemini/gemini-decision-1 to both catalog copies with input pricing of $0.10 per million tokens, zero output pricing, and its limits and capabilities.

  • Gemini Decision 1 has catalog details for Decisions API calls.

Reviews (2) · Last reviewed commit: "fix(cost-map): give gemini-decision-1 it..." · Reviewed by Greptile

@cursor cursor Bot left a comment •

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.

Stale Bugbot comment from a previous run.

@codspeed

codspeed Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 3 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 43 untouched benchmarks


Comparing litellm-providers/price-sync-gemini (d5983d5) with main (0bc1039)

Open in CodSpeed

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Devin is currently unreachable - the session may have died.

View session

@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor Author

Devin is currently unreachable - the session may have died.

View session

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@cursor cursor Bot left a comment

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.

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

@kerry-berri
kerry-berri merged commit e7fd0d6 into main Nov 12, 2026
152 of 157 checks passed
@kerry-berri
kerry-berri deleted the litellm-providers/price-sync-gemini branch November 12, 2026 02:12
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