Repository navigation
feat(vertex-ai): add gemini-4-argon - #46228
Conversation
|
|
Merging this PR will not alter performance
|
PR overviewAll previously flagged issues have been addressed. No open security concerns remain on this pull request. Security reviewNo open security issues remain on this pull request. Fixed/addressed: 1 · PR risk: 0/10 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Price-Sync: litellm-providers
5fa94ec to
4c05bfb
Compare
Summary
Adds
vertex_ai/gemini-4-argonand the baregemini-4-argon(vertex_ai-language-models), the same key pair and field set asvertex_ai/gemini-3.8-flashandgemini-3.8-flash. The Vertex model list API now returnspublishers/google/models/gemini-4-argon, mapped to the catalog keyvertex_ai/gemini-4-argonPrices are kind page, from https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing. Token limits and capability flags are kind page, from the model docs at https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/4-argon, except the three flags marked inherited below
Rows
vertex_ai/gemini-4-argonandgemini-4-argoninput_cost_per_token2e-06,cache_read_input_token_cost1e-07,output_cost_per_tokenandoutput_cost_per_reasoning_token1e-05 (kind page). Standard table: "Gemini 4 Argon* through November 30, 2026 | Input (text, image, video, audio) | Global | $2 | $0.1" and "Text output (response and reasoning) | Global | $10"input_cost_per_token_priority3.6e-06,cache_read_input_token_cost_priority1.8e-07,output_cost_per_token_priority1.8e-05 (kind page). Priority table: "Gemini 4 Argon* through November 30, 2026 | Input (text, image, video, audio) | Global | $3.6 | $0.18" and "Text output (response and reasoning) | Global | $18"input_cost_per_token_batchesandinput_cost_per_token_flex1e-06,cache_read_input_token_cost_batchesandcache_read_input_token_cost_flex5e-08,output_cost_per_token_batchesandoutput_cost_per_token_flex5e-06 (kind page). Batch / Flex table: "Gemini 4 Argon* through November 30, 2026 | Input (text, image, video, audio) | Global | $1 | $0.05" and "Text output (response and reasoning) | Global | $5"input_cost_per_audio_token2e-06,input_cost_per_audio_token_priority3.6e-06,input_cost_per_audio_token_batches1e-06 (kind page), the same shape asvertex_ai/gemini-3-flash-preview. Audio shares the input row in all three tables, "Input (text, image, video, audio) | Global | $2", "$3.6" and "$1", so audio tokens are not billed at zeroregional_endpoint_uplift_multiplier1.1 onvertex_ai/gemini-4-argononly, like its sibling (kind page). Standard table: "Non-global | $2.2 | $0.11" and "Non-global | $11"These are the promo rates. The page says "* Promotional pricing provided through 50% credits back on net spend on select models within a given period" and lists "Gemini 4 Argon (Starting December 1, 2026) ... Global $4 $0.2 ... $20" (priority $7.2 / $0.36 / $36, batch $2 / $0.1 / $10). The rows carry the current promo price and switch on 2026-12-01, the convention ruling
vertex-gemini-flash-promo-switch-on-the-dayset for the Gemini flash rowssearch_context_cost_per_query0.014,web_search_billing_unitper_query,google_maps_grounding_cost_per_query0.014 (kind page). Grounding table: "Includes 5,000 Grounding Queries per month at no charge, aggregated across all Gemini 3 and Gemini 4 models. Grounding Queries exceeding those limits are billed at $14 per 1,000 Grounding Queries" and for Maps "Maps queries exceeding those limits are billed at $14 per 1,000 queries"max_input_tokens1048576,max_output_tokensandmax_tokens1048576 (kind page). Model docs: "Context window 1,048,576 Maximum output tokens 1,048,576". The docs add "A single synchronous request generates up to 65,536 thinking and output tokens" and the 1,048,576 output uses long decodes on the GenerateContent APIprompt_cache_min_tokens6144,supports_prompt_cachingtrue (kind page). Model docs: "4 Argon supports implicit caching only (6,144-token minimum)"supported_modalitiestext, image, audio, video,supported_output_modalitiestext,supports_vision,supports_audio_input,supports_video_inputtrue,supports_audio_outputfalse on the bare row (kind page). Model docs: "Text Input and output", "Image Input only", "Audio Input only", "Video Input only"supports_pdf_inputtrue (kind page). Model docs: "Supported MIME types: application/pdf , text/plain"supports_reasoningtrue,supports_system_messagestrue,supports_response_schematrue,supports_url_contexttrue,supports_function_callingtrue,supports_web_searchtrue (kind page). Model docs: "Thinking Supported", "System instructions Supported", "Structured output Supported", "URL context Supported", "Function calling Supported", "Grounding Google Search, Google Maps, ... Supported"supports_minimal_reasoning_effortfalse (kind page). Model docs: "Setting thinking_budget or thinking_level="MINIMAL" returns an HTTP 400 validation error"supported_endpointschat completions, completions and batch (kind page). Model docs: "Batch inference Supported", "Chat Completions API Supported"supports_parallel_function_calling,supports_tool_choiceandsupports_native_streamingtrue, kind inherited,inherited_from: vertex_ai/gemini-3.8-flash(the bare row fromgemini-3.8-flash). The docs do not state these, though they mention "non-streaming direct HTTP requests" next to the streaming output limitNo
deprecation_date, the docs list "Launch stage: GA Release date: October 13, 2026".gemini-4-argon-cyber-permissiveis allowlist only and not in the list API, so it gets no row herePricing page
The Vertex pricing page change is the new Gemini 4 Argon section and the grounding text now naming Gemini 4. The standard, priority and batch input rows for Gemini 3.1 Pro Preview, 3.8 Flash Cyber, 3.8, 3.7 and 3.6 Flash (promo per ruling
vertex-gemini-flash-promo-switch-on-the-day), 3 Flash Preview, 3.5 Flash, 3.5 Flash-Lite and 3.1 Flash-Lite match the catalog. The google-models page carries no prices, it adds Gemini 4 Argon to the model listDelisted by the provider
Kept with current prices per ruling
vertex-ai-delisted-no-date-keep: deep-research-pro-preview-12-2025, gemini-2.5-flash-lite-preview-09-2025, gemini-2.5-flash-preview-09-2025, gemini-2.5-pro-preview-tts, gemini-3-pro-image-preview, gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview-customtools, gemini-3.8-flash-cyber, gemini-embedding-2-preview, gemini-flash-experimental, gemini-live-2.5-flash-preview-native-audio-09-2025, gemini-robotics-er-1.5-preview, medlm-large, medlm-medium, text-embedding-preview-0409, text-unicorn, vertex_ai/chirp, vertex_ai/claude-3-sonnet, vertex_ai/codestral-2, vertex_ai/codestral-2501, vertex_ai/mistral-large-2411, vertex_ai/mistral-medium-3, vertex_ai/mistral-ocr-2505, vertex_ai/mistral-small-2503, vertex_ai/veo-3.1-fast-generate-preview, vertex_ai/veo-3.1-generate-previewNo published date, for a human to decide: gemini-robotics-er-2-preview, vertex_ai/gemini-omni-1.1-flash, vertex_ai/gemma-4-26b-a4b-it
Coverage gaps, not delistings (audio, rerank and search rows the publisher model list does not carry, and TTS rows keyed on Gemini API ids per ruling
vertex-ai-gemini-3-8-tts-add-one-time): vertex_ai/chirp_2, vertex_ai/chirp_3, vertex_ai/gemini-2.5-flash-preview-tts, vertex_ai/gemini-3.5-transcribe, vertex_ai/gemini-3.5-transcribe-live, vertex_ai/gemini-3.8-flash-tts, vertex_ai/gemini-3.8-flash-lite-tts, vertex_ai/search_api, vertex_ai/semantic-ranker-default, vertex_ai/semantic-ranker-default-002, vertex_ai/semantic-ranker-default-003, vertex_ai/semantic-ranker-default-004, vertex_ai/semantic-ranker-fast, vertex_ai/semantic-ranker-fast-004The rest already carry a
deprecation_date: text-embedding-004, vertex_ai/claude-3-5-haiku, vertex_ai/claude-3-5-sonnet, vertex_ai/claude-3-haiku, vertex_ai/claude-3-opus, vertex_ai/claude-sonnet-4-5, vertex_ai/gemini-2.0-flash, vertex_ai/gemini-2.0-flash-lite, vertex_ai/gemini-2.5-flash-native-audio, vertex_ai/jamba-1.5, vertex_ai/jamba-1.5-large, vertex_ai/jamba-1.5-miniNote
Low Risk
Data-only catalog additions for billing and routing metadata; no runtime logic changes in this diff.
Overview
Adds Gemini 4 Argon to LiteLLM’s model catalog in
model_prices_and_context_window.jsonand its backup, using the same dual-key pattern as other Vertex Gemini models:vertex_ai/gemini-4-argon(litellm_provider:vertex_ai) and baregemini-4-argon(vertex_ai-language-models).Each row defines promo-era token pricing (standard, priority, batch/flex, cache, audio, reasoning output), grounding/search costs, 1M context/output limits, modality and feature flags (vision, tools, reasoning, web search, PDF, prompt caching with 6144-token minimum), and supported OpenAI-style endpoints. The Vertex-prefixed entry also includes
regional_endpoint_uplift_multiplier1.1; the bare row setssupports_audio_outputto false and omits the regional uplift field.Reviewed by Cursor Bugbot for commit 4c05bfb. Bugbot is set up for automated code reviews on this repo. Configure here.