管理接口令牌管理
获取模型定价
🔑 需要令牌认证(TokenAuth)
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Header Parameters
Authorization*string
用户 API 令牌,格式 Bearer sk-xxxxxx。
Response Body
application/json
application/json
application/json
curl -X GET "https://tokease.cn/v1/pricing" \ -H "Authorization: Bearer sk-xxxxxx"{
"success": true,
"currency": "CNY",
"data": [
{
"model": "string",
"description": "string",
"tags": "string",
"quota_type": 0,
"user_specified": true,
"channels": [
{
"channel_id": 0,
"channel_no": "string",
"route_slug": "string",
"request_model": "string",
"supplier_alias": "string",
"supplier_type": "string",
"quota_type": 0,
"has_time_pricing": true,
"periods": [
{
"label": "string",
"active": true,
"name": "string",
"weekdays": 0,
"start_minute": 0,
"end_minute": 0,
"items": [
{
"key": "string",
"unit": "string",
"platform": 0,
"official": 0,
"discount_percent": 0,
"discount_label": "string",
"cost": 0,
"cost_discount_percent": 0,
"cost_discount_label": "string",
"resolution": "string",
"lane": "string",
"has_audio": true,
"up_to_tokens": 0
}
]
}
]
}
]
}
]
}{
"error": {
"message": "无效的令牌 (request id: ...)",
"type": "authentication_error",
"code": "string"
}
}{
"error": {
"message": "string",
"type": "permission_error",
"code": "string"
}
}这篇文档对您有帮助吗?