Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pricing_table.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
| Model Name | Prompt Cost (USD) per 1M tokens | Completion Cost (USD) per 1M tokens | Max Prompt Tokens | Max Output Tokens |
|:----------------------------------------------------------------------|:----------------------------------|:--------------------------------------|:--------------------|--------------------:|
| gpt-4 | $30.00 | $60.00 | 8192 | 4096 |
| gpt-4o | $ 5.00 | $15.00 | 128,000 | 4096 |
| gpt-4o | $2.5 | $10.00 | 128,000 | 16384 |
| gpt-4o-audio-preview | $2.5 | $10.00 | 128,000 | 16384 |
| gpt-4o-audio-preview-2024-10-01 | $2.5 | $10.00 | 128,000 | 16384 |
| gpt-4o-mini | $0.15 | $0.6 | 128,000 | 16384 |
Expand Down Expand Up @@ -398,18 +398,18 @@
| bedrock/eu-west-3/mistral.mistral-large-2402-v1:0 | $10.4 | $31.2 | 32,000 | 8191 |
| anthropic.claude-3-sonnet-20240229-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| anthropic.claude-3-5-sonnet-20240620-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 8192 |
| anthropic.claude-3-5-sonnet-latest-v2:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| anthropic.claude-3-haiku-20240307-v1:0 | $0.25 | $1.25 | 200,000 | 4096 |
| anthropic.claude-3-opus-20240229-v1:0 | $15.00 | $75.00 | 200,000 | 4096 |
| us.anthropic.claude-3-sonnet-20240229-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| us.anthropic.claude-3-5-sonnet-20240620-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| us.anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| us.anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 8192 |
| us.anthropic.claude-3-haiku-20240307-v1:0 | $0.25 | $1.25 | 200,000 | 4096 |
| us.anthropic.claude-3-opus-20240229-v1:0 | $15.00 | $75.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-sonnet-20240229-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-5-sonnet-20240620-v1:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-5-sonnet-20241022-v2:0 | $ 3.00 | $15.00 | 200,000 | 8192 |
| eu.anthropic.claude-3-haiku-20240307-v1:0 | $0.25 | $1.25 | 200,000 | 4096 |
| eu.anthropic.claude-3-opus-20240229-v1:0 | $15.00 | $75.00 | 200,000 | 4096 |
| anthropic.claude-v1 | $ 8.00 | $24.00 | 100,000 | 8191 |
Expand Down Expand Up @@ -664,10 +664,11 @@
| azure_ai/Phi-3-medium-4k-instruct | $0.17 | $0.68 | 4,096 | 4096 |
| azure_ai/Phi-3-medium-128k-instruct | $0.17 | $0.68 | 128,000 | 4096 |
| xai/grok-beta | $ 5.00 | $15.00 | 131,072 | 131072 |
| claude-3-5-haiku-20241022 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| vertex_ai/claude-3-5-haiku@20241022 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| claude-3-5-haiku-20241022 | $ 1.00 | $ 5.00 | 200,000 | 8192 |
| vertex_ai/claude-3-5-haiku@20241022 | $ 1.00 | $ 5.00 | 200,000 | 8192 |
| openrouter/anthropic/claude-3-5-haiku | $ 1.00 | $ 5.00 | nan | nan |
| openrouter/anthropic/claude-3-5-haiku-20241022 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| openrouter/anthropic/claude-3-5-haiku-20241022 | $ 1.00 | $ 5.00 | 200,000 | 8192 |
| anthropic.claude-3-5-haiku-20241022-v1:0 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| us.anthropic.claude-3-5-haiku-20241022-v1:0 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-5-haiku-20241022-v1:0 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| eu.anthropic.claude-3-5-haiku-20241022-v1:0 | $ 1.00 | $ 5.00 | 200,000 | 4096 |
| stability.sd3-large-v1:0 | -- | -- | 77 | nan |
47 changes: 30 additions & 17 deletions tokencost/model_prices.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
"supports_prompt_caching": true
},
"gpt-4o": {
"max_tokens": 4096,
"max_tokens": 16384,
"max_input_tokens": 128000,
"max_output_tokens": 4096,
"input_cost_per_token": 5e-06,
"output_cost_per_token": 1.5e-05,
"max_output_tokens": 16384,
"input_cost_per_token": 2.5e-06,
"output_cost_per_token": 1e-05,
"cache_read_input_token_cost": 1.25e-06,
"litellm_provider": "openai",
"mode": "chat",
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_response_schema": true,
"supports_vision": true,
"supports_prompt_caching": true
},
Expand Down Expand Up @@ -4351,9 +4352,9 @@
"supports_vision": true
},
"anthropic.claude-3-5-sonnet-20241022-v2:0": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 3e-06,
"output_cost_per_token": 1.5e-05,
"litellm_provider": "bedrock",
Expand Down Expand Up @@ -4418,9 +4419,9 @@
"supports_vision": true
},
"us.anthropic.claude-3-5-sonnet-20241022-v2:0": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 3e-06,
"output_cost_per_token": 1.5e-05,
"litellm_provider": "bedrock",
Expand Down Expand Up @@ -4474,9 +4475,9 @@
"supports_vision": true
},
"eu.anthropic.claude-3-5-sonnet-20241022-v2:0": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 3e-06,
"output_cost_per_token": 1.5e-05,
"litellm_provider": "bedrock",
Expand Down Expand Up @@ -6862,22 +6863,25 @@
"supports_vision": true
},
"claude-3-5-haiku-20241022": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 1e-06,
"output_cost_per_token": 5e-06,
"cache_creation_input_token_cost": 1.25e-06,
"cache_read_input_token_cost": 1e-07,
"litellm_provider": "anthropic",
"mode": "chat",
"supports_function_calling": true,
"tool_use_system_prompt_tokens": 264,
"supports_assistant_prefill": true,
"supports_prompt_caching": true
"supports_prompt_caching": true,
"supports_pdf_input": true
},
"vertex_ai/claude-3-5-haiku@20241022": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 1e-06,
"output_cost_per_token": 5e-06,
"litellm_provider": "vertex_ai-anthropic_models",
Expand All @@ -6894,9 +6898,9 @@
"supports_function_calling": true
},
"openrouter/anthropic/claude-3-5-haiku-20241022": {
"max_tokens": 4096,
"max_tokens": 8192,
"max_input_tokens": 200000,
"max_output_tokens": 4096,
"max_output_tokens": 8192,
"input_cost_per_token": 1e-06,
"output_cost_per_token": 5e-06,
"litellm_provider": "openrouter",
Expand All @@ -6912,6 +6916,7 @@
"output_cost_per_token": 5e-06,
"litellm_provider": "bedrock",
"mode": "chat",
"supports_assistant_prefill": true,
"supports_function_calling": true
},
"us.anthropic.claude-3-5-haiku-20241022-v1:0": {
Expand All @@ -6922,6 +6927,7 @@
"output_cost_per_token": 5e-06,
"litellm_provider": "bedrock",
"mode": "chat",
"supports_assistant_prefill": true,
"supports_function_calling": true
},
"eu.anthropic.claude-3-5-haiku-20241022-v1:0": {
Expand All @@ -6933,5 +6939,12 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true
},
"stability.sd3-large-v1:0": {
"max_tokens": 77,
"max_input_tokens": 77,
"output_cost_per_image": 0.08,
"litellm_provider": "bedrock",
"mode": "image_generation"
}
}
Loading