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
[LLM Translation] Litellm gemini 2.0 live support (#12839)
Jugal D. Bhattc9899b5c0672
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 2ab758e722b..61d4b5c0dc4 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -7164,6 +7164,54 @@"cache_read_input_token_cost": 3.125e-07,"supports_prompt_caching": true},+ "gemini/gemini-2.0-flash-live-001": {+ "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_token": 3.5e-07,+ "input_cost_per_audio_token": 2.1e-06,+ "input_cost_per_image": 2.1e-06,+ "input_cost_per_video_per_second": 2.1e-06,+ "output_cost_per_token": 1.5e-06,+ "output_cost_per_audio_token": 8.5e-06,+ "litellm_provider": "gemini",+ "mode": "chat",+ "rpm": 10,+ "tpm": 250000,+ "supports_system_messages": true,+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_audio_output": true,+ "supports_tool_choice": true,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/completions"+ ],+ "supported_modalities": [+ "text",+ "image",+ "audio",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "audio"+ ],+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2-0-flash-live-001",+ "supports_web_search": true,+ "supports_url_context": true,+ "supports_pdf_input": true,+ "cache_read_input_token_cost": 7.5e-08,+ "supports_prompt_caching": true+ },"gemini/gemini-2.5-pro-exp-03-25": {"max_tokens": 65535,"max_input_tokens": 1048576,@@ -8581,6 +8629,55 @@"supports_assistant_prefill": true,"supports_tool_choice": true},+ "gemini-2.0-flash-live-preview-04-09": {+ "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_token": 5e-07,+ "input_cost_per_audio_token": 3e-06,+ "input_cost_per_image": 3e-06,+ "input_cost_per_video_per_second": 3e-06,+ "output_cost_per_token": 2e-06,+ "output_cost_per_audio_token": 1.2e-05,+ "litellm_provider": "vertex_ai-language-models",+ "mode": "chat",+ "rpm": 10,+ "tpm": 250000,+ "supports_system_messages": true,+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_audio_output": true,+ "supports_tool_choice": true,++ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/completions"+ ],+ "supported_modalities": [+ "text",+ "image",+ "audio",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "audio"+ ],+ "source": "https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini#gemini-2-0-flash-live-preview-04-09",+ "supports_web_search": true,+ "supports_url_context": true,+ "supports_pdf_input": true,+ "cache_read_input_token_cost": 7.5e-08,+ "supports_prompt_caching": true+ },"vertex_ai/claude-3-sonnet@20240229": {"max_tokens": 4096,"max_input_tokens": 200000,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 2ab758e722b..2949fd7284e 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -7345,6 +7345,54 @@"cache_read_input_token_cost": 7.5e-08,"supports_prompt_caching": true},+ "gemini/gemini-2.0-flash-live-001": {+ "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_token": 3.5e-07,+ "input_cost_per_audio_token": 2.1e-06,+ "input_cost_per_image": 2.1e-06,+ "input_cost_per_video_per_second": 2.1e-06,+ "output_cost_per_token": 1.5e-06,+ "output_cost_per_audio_token": 8.5e-06,+ "litellm_provider": "gemini",+ "mode": "chat",+ "rpm": 10,+ "tpm": 250000,+ "supports_system_messages": true,+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_audio_output": true,+ "supports_tool_choice": true,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/completions"+ ],+ "supported_modalities": [+ "text",+ "image",+ "audio",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "audio"+ ],+ "source": "https://ai.google.dev/gemini-api/docs/models#gemini-2-0-flash-live-001",+ "supports_web_search": true,+ "supports_url_context": true,+ "supports_pdf_input": true,+ "cache_read_input_token_cost": 7.5e-08,+ "supports_prompt_caching": true+ },"gemini/gemini-2.5-flash-preview-tts": {"max_tokens": 65535,"max_input_tokens": 1048576,@@ -8581,6 +8629,54 @@"supports_assistant_prefill": true,"supports_tool_choice": true},+ "gemini-2.0-flash-live-preview-04-09": {+ "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_token": 5e-07,+ "input_cost_per_audio_token": 3e-06,+ "input_cost_per_image": 3e-06,+ "input_cost_per_video_per_second": 3e-06,+ "output_cost_per_token": 2e-06,+ "output_cost_per_audio_token": 1.2e-05,+ "litellm_provider": "vertex_ai-language-models",+ "mode": "chat",+ "rpm": 10,+ "tpm": 250000,+ "supports_system_messages": true,+ "supports_function_calling": true,+ "supports_vision": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_audio_output": true,+ "supports_tool_choice": true,+ "supported_endpoints": [+ "/v1/chat/completions",+ "/v1/completions"+ ],+ "supported_modalities": [+ "text",+ "image",+ "audio",+ "video"+ ],+ "supported_output_modalities": [+ "text",+ "audio"+ ],+ "source": "https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini#gemini-2-0-flash-live-preview-04-09",+ "supports_web_search": true,+ "supports_url_context": true,+ "supports_pdf_input": true,+ "cache_read_input_token_cost": 7.5e-08,+ "supports_prompt_caching": true+ },"vertex_ai/claude-3-sonnet@20240229": {"max_tokens": 4096,"max_input_tokens": 200000,