Pathパラメータを指定して、対応するパスのモデル価格を取得します
Request
APIエンドポイントパス(未指定の場合、すべての価格を返します)
Example:/chat/completions
Example:Bearer {{YOUR_API_KEY}}
Request samples
curl --location --request GET 'https://api.302.ai/dashboard/prices?path=/chat/completions&lang=zh' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO'
Responses
application/json {
"code": 0,
"msg": "success",
"data": [
{
"name": "gpt-4o-search-preview",
"tag": "OpenAI模型",
"pricing": {
"input": 2.5,
"output": 10
},
"pricing_prefix": "",
"pricing_suffix": "1M tokens",
"description": "4o搜索版"
},
{
"name": "gpt-4o-mini-search-preview",
"tag": "OpenAI模型",
"pricing": {
"input": 0.15,
"output": 0.6
},
"pricing_prefix": "",
"pricing_suffix": "1M tokens",
"description": "4o mini搜索版"
}]
}
Modified at 2025-05-14 10:40:22