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 the duplicate cache_read_input_token_cost_batches key from 23 entries (#42623)
devin-ai-integration[bot]7688f5625648
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 224129fbd25..ad66cb76f8b 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -25314,8 +25314,7 @@"search_context_size_medium": 0.014,"search_context_size_high": 0.014},- "web_search_billing_unit": "per_query",- "cache_read_input_token_cost_batches": 1e-07+ "web_search_billing_unit": "per_query"},"gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,@@ -25401,8 +25400,7 @@"search_context_size_medium": 0.014,"search_context_size_high": 0.014},- "web_search_billing_unit": "per_query",- "cache_read_input_token_cost_batches": 2.5e-08+ "web_search_billing_unit": "per_query"},"gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,@@ -25482,8 +25480,7 @@"supports_response_schema": false,"supports_system_messages": true,"supports_video_input": true,- "supports_vision": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_vision": true},"gemini-3.1-flash-lite-preview": {"cache_read_input_token_cost": 2.5e-08,@@ -25593,8 +25590,7 @@},"web_search_billing_unit": "per_query","google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token_batches": 2.5e-07,- "cache_read_input_token_cost_batches": 1.25e-08+ "input_cost_per_audio_token_batches": 2.5e-07},"gemini-3.5-flash-lite": {"deprecation_date": "2027-07-21",@@ -25652,8 +25648,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 1.5e-08+ "google_maps_grounding_cost_per_query": 0.014},"deep-research-pro-preview-12-2025": {"cache_read_input_token_cost": 2e-07,@@ -25689,8 +25684,7 @@"supports_response_schema": true,"supports_system_messages": true,"supports_vision": true,- "supports_web_search": true,- "cache_read_input_token_cost_batches": 1e-07+ "supports_web_search": true},"gemini-2.5-flash-lite": {"cache_read_input_audio_token_cost": 3e-08,@@ -26321,8 +26315,7 @@"output_cost_per_token_batches": 4.5e-06,"input_cost_per_token_flex": 7.5e-07,"output_cost_per_token_flex": 4.5e-06,- "cache_read_input_token_cost_flex": 7.5e-08,- "cache_read_input_token_cost_batches": 7.5e-08+ "cache_read_input_token_cost_flex": 7.5e-08},"vertex_ai/gemini-3.6-flash": {"prompt_cache_min_tokens": 4096,@@ -26380,8 +26373,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.7-flash": {"prompt_cache_min_tokens": 4096,@@ -26440,8 +26432,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.8-flash": {"prompt_cache_min_tokens": 4096,@@ -26500,8 +26491,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.1-pro-preview": {"prompt_cache_min_tokens": 4096,@@ -28250,8 +28240,7 @@"output_cost_per_token_batches": 4.5e-06,"input_cost_per_token_flex": 7.5e-07,"output_cost_per_token_flex": 4.5e-06,- "cache_read_input_token_cost_flex": 7.5e-08,- "cache_read_input_token_cost_batches": 7.5e-08+ "cache_read_input_token_cost_flex": 7.5e-08},"gemini-3.6-flash": {"prompt_cache_min_tokens": 4096,@@ -28309,8 +28298,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini-3.7-flash": {"prompt_cache_min_tokens": 4096,@@ -28369,8 +28357,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini-3.8-flash": {"prompt_cache_min_tokens": 4096,@@ -28429,8 +28416,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini/gemini-2.5-pro-preview-tts": {"cache_read_input_token_cost": 1.25e-07,@@ -33110,8 +33096,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 6.25e-08+ "supports_minimal_reasoning_effort": true},"gpt-5-chat": {"cache_read_input_token_cost": 1.25e-07,@@ -33292,8 +33277,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_minimal_reasoning_effort": true},"gpt-5-nano": {"cache_read_input_token_cost": 5e-09,@@ -33392,8 +33376,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 2.5e-09+ "supports_minimal_reasoning_effort": true},"gpt-image-1": {"cache_read_input_token_cost": 1.25e-06,@@ -47531,8 +47514,7 @@"output_cost_per_token_flex": 6e-06,"output_cost_per_token_priority": 2.16e-05,"supports_reasoning": false,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 1e-07+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,@@ -47570,8 +47552,7 @@"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,"supports_reasoning": false,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 2.5e-08+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,@@ -47627,8 +47608,7 @@"supports_response_schema": false,"supports_system_messages": true,"supports_video_input": true,- "supports_vision": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_vision": true},"vertex_ai/gemini-3.1-flash-lite-preview": {"cache_read_input_token_cost": 2.5e-08,@@ -47739,8 +47719,7 @@},"web_search_billing_unit": "per_query","google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token_batches": 2.5e-07,- "cache_read_input_token_cost_batches": 1.25e-08+ "input_cost_per_audio_token_batches": 2.5e-07},"vertex_ai/gemini-3.5-flash-lite": {"deprecation_date": "2027-07-21",@@ -47799,8 +47778,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 1.5e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/deep-research-pro-preview-12-2025": {"cache_read_input_token_cost": 2e-07,@@ -47817,8 +47795,7 @@"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,"output_cost_per_token_batches": 6e-06,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 1e-07+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/jamba-1.5": {"input_cost_per_token": 2e-07,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 224129fbd25..ad66cb76f8b 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -25314,8 +25314,7 @@"search_context_size_medium": 0.014,"search_context_size_high": 0.014},- "web_search_billing_unit": "per_query",- "cache_read_input_token_cost_batches": 1e-07+ "web_search_billing_unit": "per_query"},"gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,@@ -25401,8 +25400,7 @@"search_context_size_medium": 0.014,"search_context_size_high": 0.014},- "web_search_billing_unit": "per_query",- "cache_read_input_token_cost_batches": 2.5e-08+ "web_search_billing_unit": "per_query"},"gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,@@ -25482,8 +25480,7 @@"supports_response_schema": false,"supports_system_messages": true,"supports_video_input": true,- "supports_vision": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_vision": true},"gemini-3.1-flash-lite-preview": {"cache_read_input_token_cost": 2.5e-08,@@ -25593,8 +25590,7 @@},"web_search_billing_unit": "per_query","google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token_batches": 2.5e-07,- "cache_read_input_token_cost_batches": 1.25e-08+ "input_cost_per_audio_token_batches": 2.5e-07},"gemini-3.5-flash-lite": {"deprecation_date": "2027-07-21",@@ -25652,8 +25648,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 1.5e-08+ "google_maps_grounding_cost_per_query": 0.014},"deep-research-pro-preview-12-2025": {"cache_read_input_token_cost": 2e-07,@@ -25689,8 +25684,7 @@"supports_response_schema": true,"supports_system_messages": true,"supports_vision": true,- "supports_web_search": true,- "cache_read_input_token_cost_batches": 1e-07+ "supports_web_search": true},"gemini-2.5-flash-lite": {"cache_read_input_audio_token_cost": 3e-08,@@ -26321,8 +26315,7 @@"output_cost_per_token_batches": 4.5e-06,"input_cost_per_token_flex": 7.5e-07,"output_cost_per_token_flex": 4.5e-06,- "cache_read_input_token_cost_flex": 7.5e-08,- "cache_read_input_token_cost_batches": 7.5e-08+ "cache_read_input_token_cost_flex": 7.5e-08},"vertex_ai/gemini-3.6-flash": {"prompt_cache_min_tokens": 4096,@@ -26380,8 +26373,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.7-flash": {"prompt_cache_min_tokens": 4096,@@ -26440,8 +26432,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.8-flash": {"prompt_cache_min_tokens": 4096,@@ -26500,8 +26491,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/gemini-3.1-pro-preview": {"prompt_cache_min_tokens": 4096,@@ -28250,8 +28240,7 @@"output_cost_per_token_batches": 4.5e-06,"input_cost_per_token_flex": 7.5e-07,"output_cost_per_token_flex": 4.5e-06,- "cache_read_input_token_cost_flex": 7.5e-08,- "cache_read_input_token_cost_batches": 7.5e-08+ "cache_read_input_token_cost_flex": 7.5e-08},"gemini-3.6-flash": {"prompt_cache_min_tokens": 4096,@@ -28309,8 +28298,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini-3.7-flash": {"prompt_cache_min_tokens": 4096,@@ -28369,8 +28357,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini-3.8-flash": {"prompt_cache_min_tokens": 4096,@@ -28429,8 +28416,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 3.75e-08+ "google_maps_grounding_cost_per_query": 0.014},"gemini/gemini-2.5-pro-preview-tts": {"cache_read_input_token_cost": 1.25e-07,@@ -33110,8 +33096,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 6.25e-08+ "supports_minimal_reasoning_effort": true},"gpt-5-chat": {"cache_read_input_token_cost": 1.25e-07,@@ -33292,8 +33277,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_minimal_reasoning_effort": true},"gpt-5-nano": {"cache_read_input_token_cost": 5e-09,@@ -33392,8 +33376,7 @@"supports_web_search": true,"supports_none_reasoning_effort": false,"supports_xhigh_reasoning_effort": false,- "supports_minimal_reasoning_effort": true,- "cache_read_input_token_cost_batches": 2.5e-09+ "supports_minimal_reasoning_effort": true},"gpt-image-1": {"cache_read_input_token_cost": 1.25e-06,@@ -47531,8 +47514,7 @@"output_cost_per_token_flex": 6e-06,"output_cost_per_token_priority": 2.16e-05,"supports_reasoning": false,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 1e-07+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/gemini-3-pro-image-preview": {"input_cost_per_image": 0.0011,@@ -47570,8 +47552,7 @@"output_cost_per_token_batches": 1.5e-06,"output_cost_per_token_flex": 1.5e-06,"supports_reasoning": false,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 2.5e-08+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/gemini-3.1-flash-image-preview": {"input_cost_per_image": 0.00056,@@ -47627,8 +47608,7 @@"supports_response_schema": false,"supports_system_messages": true,"supports_video_input": true,- "supports_vision": true,- "cache_read_input_token_cost_batches": 1.25e-08+ "supports_vision": true},"vertex_ai/gemini-3.1-flash-lite-preview": {"cache_read_input_token_cost": 2.5e-08,@@ -47739,8 +47719,7 @@},"web_search_billing_unit": "per_query","google_maps_grounding_cost_per_query": 0.014,- "input_cost_per_audio_token_batches": 2.5e-07,- "cache_read_input_token_cost_batches": 1.25e-08+ "input_cost_per_audio_token_batches": 2.5e-07},"vertex_ai/gemini-3.5-flash-lite": {"deprecation_date": "2027-07-21",@@ -47799,8 +47778,7 @@"search_context_size_high": 0.014},"web_search_billing_unit": "per_query",- "google_maps_grounding_cost_per_query": 0.014,- "cache_read_input_token_cost_batches": 1.5e-08+ "google_maps_grounding_cost_per_query": 0.014},"vertex_ai/deep-research-pro-preview-12-2025": {"cache_read_input_token_cost": 2e-07,@@ -47817,8 +47795,7 @@"output_cost_per_image_token": 0.00012,"output_cost_per_token": 1.2e-05,"output_cost_per_token_batches": 6e-06,- "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing",- "cache_read_input_token_cost_batches": 1e-07+ "source": "https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing"},"vertex_ai/jamba-1.5": {"input_cost_per_token": 2e-07,