The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(pricing): drop duplicate and bare gemini-4-argon rows (#46246)
Kerry Lu61841887f3b9
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 2980aca3a43..b34dd9fa764 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -72576,124 +72576,6 @@"supports_xhigh_reasoning_effort": true,"thinking_always_on": true},- "gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai-language-models",- "max_input_tokens": 1048576,- "max_output_tokens": 65536,- "max_tokens": 65536,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144,- "search_context_cost_per_query": {- "search_context_size_low": 0.014,- "search_context_size_medium": 0.014,- "search_context_size_high": 0.014- },- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_audio_output": false,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"- },- "vertex_ai/gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai",- "max_input_tokens": 1048576,- "max_output_tokens": 65536,- "max_tokens": 65536,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144,- "regional_endpoint_uplift_multiplier": 1.1,- "search_context_cost_per_query": {- "search_context_size_low": 0.014,- "search_context_size_medium": 0.014,- "search_context_size_high": 0.014- },- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"- },"gemini/gemini-4-argon": {"cache_read_input_token_cost": 1e-07,"cache_read_input_token_cost_batches": 5e-08,@@ -72807,63 +72689,5 @@"supports_vision": true,"supports_web_search": true,"web_search_billing_unit": "per_query"- },- "gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token": 2e-06,- "input_cost_per_audio_token_batches": 1e-06,- "input_cost_per_audio_token_priority": 3.6e-06,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai-language-models",- "max_input_tokens": 1048576,- "max_output_tokens": 1048576,- "max_tokens": 1048576,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144.0,- "search_context_cost_per_query": {"search_context_size_low":0.014,"search_context_size_medium":0.014,"search_context_size_high":0.014},- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_audio_output": false,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"}}diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 2980aca3a43..b34dd9fa764 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -72576,124 +72576,6 @@"supports_xhigh_reasoning_effort": true,"thinking_always_on": true},- "gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai-language-models",- "max_input_tokens": 1048576,- "max_output_tokens": 65536,- "max_tokens": 65536,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144,- "search_context_cost_per_query": {- "search_context_size_low": 0.014,- "search_context_size_medium": 0.014,- "search_context_size_high": 0.014- },- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_audio_output": false,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"- },- "vertex_ai/gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai",- "max_input_tokens": 1048576,- "max_output_tokens": 65536,- "max_tokens": 65536,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144,- "regional_endpoint_uplift_multiplier": 1.1,- "search_context_cost_per_query": {- "search_context_size_low": 0.014,- "search_context_size_medium": 0.014,- "search_context_size_high": 0.014- },- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"- },"gemini/gemini-4-argon": {"cache_read_input_token_cost": 1e-07,"cache_read_input_token_cost_batches": 5e-08,@@ -72807,63 +72689,5 @@"supports_vision": true,"supports_web_search": true,"web_search_billing_unit": "per_query"- },- "gemini-4-argon": {- "cache_read_input_token_cost": 1e-07,- "cache_read_input_token_cost_batches": 5e-08,- "cache_read_input_token_cost_flex": 5e-08,- "cache_read_input_token_cost_priority": 1.8e-07,- "google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token": 2e-06,- "input_cost_per_audio_token_batches": 1e-06,- "input_cost_per_audio_token_priority": 3.6e-06,- "input_cost_per_token": 2e-06,- "input_cost_per_token_batches": 1e-06,- "input_cost_per_token_flex": 1e-06,- "input_cost_per_token_priority": 3.6e-06,- "litellm_provider": "vertex_ai-language-models",- "max_input_tokens": 1048576,- "max_output_tokens": 1048576,- "max_tokens": 1048576,- "mode": "chat",- "output_cost_per_reasoning_token": 1e-05,- "output_cost_per_token": 1e-05,- "output_cost_per_token_batches": 5e-06,- "output_cost_per_token_flex": 5e-06,- "output_cost_per_token_priority": 1.8e-05,- "prompt_cache_min_tokens": 6144.0,- "search_context_cost_per_query": {"search_context_size_low":0.014,"search_context_size_medium":0.014,"search_context_size_high":0.014},- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "supported_endpoints": [- "/v1/chat/completions",- "/v1/completions",- "/v1/batch"- ],- "supported_modalities": [- "text",- "image",- "audio",- "video"- ],- "supported_output_modalities": [- "text"- ],- "supports_audio_input": true,- "supports_audio_output": false,- "supports_function_calling": true,- "supports_minimal_reasoning_effort": false,- "supports_native_streaming": true,- "supports_parallel_function_calling": true,- "supports_pdf_input": true,- "supports_prompt_caching": true,- "supports_reasoning": true,- "supports_response_schema": true,- "supports_system_messages": true,- "supports_tool_choice": true,- "supports_url_context": true,- "supports_video_input": true,- "supports_vision": true,- "supports_web_search": true,- "web_search_billing_unit": "per_query"}}diff --git a/tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py b/tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.pyindex dbd9c874dfd..67a3e2ddd5c 100644--- a/tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py+++ b/tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py@@ -4046,9 +4046,8 @@ GEMINI_4_ARGON_TOKEN_PRICE_KEYS: Final = ()[email protected]("model", ["gemini-4-argon", "vertex_ai/gemini-4-argon"])-def test_vertex_gemini_4_argon_matches_gemini_api_global_pricing(model: str, _local_model_cost_map: None) -> None:- vertex_row: Final = litellm.model_cost[model]+def test_vertex_gemini_4_argon_matches_gemini_api_global_pricing(_local_model_cost_map: None) -> None:+ vertex_row: Final = litellm.model_cost["vertex_ai/gemini-4-argon"]gemini_row: Final = litellm.model_cost["gemini/gemini-4-argon"]assert {key: vertex_row[key] for key in GEMINI_4_ARGON_TOKEN_PRICE_KEYS} == {key: gemini_row[key] for key in GEMINI_4_ARGON_TOKEN_PRICE_KEYS