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
Add gpt-5 to OpenRouter cost map
huangyafei1b95940d18a3
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 3742693ce67..4106d904ed2 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -16857,6 +16857,25 @@"supports_reasoning": true,"supports_tool_choice": true},+ "openrouter/openai/gpt-5": {+ "cache_read_input_token_cost": 1.25e-07,+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "openrouter",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_reasoning": true,+ "supports_tool_choice": true+ },"openrouter/openai/gpt-5-mini": {"cache_read_input_token_cost": 2.5e-08,"input_cost_per_token": 2.5e-07,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 3742693ce67..4106d904ed2 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -16857,6 +16857,25 @@"supports_reasoning": true,"supports_tool_choice": true},+ "openrouter/openai/gpt-5": {+ "cache_read_input_token_cost": 1.25e-07,+ "input_cost_per_token": 1.25e-06,+ "litellm_provider": "openrouter",+ "max_input_tokens": 400000,+ "max_output_tokens": 128000,+ "max_tokens": 128000,+ "mode": "chat",+ "output_cost_per_token": 1e-05,+ "supported_modalities": [+ "text",+ "image"+ ],+ "supported_output_modalities": [+ "text"+ ],+ "supports_reasoning": true,+ "supports_tool_choice": true+ },"openrouter/openai/gpt-5-mini": {"cache_read_input_token_cost": 2.5e-08,"input_cost_per_token": 2.5e-07,