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(gemini): add gemini-3.8-flash-tts and gemini-3.8-flash-lite-tts prices (#42752)
devin-ai-integration[bot]21530d887b46
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 345daa5c8a3..cc3bf192908 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -55199,6 +55199,54 @@"supports_response_schema": false,"supports_web_search": false},+ "gemini/gemini-3.8-flash-tts": {+ "cache_read_input_token_cost": 1.25e-07,+ "cache_read_input_token_cost_batches": 6.25e-08,+ "cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 2.25e-07,+ "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": "gemini",+ "max_input_tokens": 8192,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "audio_speech",+ "output_cost_per_audio_token": 9e-06,+ "output_cost_per_token": 9e-06,+ "output_cost_per_token_batches": 4.5e-06,+ "output_cost_per_token_flex": 4.5e-06,+ "output_cost_per_token_priority": 1.62e-05,+ "source": "https://ai.google.dev/gemini-api/docs/pricing",+ "supported_endpoints": [+ "/v1/audio/speech"+ ]+ },+ "gemini/gemini-3.8-flash-lite-tts": {+ "cache_read_input_token_cost": 1.25e-07,+ "cache_read_input_token_cost_batches": 6.25e-08,+ "cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 2.25e-07,+ "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": "gemini",+ "max_input_tokens": 8192,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "audio_speech",+ "output_cost_per_audio_token": 6e-06,+ "output_cost_per_token": 6e-06,+ "output_cost_per_token_batches": 3e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.08e-05,+ "source": "https://ai.google.dev/gemini-api/docs/pricing",+ "supported_endpoints": [+ "/v1/audio/speech"+ ]+ },"gemini-2.5-flash-preview-tts": {"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 345daa5c8a3..cc3bf192908 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -55199,6 +55199,54 @@"supports_response_schema": false,"supports_web_search": false},+ "gemini/gemini-3.8-flash-tts": {+ "cache_read_input_token_cost": 1.25e-07,+ "cache_read_input_token_cost_batches": 6.25e-08,+ "cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 2.25e-07,+ "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": "gemini",+ "max_input_tokens": 8192,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "audio_speech",+ "output_cost_per_audio_token": 9e-06,+ "output_cost_per_token": 9e-06,+ "output_cost_per_token_batches": 4.5e-06,+ "output_cost_per_token_flex": 4.5e-06,+ "output_cost_per_token_priority": 1.62e-05,+ "source": "https://ai.google.dev/gemini-api/docs/pricing",+ "supported_endpoints": [+ "/v1/audio/speech"+ ]+ },+ "gemini/gemini-3.8-flash-lite-tts": {+ "cache_read_input_token_cost": 1.25e-07,+ "cache_read_input_token_cost_batches": 6.25e-08,+ "cache_read_input_token_cost_flex": 2.5e-08,+ "cache_read_input_token_cost_priority": 2.25e-07,+ "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": "gemini",+ "max_input_tokens": 8192,+ "max_output_tokens": 16384,+ "max_tokens": 16384,+ "mode": "audio_speech",+ "output_cost_per_audio_token": 6e-06,+ "output_cost_per_token": 6e-06,+ "output_cost_per_token_batches": 3e-06,+ "output_cost_per_token_flex": 3e-06,+ "output_cost_per_token_priority": 1.08e-05,+ "source": "https://ai.google.dev/gemini-api/docs/pricing",+ "supported_endpoints": [+ "/v1/audio/speech"+ ]+ },"gemini-2.5-flash-preview-tts": {"input_cost_per_token": 5e-07,"input_cost_per_token_batches": 2.5e-07,diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.pyindex ce280cc3513..2a8b31c12cc 100644--- a/tests/test_litellm/test_utils.py+++ b/tests/test_litellm/test_utils.py@@ -6142,6 +6142,8 @@ def test_get_model_info_gemini(monkeypatch):and "veo" not in modeland "lyria" not in modeland "robotics" not in model+ and "3.8-flash-tts" not in model+ and "3.8-flash-lite-tts" not in model):assert info.get("tpm") is not None, f"{model} does not have tpm"assert info.get("rpm") is not None, f"{model} does not have rpm"