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
Merge branch 'main' into litellm_opus_4.6_thinking
Sameer Kankutebfd21b5e004e
diff --cc litellm/model_prices_and_context_window_backup.jsonindex f9a11c4159c,04ad5ed0c1c..757c291e352--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@@ -7663,42 -7836,16 +7836,47 @@@"supports_vision": true,"tool_use_system_prompt_tokens": 346},+ "us/claude-opus-4-6": {+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1.1e-06,+ "input_cost_per_token": 5.5e-06,+ "input_cost_per_token_above_200k_tokens": 1.1e-05,+ "litellm_provider": "anthropic",+ "max_input_tokens": 200000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "output_cost_per_token_above_200k_tokens": 4.125e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },+ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 346+ },"claude-opus-4-6-20260205": {+ "cache_creation_input_token_cost": 6.25e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.25e-05,+ "cache_creation_input_token_cost_above_1hr": 1e-05,+ "cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1e-06,"input_cost_per_token": 5e-06,- "output_cost_per_token": 2.5e-05,+ "input_cost_per_token_above_200k_tokens": 1e-05,"litellm_provider": "anthropic",- "max_input_tokens": 200000,+ "max_input_tokens": 1000000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",@@@ -7719,39 -7865,8 +7896,39 @@@"supports_response_schema": true,"supports_tool_choice": true,"supports_vision": true,- "tool_use_system_prompt_tokens": 159+ "tool_use_system_prompt_tokens": 346},+ "us/claude-opus-4-6-20260205": {+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1.1e-06,+ "input_cost_per_token": 5.5e-06,+ "input_cost_per_token_above_200k_tokens": 1.1e-05,+ "litellm_provider": "anthropic",+ "max_input_tokens": 200000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "output_cost_per_token_above_200k_tokens": 4.125e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },+ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 346+ },"claude-sonnet-4-20250514": {"deprecation_date": "2026-05-14","cache_creation_input_token_cost": 3.75e-06,diff --cc model_prices_and_context_window.jsonindex f9a11c4159c,a3e1edb4ae5..eee30b36ab3--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@@ -7663,81 -7813,23 +7813,85 @@@"supports_vision": true,"tool_use_system_prompt_tokens": 346},+ "us/claude-opus-4-6": {+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1.1e-06,+ "input_cost_per_token": 5.5e-06,+ "input_cost_per_token_above_200k_tokens": 1.1e-05,+ "litellm_provider": "anthropic",+ "max_input_tokens": 200000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "output_cost_per_token_above_200k_tokens": 4.125e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },+ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 346+ },"claude-opus-4-6-20260205": {+ "cache_creation_input_token_cost": 6.25e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.25e-05,+ "cache_creation_input_token_cost_above_1hr": 1e-05,+ "cache_read_input_token_cost": 5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1e-06,"input_cost_per_token": 5e-06,- "output_cost_per_token": 2.5e-05,+ "input_cost_per_token_above_200k_tokens": 1e-05,"litellm_provider": "anthropic",- "max_input_tokens": 200000,+ "max_input_tokens": 1000000,"max_output_tokens": 128000,"max_tokens": 128000,"mode": "chat",+ "output_cost_per_token": 2.5e-05,+ "output_cost_per_token_above_200k_tokens": 3.75e-05,"search_context_cost_per_query": {"search_context_size_high": 0.01,+ "search_context_size_low": 0.01,+ "search_context_size_medium": 0.01+ },- "cache_creation_input_token_cost": 6.25e-06,- "cache_creation_input_token_cost_above_1hr": 1e-05,- "cache_read_input_token_cost": 5e-07,- "supports_assistant_prefill": true,++ "supports_assistant_prefill": false,+ "supports_computer_use": true,+ "supports_function_calling": true,+ "supports_pdf_input": true,+ "supports_prompt_caching": true,+ "supports_reasoning": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,- "tool_use_system_prompt_tokens": 159++ "tool_use_system_prompt_tokens": 346+ },+ "us/claude-opus-4-6-20260205": {+ "cache_creation_input_token_cost": 6.875e-06,+ "cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,+ "cache_creation_input_token_cost_above_1hr": 1.1e-05,+ "cache_read_input_token_cost": 5.5e-07,+ "cache_read_input_token_cost_above_200k_tokens": 1.1e-06,+ "input_cost_per_token": 5.5e-06,+ "input_cost_per_token_above_200k_tokens": 1.1e-05,+ "litellm_provider": "anthropic",+ "max_input_tokens": 200000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 2.75e-05,+ "output_cost_per_token_above_200k_tokens": 4.125e-05,+ "search_context_cost_per_query": {+ "search_context_size_high": 0.01,"search_context_size_low": 0.01,"search_context_size_medium": 0.01},