Skip to main content
POST
Create Api Key

Headers

authorization
string | null

Body

application/json
name
string | null

Label for the key. At most 255 characters.

Maximum string length: 255
expires_in_days
integer | null

Days until the key expires. Omit or 0 for a key that never expires.

Required range: 0 <= x <= 36500
scopes
string[] | null
budget_usd
number | null

Lifetime spend cap in USD. Omit for no cap.

Required range: 0 <= x <= 999999
allowed_face_ids
string[] | null
allowed_llm_models
string[] | null

Response

Successful Response

key
string
required
id
string
required
name
string | null
required
created_at
string<date-time>
required
expires_at
string<date-time> | null
required
key_prefix
string
required
budget_usd
number | null
required
spent_usd
number
required
allowed_face_ids
string[] | null
required
allowed_llm_models
string[] | null
required