Skip to content

feat(vertex-ai): add gemini-4-argon - #46228

Merged
klu-berri merged 1 commit into
mainfrom
litellm-providers/price-sync-vertex-ai
Oct 13, 2026
Merged

klu-berri merged 1 commit into
mainfrom
litellm-providers/price-sync-vertex-ai

Conversation

@berriai-litellm-provider-info-sync

@berriai-litellm-provider-info-sync berriai-litellm-provider-info-sync Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds vertex_ai/gemini-4-argon and the bare gemini-4-argon (vertex_ai-language-models), the same key pair and field set as vertex_ai/gemini-3.8-flash and gemini-3.8-flash. The Vertex model list API now returns publishers/google/models/gemini-4-argon, mapped to the catalog key vertex_ai/gemini-4-argon

Prices 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-argon and gemini-4-argon

input_cost_per_token 2e-06, cache_read_input_token_cost 1e-07, output_cost_per_token and output_cost_per_reasoning_token 1e-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_priority 3.6e-06, cache_read_input_token_cost_priority 1.8e-07, output_cost_per_token_priority 1.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_batches and input_cost_per_token_flex 1e-06, cache_read_input_token_cost_batches and cache_read_input_token_cost_flex 5e-08, output_cost_per_token_batches and output_cost_per_token_flex 5e-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_token 2e-06, input_cost_per_audio_token_priority 3.6e-06, input_cost_per_audio_token_batches 1e-06 (kind page), the same shape as vertex_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 zero

regional_endpoint_uplift_multiplier 1.1 on vertex_ai/gemini-4-argon only, 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-day set for the Gemini flash rows

search_context_cost_per_query 0.014, web_search_billing_unit per_query, google_maps_grounding_cost_per_query 0.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_tokens 1048576, max_output_tokens and max_tokens 1048576 (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 API

prompt_cache_min_tokens 6144, supports_prompt_caching true (kind page). Model docs: "4 Argon supports implicit caching only (6,144-token minimum)"

supported_modalities text, image, audio, video, supported_output_modalities text, supports_vision, supports_audio_input, supports_video_input true, supports_audio_output false on the bare row (kind page). Model docs: "Text Input and output", "Image Input only", "Audio Input only", "Video Input only"

supports_pdf_input true (kind page). Model docs: "Supported MIME types: application/pdf , text/plain"

supports_reasoning true, supports_system_messages true, supports_response_schema true, supports_url_context true, supports_function_calling true, supports_web_search true (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_effort false (kind page). Model docs: "Setting thinking_budget or thinking_level="MINIMAL" returns an HTTP 400 validation error"

supported_endpoints chat completions, completions and batch (kind page). Model docs: "Batch inference Supported", "Chat Completions API Supported"

supports_parallel_function_calling, supports_tool_choice and supports_native_streaming true, kind inherited, inherited_from: vertex_ai/gemini-3.8-flash (the bare row from gemini-3.8-flash). The docs do not state these, though they mention "non-streaming direct HTTP requests" next to the streaming output limit

No deprecation_date, the docs list "Launch stage: GA Release date: October 13, 2026". gemini-4-argon-cyber-permissive is allowlist only and not in the list API, so it gets no row here

Pricing 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 list

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

No 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-004

The 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-mini


Note

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.json and its backup, using the same dual-key pattern as other Vertex Gemini models: vertex_ai/gemini-4-argon (litellm_provider: vertex_ai) and bare gemini-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_multiplier 1.1; the bare row sets supports_audio_output to 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.

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

@codspeed

codspeed Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing litellm-providers/price-sync-vertex-ai (4c05bfb) with main (0976c08)1

Open in CodSpeed

Footnotes

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

Comment thread model_prices_and_context_window.json Resolved
@veria-ai

veria-ai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Price-Sync: litellm-providers
@berriai-litellm-provider-info-sync
berriai-litellm-provider-info-sync Bot force-pushed the litellm-providers/price-sync-vertex-ai branch from 5fa94ec to 4c05bfb Compare October 13, 2026 16:29

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

LGTM

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