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 - add claude-opus-4-1 on cost map (#13384)
Ishaan Jaff729e1f530a14
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 8281cb424fd..5723e735597 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -296,6 +296,60 @@"supports_system_messages": true,"supports_tool_choice": true},+ "gpt-5-2025-08-07": {+ "max_tokens": 128000,+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 1.25e-06,+ "output_cost_per_token": 1e-05,+ "cache_read_input_token_cost": 1.25e-07,+ "litellm_provider": "openai",+ "mode": "chat",+ "supports_pdf_input": true,+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_response_schema": true,+ "supports_vision": true,+ "supports_prompt_caching": true,+ "supports_system_messages": true,+ "supports_tool_choice": true+ },+ "gpt-5-mini-2025-08-07": {+ "max_tokens": 128000,+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 2.5e-07,+ "output_cost_per_token": 2e-06,+ "cache_read_input_token_cost": 2.5e-08,+ "litellm_provider": "openai",+ "mode": "chat",+ "supports_pdf_input": true,+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_response_schema": true,+ "supports_vision": true,+ "supports_prompt_caching": true,+ "supports_system_messages": true,+ "supports_tool_choice": true+ },+ "gpt-5-nano-2025-08-07": {+ "max_tokens": 128000,+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 5e-08,+ "output_cost_per_token": 4e-07,+ "cache_read_input_token_cost": 5e-09,+ "litellm_provider": "openai",+ "mode": "chat",+ "supports_pdf_input": true,+ "supports_function_calling": true,+ "supports_parallel_function_calling": true,+ "supports_response_schema": true,+ "supports_vision": true,+ "supports_prompt_caching": true,+ "supports_system_messages": true,+ "supports_tool_choice": true+ },"watsonx/ibm/granite-3-8b-instruct": {"max_tokens": 8192,"max_input_tokens": 8192,@@ -5771,6 +5825,32 @@"supports_reasoning": true,"supports_computer_use": true},+ "claude-opus-4-1": {+ "max_tokens": 32000,+ "max_input_tokens": 200000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 1.5e-05,+ "output_cost_per_token": 7.5e-05,+ "search_context_cost_per_query": {+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01,+ "search_context_size_high": 0.01+ },+ "cache_creation_input_token_cost": 1.875e-05,+ "cache_read_input_token_cost": 1.5e-06,+ "litellm_provider": "anthropic",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_reasoning": true,+ "supports_computer_use": true+ },"claude-opus-4-1-20250805": {"max_tokens": 32000,"max_input_tokens": 200000,@@ -17693,5 +17773,136 @@"supports_vision": false,"supports_system_messages": true,"supports_tool_choice": false+ },+ "oci/meta.llama-4-maverick-17b-128e-instruct-fp8": {+ "max_tokens": 512000,+ "max_input_tokens": 512000,+ "max_output_tokens": 4000,+ "input_cost_per_token": 7.2e-07,+ "output_cost_per_token": 7.2e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/meta.llama-4-scout-17b-16e-instruct": {+ "max_tokens": 192000,+ "max_input_tokens": 192000,+ "max_output_tokens": 4000,+ "input_cost_per_token": 7.2e-07,+ "output_cost_per_token": 7.2e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/meta.llama-3.3-70b-instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 4000,+ "input_cost_per_token": 7.2e-07,+ "output_cost_per_token": 7.2e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/meta.llama-3.2-90b-vision-instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 4000,+ "input_cost_per_token": 2.0e-06,+ "output_cost_per_token": 2.0e-06,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/meta.llama-3.1-405b-instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 4000,+ "input_cost_per_token": 1.068e-05,+ "output_cost_per_token": 1.068e-05,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },++ "oci/xai.grok-4": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 3.0e-06,+ "output_cost_per_token": 1.5e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/xai.grok-3": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 3.0e-06,+ "output_cost_per_token": 1.5e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/xai.grok-3-mini": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 3.0e-07,+ "output_cost_per_token": 5.0e-07,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/xai.grok-3-fast": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 5.0e-06,+ "output_cost_per_token": 2.5e-05,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"+ },+ "oci/xai.grok-3-mini-fast": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 6.0e-07,+ "output_cost_per_token": 4.0e-06,+ "litellm_provider": "oci",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing"}}diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex b4ff923c1e2..5723e735597 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -5825,6 +5825,32 @@"supports_reasoning": true,"supports_computer_use": true},+ "claude-opus-4-1": {+ "max_tokens": 32000,+ "max_input_tokens": 200000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 1.5e-05,+ "output_cost_per_token": 7.5e-05,+ "search_context_cost_per_query": {+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01,+ "search_context_size_high": 0.01+ },+ "cache_creation_input_token_cost": 1.875e-05,+ "cache_read_input_token_cost": 1.5e-06,+ "litellm_provider": "anthropic",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_reasoning": true,+ "supports_computer_use": true+ },"claude-opus-4-1-20250805": {"max_tokens": 32000,"max_input_tokens": 200000,