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
Adding openrouter claude-3.7-sonnet (#8826)
fengjiajie07c0d26e6896
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 657ed4952aa..0255a8b8904 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -5583,6 +5583,35 @@"tool_use_system_prompt_tokens": 159,"supports_tool_choice": true},+ "openrouter/anthropic/claude-3.7-sonnet": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "input_cost_per_image": 0.0048,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_tool_choice": true+ },+ "openrouter/anthropic/claude-3.7-sonnet:beta": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "input_cost_per_image": 0.0048,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_tool_choice": true+ },"openrouter/anthropic/claude-3-sonnet": {"max_tokens": 200000,"input_cost_per_token": 0.000003,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 657ed4952aa..0255a8b8904 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -5583,6 +5583,35 @@"tool_use_system_prompt_tokens": 159,"supports_tool_choice": true},+ "openrouter/anthropic/claude-3.7-sonnet": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "input_cost_per_image": 0.0048,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_assistant_prefill": true,+ "supports_tool_choice": true+ },+ "openrouter/anthropic/claude-3.7-sonnet:beta": {+ "max_tokens": 8192,+ "max_input_tokens": 200000,+ "max_output_tokens": 8192,+ "input_cost_per_token": 0.000003,+ "output_cost_per_token": 0.000015,+ "input_cost_per_image": 0.0048,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_vision": true,+ "tool_use_system_prompt_tokens": 159,+ "supports_tool_choice": true+ },"openrouter/anthropic/claude-3-sonnet": {"max_tokens": 200000,"input_cost_per_token": 0.000003,