# Check If API Key Budget Is Sufficient for a Given Cost - Documentation

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/budget-check-key-enough-by-cost

# Check If API Key Budget Is Sufficient for a Given Cost

POST

/

openapi

/

v1

/

user

/

team

/

check-key-budget-by-cost

Try it

```
curl --request POST \
--url https://api.novita.ai/openapi/v1/user/team/check-key-budget-by-cost \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{"member_id": "", "key_id": "", "cost": 10000}'
```

200

```
{
"enough": true
}
```

##

[​](#request-headers)

Request Headers

[​](#param-content-type)

Content-Type

string

required

Enum: `application/json`

[​](#param-authorization)

Authorization

string

required

Bearer authentication format, for example: Bearer {{API Key}}.

##

[​](#request-body)

Request Body

[​](#param-member-id)

member_id

string

required

Sub-user account ID.

[​](#param-key-id)

key_id

string

required

API Key ID.

[​](#param-cost)

cost

int64

required

Cost to be deducted, in units of 1/10000 USD (e.g., 10000 = $1.00).

##

[​](#response-parameters)

Response Parameters

[​](#param-enough)

enough

bool

required

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 ' \
--header 'Content-Type: application/json' \
--data '{"member_id": "", "key_id": "", "cost": 10000}'
```

200

```
{
"enough": true
}
```

Last modified on April 21, 2026
