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
feat(vertex-ai): add gemini-nano-banana-2.1 and Nano Banana 2 priority pricing (#44892)
berriai-litellm-provider-info-sync[bot]fa3b0a6d957c
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex d8b92042ec7..ac4dd4ac36e 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -27273,11 +27273,13 @@"cache_read_input_token_cost": 5e-08,"cache_read_input_token_cost_batches": 2.5e-08,"cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 9e-08,"deprecation_date": "2027-05-28","input_cost_per_image": 0.00056,"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,"input_cost_per_token_flex": 2.5e-07,+ "input_cost_per_token_priority": 9e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -27288,6 +27290,7 @@"output_cost_per_token": 3e-06,"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,+ "output_cost_per_token_priority": 5.4e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -27363,11 +27366,13 @@"cache_read_input_token_cost": 2.5e-08,"cache_read_input_token_cost_batches": 1.25e-08,"cache_read_input_token_cost_flex": 1.25e-08,+ "cache_read_input_token_cost_priority": 4.5e-08,"deprecation_date": "2027-06-28","input_cost_per_image": 0.00028,"input_cost_per_token": 2.5e-07,"input_cost_per_token_batches": 1.25e-07,"input_cost_per_token_flex": 1.25e-07,+ "input_cost_per_token_priority": 4.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 4096,@@ -27378,6 +27383,7 @@"output_cost_per_token": 1.5e-06,"output_cost_per_token_batches": 7.5e-07,"output_cost_per_token_flex": 7.5e-07,+ "output_cost_per_token_priority": 2.7e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -50679,11 +50685,13 @@"cache_read_input_token_cost": 5e-08,"cache_read_input_token_cost_batches": 2.5e-08,"cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 9e-08,"deprecation_date": "2027-05-28","input_cost_per_image": 0.00056,"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,"input_cost_per_token_flex": 2.5e-07,+ "input_cost_per_token_priority": 9e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -50694,6 +50702,7 @@"output_cost_per_token": 3e-06,"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,+ "output_cost_per_token_priority": 5.4e-06,"regional_endpoint_uplift_multiplier": 1.1,"supports_reasoning": false,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",@@ -50734,11 +50743,13 @@"cache_read_input_token_cost": 2.5e-08,"cache_read_input_token_cost_batches": 1.25e-08,"cache_read_input_token_cost_flex": 1.25e-08,+ "cache_read_input_token_cost_priority": 4.5e-08,"deprecation_date": "2027-06-28","input_cost_per_image": 0.00028,"input_cost_per_token": 2.5e-07,"input_cost_per_token_batches": 1.25e-07,"input_cost_per_token_flex": 1.25e-07,+ "input_cost_per_token_priority": 4.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 4096,@@ -50749,6 +50760,7 @@"output_cost_per_token": 1.5e-06,"output_cost_per_token_batches": 7.5e-07,"output_cost_per_token_flex": 7.5e-07,+ "output_cost_per_token_priority": 2.7e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -80429,5 +80441,97 @@"supports_web_search": true,"tpm": 4000000.0,"web_search_billing_unit": "per_query"+ },+ "gemini-nano-banana-2.1": {+ "cache_read_input_token_cost": 1.5e-07,+ "cache_read_input_token_cost_batches": 7.5e-08,+ "cache_read_input_token_cost_priority": 2.7e-07,+ "input_cost_per_image": 0.00168,+ "input_cost_per_token": 1.5e-06,+ "input_cost_per_token_batches": 7.5e-07,+ "input_cost_per_token_priority": 2.7e-06,+ "litellm_provider": "vertex_ai-language-models",+ "max_input_tokens": 131072,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "image_generation",+ "output_cost_per_image": 0.0336,+ "output_cost_per_image_token": 3e-05,+ "output_cost_per_token": 7.5e-06,+ "output_cost_per_token_batches": 3.75e-06,+ "output_cost_per_token_priority": 1.35e-05,+ "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/images/generations",+ "/v1/images/edits",+ "/v1/batch"+ ],+ "supported_modalities": [+ "text",+ "image",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": false,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": false,+ "supports_system_messages": true,+ "supports_video_input": true,+ "supports_vision": true,+ "supports_web_search": true,+ "web_search_billing_unit": "per_query"+ },+ "vertex_ai/gemini-nano-banana-2.1": {+ "cache_read_input_token_cost": 1.5e-07,+ "cache_read_input_token_cost_batches": 7.5e-08,+ "cache_read_input_token_cost_priority": 2.7e-07,+ "input_cost_per_image": 0.00168,+ "input_cost_per_token": 1.5e-06,+ "input_cost_per_token_batches": 7.5e-07,+ "input_cost_per_token_priority": 2.7e-06,+ "litellm_provider": "vertex_ai-language-models",+ "max_input_tokens": 131072,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "image_generation",+ "output_cost_per_image": 0.0336,+ "output_cost_per_image_token": 3e-05,+ "output_cost_per_token": 7.5e-06,+ "output_cost_per_token_batches": 3.75e-06,+ "output_cost_per_token_priority": 1.35e-05,+ "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/images/generations",+ "/v1/images/edits",+ "/v1/batch"+ ],+ "supported_modalities": [+ "text",+ "image",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": false,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": false,+ "supports_system_messages": 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 d8b92042ec7..ac4dd4ac36e 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -27273,11 +27273,13 @@"cache_read_input_token_cost": 5e-08,"cache_read_input_token_cost_batches": 2.5e-08,"cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 9e-08,"deprecation_date": "2027-05-28","input_cost_per_image": 0.00056,"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,"input_cost_per_token_flex": 2.5e-07,+ "input_cost_per_token_priority": 9e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -27288,6 +27290,7 @@"output_cost_per_token": 3e-06,"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,+ "output_cost_per_token_priority": 5.4e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -27363,11 +27366,13 @@"cache_read_input_token_cost": 2.5e-08,"cache_read_input_token_cost_batches": 1.25e-08,"cache_read_input_token_cost_flex": 1.25e-08,+ "cache_read_input_token_cost_priority": 4.5e-08,"deprecation_date": "2027-06-28","input_cost_per_image": 0.00028,"input_cost_per_token": 2.5e-07,"input_cost_per_token_batches": 1.25e-07,"input_cost_per_token_flex": 1.25e-07,+ "input_cost_per_token_priority": 4.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 4096,@@ -27378,6 +27383,7 @@"output_cost_per_token": 1.5e-06,"output_cost_per_token_batches": 7.5e-07,"output_cost_per_token_flex": 7.5e-07,+ "output_cost_per_token_priority": 2.7e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -50679,11 +50685,13 @@"cache_read_input_token_cost": 5e-08,"cache_read_input_token_cost_batches": 2.5e-08,"cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 9e-08,"deprecation_date": "2027-05-28","input_cost_per_image": 0.00056,"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,"input_cost_per_token_flex": 2.5e-07,+ "input_cost_per_token_priority": 9e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -50694,6 +50702,7 @@"output_cost_per_token": 3e-06,"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,+ "output_cost_per_token_priority": 5.4e-06,"regional_endpoint_uplift_multiplier": 1.1,"supports_reasoning": false,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",@@ -50734,11 +50743,13 @@"cache_read_input_token_cost": 2.5e-08,"cache_read_input_token_cost_batches": 1.25e-08,"cache_read_input_token_cost_flex": 1.25e-08,+ "cache_read_input_token_cost_priority": 4.5e-08,"deprecation_date": "2027-06-28","input_cost_per_image": 0.00028,"input_cost_per_token": 2.5e-07,"input_cost_per_token_batches": 1.25e-07,"input_cost_per_token_flex": 1.25e-07,+ "input_cost_per_token_priority": 4.5e-07,"litellm_provider": "vertex_ai-language-models","max_input_tokens": 65536,"max_output_tokens": 4096,@@ -50749,6 +50760,7 @@"output_cost_per_token": 1.5e-06,"output_cost_per_token_batches": 7.5e-07,"output_cost_per_token_flex": 7.5e-07,+ "output_cost_per_token_priority": 2.7e-06,"source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing","supported_endpoints": ["/v1/chat/completions",@@ -80429,5 +80441,97 @@"supports_web_search": true,"tpm": 4000000.0,"web_search_billing_unit": "per_query"+ },+ "gemini-nano-banana-2.1": {+ "cache_read_input_token_cost": 1.5e-07,+ "cache_read_input_token_cost_batches": 7.5e-08,+ "cache_read_input_token_cost_priority": 2.7e-07,+ "input_cost_per_image": 0.00168,+ "input_cost_per_token": 1.5e-06,+ "input_cost_per_token_batches": 7.5e-07,+ "input_cost_per_token_priority": 2.7e-06,+ "litellm_provider": "vertex_ai-language-models",+ "max_input_tokens": 131072,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "image_generation",+ "output_cost_per_image": 0.0336,+ "output_cost_per_image_token": 3e-05,+ "output_cost_per_token": 7.5e-06,+ "output_cost_per_token_batches": 3.75e-06,+ "output_cost_per_token_priority": 1.35e-05,+ "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/images/generations",+ "/v1/images/edits",+ "/v1/batch"+ ],+ "supported_modalities": [+ "text",+ "image",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": false,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": false,+ "supports_system_messages": true,+ "supports_video_input": true,+ "supports_vision": true,+ "supports_web_search": true,+ "web_search_billing_unit": "per_query"+ },+ "vertex_ai/gemini-nano-banana-2.1": {+ "cache_read_input_token_cost": 1.5e-07,+ "cache_read_input_token_cost_batches": 7.5e-08,+ "cache_read_input_token_cost_priority": 2.7e-07,+ "input_cost_per_image": 0.00168,+ "input_cost_per_token": 1.5e-06,+ "input_cost_per_token_batches": 7.5e-07,+ "input_cost_per_token_priority": 2.7e-06,+ "litellm_provider": "vertex_ai-language-models",+ "max_input_tokens": 131072,+ "max_output_tokens": 32768,+ "max_tokens": 32768,+ "mode": "image_generation",+ "output_cost_per_image": 0.0336,+ "output_cost_per_image_token": 3e-05,+ "output_cost_per_token": 7.5e-06,+ "output_cost_per_token_batches": 3.75e-06,+ "output_cost_per_token_priority": 1.35e-05,+ "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/images/generations",+ "/v1/images/edits",+ "/v1/batch"+ ],+ "supported_modalities": [+ "text",+ "image",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "image"+ ],+ "supports_function_calling": false,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": false,+ "supports_system_messages": true,+ "supports_video_input": true,+ "supports_vision": true,+ "supports_web_search": true,+ "web_search_billing_unit": "per_query"}}