Skip to content

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]

Add correct pricing for gemini 3.1 flash lite

Sameer Kankutec3fe4634b625
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 42b4f0f7762..8f5fd26e3e8 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -14335,17 +14335,18 @@
"supports_web_search": true
},
"gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "vertex_ai-language-models",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -14368,6 +14369,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,
@@ -17138,17 +17141,18 @@
"supports_service_tier": true
},
"gemini/gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "gemini",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -17172,6 +17176,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,
@@ -32400,17 +32406,18 @@
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models"
},
"vertex_ai/gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "vertex_ai-language-models",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -32433,6 +32440,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 42b4f0f7762..8f5fd26e3e8 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -14335,17 +14335,18 @@
"supports_web_search": true
},
"gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "vertex_ai-language-models",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -14368,6 +14369,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,
@@ -17138,17 +17141,18 @@
"supports_service_tier": true
},
"gemini/gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "gemini",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -17172,6 +17176,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,
@@ -32400,17 +32406,18 @@
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing#gemini-models"
},
"vertex_ai/gemini-3.1-flash-lite-preview": {
- "cache_read_input_token_cost": 2.5e-09,
- "input_cost_per_audio_token": 2.5e-07,
+ "cache_read_input_token_cost": 2.5e-08,
+ "cache_read_input_token_cost_per_audio_token": 5e-08,
+ "input_cost_per_audio_token": 5e-07,
"input_cost_per_token": 2.5e-07,
"litellm_provider": "vertex_ai-language-models",
"max_audio_length_hours": 8.4,
"max_audio_per_prompt": 1,
"max_images_per_prompt": 3000,
"max_input_tokens": 1048576,
- "max_output_tokens": 65535,
+ "max_output_tokens": 65536,
"max_pdf_size_mb": 30,
- "max_tokens": 65535,
+ "max_tokens": 65536,
"max_video_length": 1,
"max_videos_per_prompt": 10,
"mode": "chat",
@@ -32433,6 +32440,8 @@
],
"supports_audio_input": true,
"supports_audio_output": false,
+ "supports_code_execution": true,
+ "supports_file_search": true,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_pdf_input": true,