Skip to main content
POST
Add a virtual key

Authorizations

Authorization
string
header
required

A ForceAI virtual key or the master key, sent as Authorization: Bearer <key>.

Body

application/json
key_alias
string
models
string[]

Allow-list of models this key may call.

max_budget
number
budget_duration
string
Example:

"30d"

rpm_limit
integer
tpm_limit
integer
duration
string

Key lifetime.

Example:

"90d"

Response

The generated key

key
string
key_alias
string
models
string[]
max_budget
number
rpm_limit
integer
expires
string<date-time>