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(cost-map): add vertex cache read, batch and above 200k prices for gemini image preview rows (#42995)
devin-ai-integration[bot]d3462c65b585
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex a338c389ea4..2600da22a77 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -26312,7 +26312,11 @@},"gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,+ "cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_above_200k_tokens": 4e-07,+ "cache_read_input_token_cost_batches": 1e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_above_200k_tokens": 4e-06,"input_cost_per_token_batches": 1e-06,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,@@ -26322,6 +26326,7 @@"output_cost_per_image": 0.134,"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,+ "output_cost_per_token_above_200k_tokens": 1.8e-05,"output_cost_per_token_batches": 6e-06,"source": "https://ai.google.dev/gemini-api/docs/pricing","supported_endpoints": [@@ -26398,7 +26403,10 @@},"gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,+ "cache_read_input_token_cost": 5e-08,+ "cache_read_input_token_cost_batches": 2.5e-08,"input_cost_per_token": 5e-07,+ "input_cost_per_token_batches": 2.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -26407,6 +26415,7 @@"output_cost_per_image": 0.0672,"output_cost_per_image_token": 6e-05,"output_cost_per_token": 3e-06,+ "output_cost_per_token_batches": 1.5e-06,"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models","supported_endpoints": ["/v1/chat/completions",@@ -49484,7 +49493,11 @@},"vertex_ai/gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,+ "cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_above_200k_tokens": 4e-07,+ "cache_read_input_token_cost_batches": 1e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_above_200k_tokens": 4e-06,"input_cost_per_token_batches": 1e-06,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,@@ -49494,6 +49507,7 @@"output_cost_per_image": 0.134,"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,+ "output_cost_per_token_above_200k_tokens": 1.8e-05,"output_cost_per_token_batches": 6e-06,"supports_reasoning": false,"source": "https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/3-pro-image"@@ -49522,7 +49536,10 @@},"vertex_ai/gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,+ "cache_read_input_token_cost": 5e-08,+ "cache_read_input_token_cost_batches": 2.5e-08,"input_cost_per_token": 5e-07,+ "input_cost_per_token_batches": 2.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -49531,6 +49548,7 @@"output_cost_per_image": 0.0672,"output_cost_per_image_token": 6e-05,"output_cost_per_token": 3e-06,+ "output_cost_per_token_batches": 1.5e-06,"supports_reasoning": false,"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models"},diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex a338c389ea4..2600da22a77 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -26312,7 +26312,11 @@},"gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,+ "cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_above_200k_tokens": 4e-07,+ "cache_read_input_token_cost_batches": 1e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_above_200k_tokens": 4e-06,"input_cost_per_token_batches": 1e-06,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,@@ -26322,6 +26326,7 @@"output_cost_per_image": 0.134,"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,+ "output_cost_per_token_above_200k_tokens": 1.8e-05,"output_cost_per_token_batches": 6e-06,"source": "https://ai.google.dev/gemini-api/docs/pricing","supported_endpoints": [@@ -26398,7 +26403,10 @@},"gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,+ "cache_read_input_token_cost": 5e-08,+ "cache_read_input_token_cost_batches": 2.5e-08,"input_cost_per_token": 5e-07,+ "input_cost_per_token_batches": 2.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -26407,6 +26415,7 @@"output_cost_per_image": 0.0672,"output_cost_per_image_token": 6e-05,"output_cost_per_token": 3e-06,+ "output_cost_per_token_batches": 1.5e-06,"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models","supported_endpoints": ["/v1/chat/completions",@@ -49484,7 +49493,11 @@},"vertex_ai/gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,+ "cache_read_input_token_cost": 2e-07,+ "cache_read_input_token_cost_above_200k_tokens": 4e-07,+ "cache_read_input_token_cost_batches": 1e-07,"input_cost_per_token": 2e-06,+ "input_cost_per_token_above_200k_tokens": 4e-06,"input_cost_per_token_batches": 1e-06,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,@@ -49494,6 +49507,7 @@"output_cost_per_image": 0.134,"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,+ "output_cost_per_token_above_200k_tokens": 1.8e-05,"output_cost_per_token_batches": 6e-06,"supports_reasoning": false,"source": "https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/3-pro-image"@@ -49522,7 +49536,10 @@},"vertex_ai/gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,+ "cache_read_input_token_cost": 5e-08,+ "cache_read_input_token_cost_batches": 2.5e-08,"input_cost_per_token": 5e-07,+ "input_cost_per_token_batches": 2.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -49531,6 +49548,7 @@"output_cost_per_image": 0.0672,"output_cost_per_image_token": 6e-05,"output_cost_per_token": 3e-06,+ "output_cost_per_token_batches": 1.5e-06,"supports_reasoning": false,"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models"},