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
openrouter: added gpt 4.1 model family (#14101)
Mubashir Osmani58ac3ecf8437
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 7a5eebcc097..9abe3dc48fe 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -11991,6 +11991,108 @@"mode": "chat","supports_tool_choice": true},+ "openrouter/openai/gpt-4.1": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 2e-06,+ "output_cost_per_token": 8e-06,+ "cache_read_input_token_cost": 5e-07,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },+ "openrouter/openai/gpt-4.1-2025-04-14": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 2e-06,+ "output_cost_per_token": 8e-06,+ "cache_read_input_token_cost": 5e-07,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },+ "openrouter/openai/gpt-4.1-mini": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 4e-07,+ "output_cost_per_token": 1.6e-06,+ "cache_read_input_token_cost": 1e-07,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },+ "openrouter/openai/gpt-4.1-mini-2025-04-14": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 4e-07,+ "output_cost_per_token": 1.6e-06,+ "cache_read_input_token_cost": 1e-07,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },+ "openrouter/openai/gpt-4.1-nano": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 1e-07,+ "output_cost_per_token": 4e-07,+ "cache_read_input_token_cost": 2.5e-08,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },+ "openrouter/openai/gpt-4.1-nano-2025-04-14": {+ "max_tokens": 32768,+ "max_input_tokens": 1047576,+ "max_output_tokens": 32768,+ "input_cost_per_token": 1e-07,+ "output_cost_per_token": 4e-07,+ "cache_read_input_token_cost": 2.5e-08,+ "litellm_provider": "openrouter",+ "mode": "chat",+ "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+ },"openrouter/openai/gpt-5-mini": {"max_tokens": 128000,"max_input_tokens": 400000,