Obtain the model price for a specific path by specifying the Path parameter
Request
API endpoint path (if not specified, returns all prices)
Example:/chat/completions
Returns content in the specified language
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-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz'
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:10