Skip to content

Commit 6a1be47

Browse files
Merge pull request BerriAI#14879 from huangyafei/update_price
Add gpt-5 and gpt-5-codex to OpenRouter cost map
2 parents 79ebb2c + 107c45d commit 6a1be47

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

litellm/model_prices_and_context_window_backup.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16857,6 +16857,44 @@
1685716857
"supports_reasoning": true,
1685816858
"supports_tool_choice": true
1685916859
},
16860+
"openrouter/openai/gpt-5-codex": {
16861+
"cache_read_input_token_cost": 1.25e-07,
16862+
"input_cost_per_token": 1.25e-06,
16863+
"litellm_provider": "openrouter",
16864+
"max_input_tokens": 400000,
16865+
"max_output_tokens": 128000,
16866+
"max_tokens": 128000,
16867+
"mode": "chat",
16868+
"output_cost_per_token": 1e-05,
16869+
"supported_modalities": [
16870+
"text",
16871+
"image"
16872+
],
16873+
"supported_output_modalities": [
16874+
"text"
16875+
],
16876+
"supports_reasoning": true,
16877+
"supports_tool_choice": true
16878+
},
16879+
"openrouter/openai/gpt-5": {
16880+
"cache_read_input_token_cost": 1.25e-07,
16881+
"input_cost_per_token": 1.25e-06,
16882+
"litellm_provider": "openrouter",
16883+
"max_input_tokens": 400000,
16884+
"max_output_tokens": 128000,
16885+
"max_tokens": 128000,
16886+
"mode": "chat",
16887+
"output_cost_per_token": 1e-05,
16888+
"supported_modalities": [
16889+
"text",
16890+
"image"
16891+
],
16892+
"supported_output_modalities": [
16893+
"text"
16894+
],
16895+
"supports_reasoning": true,
16896+
"supports_tool_choice": true
16897+
},
1686016898
"openrouter/openai/gpt-5-mini": {
1686116899
"cache_read_input_token_cost": 2.5e-08,
1686216900
"input_cost_per_token": 2.5e-07,

model_prices_and_context_window.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16857,6 +16857,44 @@
1685716857
"supports_reasoning": true,
1685816858
"supports_tool_choice": true
1685916859
},
16860+
"openrouter/openai/gpt-5-codex": {
16861+
"cache_read_input_token_cost": 1.25e-07,
16862+
"input_cost_per_token": 1.25e-06,
16863+
"litellm_provider": "openrouter",
16864+
"max_input_tokens": 400000,
16865+
"max_output_tokens": 128000,
16866+
"max_tokens": 128000,
16867+
"mode": "chat",
16868+
"output_cost_per_token": 1e-05,
16869+
"supported_modalities": [
16870+
"text",
16871+
"image"
16872+
],
16873+
"supported_output_modalities": [
16874+
"text"
16875+
],
16876+
"supports_reasoning": true,
16877+
"supports_tool_choice": true
16878+
},
16879+
"openrouter/openai/gpt-5": {
16880+
"cache_read_input_token_cost": 1.25e-07,
16881+
"input_cost_per_token": 1.25e-06,
16882+
"litellm_provider": "openrouter",
16883+
"max_input_tokens": 400000,
16884+
"max_output_tokens": 128000,
16885+
"max_tokens": 128000,
16886+
"mode": "chat",
16887+
"output_cost_per_token": 1e-05,
16888+
"supported_modalities": [
16889+
"text",
16890+
"image"
16891+
],
16892+
"supported_output_modalities": [
16893+
"text"
16894+
],
16895+
"supports_reasoning": true,
16896+
"supports_tool_choice": true
16897+
},
1686016898
"openrouter/openai/gpt-5-mini": {
1686116899
"cache_read_input_token_cost": 2.5e-08,
1686216900
"input_cost_per_token": 2.5e-07,

0 commit comments

Comments
 (0)