curl --request POST \
--url https://api.novita.ai/openapi/v1/user/team/check-key-budget-by-cost \
--header 'Authorization: Bearer <API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"member_id": "<string>", "key_id": "<string>", "cost": 10000}'
{
"enough": true
}
Team Budget
Check If API Key Budget Is Sufficient for a Given Cost
POST
/
openapi
/
v1
/
user
/
team
/
check-key-budget-by-cost
curl --request POST \
--url https://api.novita.ai/openapi/v1/user/team/check-key-budget-by-cost \
--header 'Authorization: Bearer <API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"member_id": "<string>", "key_id": "<string>", "cost": 10000}'
{
"enough": true
}
Request Headers
string
requis
Enum:
application/jsonstring
requis
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
string
requis
Sub-user account ID.
string
requis
API Key ID.
int64
requis
Cost to be deducted, in units of 1/10000 USD (e.g., 10000 = $1.00).
Response Parameters
bool
requis
Whether the API Key’s budget is sufficient after deducting the given cost.
curl --request POST \
--url https://api.novita.ai/openapi/v1/user/team/check-key-budget-by-cost \
--header 'Authorization: Bearer <API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"member_id": "<string>", "key_id": "<string>", "cost": 10000}'
{
"enough": true
}
Dernière modification le 15 mai 2026