Skip to content

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]

Correct GPT-5 token limits and price (#13423)

Emerson Gomesaea5af216537
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 5b9d96bd6dc..d5137e1507f 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -614,7 +614,7 @@
},
"gpt-5": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,
@@ -646,7 +646,7 @@
},
"gpt-5-mini": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 2.5e-07,
"output_cost_per_token": 2e-06,
@@ -678,7 +678,7 @@
},
"gpt-5-nano": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 5e-08,
"output_cost_per_token": 4e-07,
@@ -709,14 +709,12 @@
"supports_reasoning": true
},
"gpt-5-chat": {
- "max_tokens": 32768,
- "max_input_tokens": 1047576,
- "max_output_tokens": 32768,
- "input_cost_per_token": 5e-06,
- "output_cost_per_token": 2e-05,
- "input_cost_per_token_batches": 2.5e-06,
- "output_cost_per_token_batches": 1e-05,
- "cache_read_input_token_cost": 1.25e-06,
+ "max_tokens": 128000,
+ "max_input_tokens": 272000,
+ "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",
"supported_endpoints": [
@@ -739,11 +737,12 @@
"supports_prompt_caching": true,
"supports_system_messages": true,
"supports_tool_choice": true,
- "supports_native_streaming": true
+ "supports_native_streaming": true,
+ "supports_reasoning": true
},
"gpt-5-chat-latest": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,
@@ -775,7 +774,7 @@
},
"gpt-5-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 2720000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,
@@ -807,7 +806,7 @@
},
"gpt-5-mini-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 2.5e-07,
"output_cost_per_token": 2e-06,
@@ -839,7 +838,7 @@
},
"gpt-5-nano-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 5e-08,
"output_cost_per_token": 4e-07,
@@ -2266,7 +2265,7 @@
},
"azure/gpt-5": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,
@@ -2298,7 +2297,7 @@
},
"azure/gpt-5-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,
@@ -2330,7 +2329,7 @@
},
"azure/gpt-5-mini": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 2.5e-07,
"output_cost_per_token": 2e-06,
@@ -2362,7 +2361,7 @@
},
"azure/gpt-5-mini-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 2.5e-07,
"output_cost_per_token": 2e-06,
@@ -2394,7 +2393,7 @@
},
"azure/gpt-5-nano-2025-08-07": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 5e-08,
"output_cost_per_token": 4e-07,
@@ -2426,7 +2425,7 @@
},
"azure/gpt-5-nano": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 272000,
"max_output_tokens": 128000,
"input_cost_per_token": 5e-08,
"output_cost_per_token": 4e-07,
@@ -2457,14 +2456,12 @@
"supports_reasoning": true
},
"azure/gpt-5-chat": {
- "max_tokens": 32768,
- "max_input_tokens": 1047576,
- "max_output_tokens": 32768,
- "input_cost_per_token": 5e-06,
- "output_cost_per_token": 2e-05,
- "input_cost_per_token_batches": 2.5e-06,
- "output_cost_per_token_batches": 1e-05,
- "cache_read_input_token_cost": 1.25e-06,
+ "max_tokens": 128000,
+ "max_input_tokens": 128000,
+ "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": "azure",
"mode": "chat",
"supported_endpoints": [
@@ -2487,11 +2484,13 @@
"supports_prompt_caching": true,
"supports_system_messages": true,
"supports_tool_choice": true,
- "supports_native_streaming": true
+ "supports_native_streaming": true,
+ "supports_reasoning": true,
+ "source": "https://azure.microsoft.com/en-us/blog/gpt-5-in-azure-ai-foundry-the-future-of-ai-apps-and-agents-starts-here/"
},
"azure/gpt-5-chat-latest": {
"max_tokens": 128000,
- "max_input_tokens": 400000,
+ "max_input_tokens": 128000,
"max_output_tokens": 128000,
"input_cost_per_token": 1.25e-06,
"output_cost_per_token": 1e-05,