尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證This repository contains comprehensive pricing and configuration data for LLMs. It powers cost attribution for 200+ enterprises running 400B+ tokens through Portkey AI Gateway every day.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Accurate pricing for 2,000+ models across 40+ providers. Free API, no auth required.
This repository contains comprehensive pricing and configuration data for LLMs. It powers cost attribution for 200+ enterprises running 400B+ tokens through Portkey AI Gateway every day.
LLM pricing is a mess. Every team building on LLMs ends up maintaining its own spreadsheet — and it's stale by Friday.檢視完整 README ↗This repository contains comprehensive pricing and configuration data for LLMs. It powers cost attribution for 200+ enterprises running 400B+ tokens through Portkey AI Gateway every day.
LLM pricing is a mess. Every team building on LLMs ends up maintaining its own spreadsheet — and it's stale by Friday.
gpt-5, gpt-5.2-pro-2025-12-11, o1, o3-mini are all different models with different pricesWe built this as an open, community-maintained database to solve that problem.
🔓 Free API. No authentication required.
curl https://configs.portkey.ai/pricing/{provider}.json
# Examples
curl https://configs.portkey.ai/pricing/bedrock.json
curl https://configs.portkey.ai/pricing/openai.json
curl https://configs.portkey.ai/pricing/anthropic.json
curl https://api.portkey.ai/model-configs/pricing/{provider}/{model}
# Examples
curl https://api.portkey.ai/model-configs/pricing/openai/gpt-5
curl https://api.portkey.ai/model-configs/pricing/anthropic/claude-sonnet-4-5-20250514
curl https://api.portkey.ai/model-configs/pricing/google/gemini-3.0-pro
📖 Full API Documentation — Response schema, model configuration endpoints, and more.
⚠️ Prices are in cents per token, not dollars.
| JSON | Per 1K | Per 1M |
|---|---|---|
0.003 | $0.03 | $30 |
0.00025 | $0.0025 | $2.50 |
1 | $10 | $10,000 |
const costDollars = (tokens * price) / 100;
{
"model-name": {
"pricing_config": {
"pay_as_you_go": {
"request_token": { "price": 0.00025 },
"response_token": { "price": 0.001 },
"cache_write_input_token": { "price": 0 },
"cache_read_input_token": { "price": 0.000125 },
"additional_units": {
"web_search": { "price": 1 }
}
},
"currency": "USD"
}
}
}
| Field | Description |
|---|---|
request_token | Input |
response_token | Output |
cache_write_input_token | Cache write |
cache_read_input_token | Cache read |
request_audio_token | Audio input |
response_audio_token | Audio output |
image | Image gen (by quality/size) |
additional_units | Provider-specific (see below) |
| Unit | Providers | Price (¢) |
|---|---|---|
web_search | openai, azure-openai, azure-ai, google, vertex-ai, perplexity-ai | 0.5 - 3.5 |
file_search | openai, azure-openai, azure-ai | 0.25 |
search | google, vertex-ai | 1.4 - 3.5 |
thinking_token | google, vertex-ai | 0.00004 - 0.0012 |
image_token | google, vertex-ai | 0.003 |
image_1k | 3.9 | |
megapixels | together-ai | 0.0027 - 0.08 |
video_seconds | vertex-ai | 10 - 50 |
video_duration_seconds_720_1280 | openai, azure-openai | 10 - 30 |
video_duration_seconds_1280_720 | openai, azure-openai | 10 - 30 |
video_duration_seconds_1024_1792 | openai, azure-openai | 50 |
video_duration_seconds_1792_1024 | openai, azure-openai | 50 |
request_audio_token | openai, azure-openai | 0 - 0.6 |
response_audio_token | openai, azure-openai | 0 - 1.5 |
routing_units | azure-openai | 0.000014 |
input_image | vertex-ai | 0.01 |
input_video_essential | vertex-ai | 0.05 |
input_video_standard | vertex-ai | 0.1 |
input_video_plus | vertex-ai | 0.2 |
| Unit | Price (¢) |
|---|---|
web_search_low_context | 0.5 - 0.6 |
web_search_medium_context | 0.8 - 1.0 |
web_search_high_context | 1.2 - 1.4 |
// OpenAI (gpt-5, o3, o4-mini)
"additional_units": {
"web_search": { "price": 1 },
"file_search": { "price": 0.25 }
}
// Google (gemini-3.0-pro)
"additional_units": {
"thinking_token": { "price": 0.001 },
"web_search": { "price": 3.5 }
}
// OpenAI Sora
"additional_units": {
"video_duration_seconds_720_1280": { "price": 10 }
}
// Together AI (image models)
"additional_units": {
"megapixels": { "price": 0.05 }
}
batch_config)Batch API pricing is defined in a separate batch_config section at the same level as pay_as_you_go. Prices are specified as exact values matching the provider's published batch pricing.
| Field | Description |
|---|---|
request_token | Batch API input price |
response_token | Batch API output price |
cache_read_input_token | Batch API cache read price |
Schema:
{
"pricing_config": {
"pay_as_you_go": {
"request_token": { "price": 0.00025 },
"response_token": { "price": 0.001 }
},
"batch_config": {
"request_token": { "price": 0.000125 },
"response_token": { "price": 0.0005 }
}
}
}
Notes:
Supported Providers: OpenAI, Anthropic, Google (Vertex AI)
The easiest way to contribute is to pick an issue with the good first issue tag 💪.
pricing/{provider}.jsonRemember: Prices are in cents per token: $0.03/1K → 0.003
AI21, Anthropic, Anyscale, Azure AI, Azure OpenAI, AWS Bedrock, Cerebras, Cohere, Dashscope, Deepbricks, DeepInfra, DeepSeek, Fireworks AI, GitHub, Google, Groq, Inference.net, Jina, Lambda, Lemonfox AI, Mistral AI, MonsterAPI, Nebius, Nomic, Novita AI, OpenAI, OpenRouter, Oracle, PaLM, Perplexity AI, Predibase, Reka AI, Sagemaker, Segmind, Stability AI, Together AI, Vertex AI, Workers AI, X.AI, Zhipu
Join our growing community around the world, for help, ideas, and discussions on AI.