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]

[Feat] New model `gemini-2.5-flash-image-preview` (#13979)

Ishaan Jaff5647757ab3cb
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 727e119e9da..0fd32d43aae 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -7909,6 +7909,55 @@
"cache_read_input_token_cost": 7.5e-08,
"supports_prompt_caching": true
},
+ "gemini/gemini-2.5-flash-image-preview": {
+ "max_tokens": 65535,
+ "max_input_tokens": 1048576,
+ "max_output_tokens": 65535,
+ "max_images_per_prompt": 3000,
+ "max_videos_per_prompt": 10,
+ "max_video_length": 1,
+ "max_audio_length_hours": 8.4,
+ "max_audio_per_prompt": 1,
+ "max_pdf_size_mb": 30,
+ "input_cost_per_audio_token": 1e-06,
+ "input_cost_per_token": 3e-07,
+ "output_cost_per_token": 2.5e-06,
+ "output_cost_per_reasoning_token": 2.5e-06,
+ "output_cost_per_image": 0.039,
+ "litellm_provider": "gemini",
+ "mode": "chat",
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "supports_response_schema": true,
+ "supports_audio_output": false,
+ "supports_tool_choice": true,
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/completions",
+ "/v1/batch"
+ ],
+ "supported_modalities": [
+ "text",
+ "image",
+ "audio",
+ "video"
+ ],
+ "supported_output_modalities": [
+ "text",
+ "image"
+ ],
+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
+ "supports_parallel_function_calling": true,
+ "supports_web_search": true,
+ "supports_url_context": true,
+ "tpm": 8000000,
+ "rpm": 100000,
+ "supports_pdf_input": true,
+ "cache_read_input_token_cost": 7.5e-08,
+ "supports_prompt_caching": true
+ },
"gemini-2.5-flash": {
"max_tokens": 65535,
"max_input_tokens": 1048576,
@@ -8225,6 +8274,55 @@
"cache_read_input_token_cost": 2.5e-08,
"supports_prompt_caching": true
},
+ "gemini-2.5-flash-image-preview": {
+ "max_tokens": 65535,
+ "max_input_tokens": 1048576,
+ "max_output_tokens": 65535,
+ "max_images_per_prompt": 3000,
+ "max_videos_per_prompt": 10,
+ "max_video_length": 1,
+ "max_audio_length_hours": 8.4,
+ "max_audio_per_prompt": 1,
+ "max_pdf_size_mb": 30,
+ "input_cost_per_audio_token": 1e-06,
+ "input_cost_per_token": 3e-07,
+ "output_cost_per_token": 2.5e-06,
+ "output_cost_per_reasoning_token": 2.5e-06,
+ "output_cost_per_image": 0.039,
+ "litellm_provider": "vertex_ai-language-models",
+ "mode": "chat",
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "supports_response_schema": true,
+ "supports_audio_output": false,
+ "supports_tool_choice": true,
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/completions",
+ "/v1/batch"
+ ],
+ "supported_modalities": [
+ "text",
+ "image",
+ "audio",
+ "video"
+ ],
+ "supported_output_modalities": [
+ "text",
+ "image"
+ ],
+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
+ "supports_parallel_function_calling": true,
+ "supports_web_search": true,
+ "supports_url_context": true,
+ "tpm": 8000000,
+ "rpm": 100000,
+ "supports_pdf_input": true,
+ "cache_read_input_token_cost": 7.5e-08,
+ "supports_prompt_caching": true
+ },
"gemini-2.5-flash-preview-05-20": {
"max_tokens": 65535,
"max_input_tokens": 1048576,
@@ -16688,6 +16786,18 @@
"supports_tool_choice": false,
"supports_response_schema": true
},
+ "fireworks_ai/accounts/fireworks/models/deepseek-v3p1": {
+ "max_tokens": 8192,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 8192,
+ "input_cost_per_token": 5.6e-07,
+ "output_cost_per_token": 1.68e-06,
+ "litellm_provider": "fireworks_ai",
+ "mode": "chat",
+ "supports_response_schema": true,
+ "source": "https://fireworks.ai/pricing",
+ "supports_tool_choice": true
+ },
"fireworks_ai/accounts/fireworks/models/kimi-k2-instruct": {
"max_tokens": 131072,
"max_input_tokens": 131072,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 1b298fbbaee..0fd32d43aae 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -7909,6 +7909,55 @@
"cache_read_input_token_cost": 7.5e-08,
"supports_prompt_caching": true
},
+ "gemini/gemini-2.5-flash-image-preview": {
+ "max_tokens": 65535,
+ "max_input_tokens": 1048576,
+ "max_output_tokens": 65535,
+ "max_images_per_prompt": 3000,
+ "max_videos_per_prompt": 10,
+ "max_video_length": 1,
+ "max_audio_length_hours": 8.4,
+ "max_audio_per_prompt": 1,
+ "max_pdf_size_mb": 30,
+ "input_cost_per_audio_token": 1e-06,
+ "input_cost_per_token": 3e-07,
+ "output_cost_per_token": 2.5e-06,
+ "output_cost_per_reasoning_token": 2.5e-06,
+ "output_cost_per_image": 0.039,
+ "litellm_provider": "gemini",
+ "mode": "chat",
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "supports_response_schema": true,
+ "supports_audio_output": false,
+ "supports_tool_choice": true,
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/completions",
+ "/v1/batch"
+ ],
+ "supported_modalities": [
+ "text",
+ "image",
+ "audio",
+ "video"
+ ],
+ "supported_output_modalities": [
+ "text",
+ "image"
+ ],
+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
+ "supports_parallel_function_calling": true,
+ "supports_web_search": true,
+ "supports_url_context": true,
+ "tpm": 8000000,
+ "rpm": 100000,
+ "supports_pdf_input": true,
+ "cache_read_input_token_cost": 7.5e-08,
+ "supports_prompt_caching": true
+ },
"gemini-2.5-flash": {
"max_tokens": 65535,
"max_input_tokens": 1048576,
@@ -8225,6 +8274,55 @@
"cache_read_input_token_cost": 2.5e-08,
"supports_prompt_caching": true
},
+ "gemini-2.5-flash-image-preview": {
+ "max_tokens": 65535,
+ "max_input_tokens": 1048576,
+ "max_output_tokens": 65535,
+ "max_images_per_prompt": 3000,
+ "max_videos_per_prompt": 10,
+ "max_video_length": 1,
+ "max_audio_length_hours": 8.4,
+ "max_audio_per_prompt": 1,
+ "max_pdf_size_mb": 30,
+ "input_cost_per_audio_token": 1e-06,
+ "input_cost_per_token": 3e-07,
+ "output_cost_per_token": 2.5e-06,
+ "output_cost_per_reasoning_token": 2.5e-06,
+ "output_cost_per_image": 0.039,
+ "litellm_provider": "vertex_ai-language-models",
+ "mode": "chat",
+ "supports_reasoning": true,
+ "supports_system_messages": true,
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "supports_response_schema": true,
+ "supports_audio_output": false,
+ "supports_tool_choice": true,
+ "supported_endpoints": [
+ "/v1/chat/completions",
+ "/v1/completions",
+ "/v1/batch"
+ ],
+ "supported_modalities": [
+ "text",
+ "image",
+ "audio",
+ "video"
+ ],
+ "supported_output_modalities": [
+ "text",
+ "image"
+ ],
+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview",
+ "supports_parallel_function_calling": true,
+ "supports_web_search": true,
+ "supports_url_context": true,
+ "tpm": 8000000,
+ "rpm": 100000,
+ "supports_pdf_input": true,
+ "cache_read_input_token_cost": 7.5e-08,
+ "supports_prompt_caching": true
+ },
"gemini-2.5-flash-preview-05-20": {
"max_tokens": 65535,
"max_input_tokens": 1048576,