Skip to main content
POST
Tier key caps: Free 10, Basic 15, Standard 30, Pro 50, Enterprise 100. llocated_ammount max is ,000. expires_at is a Unix timestamp, or -1 for no expiry. Empty model_whitelist / ip_whitelist means unrestricted.

Authorizations

Authorization
string
header
required

Enter your API key (starts with 'ek-')

Body

application/json
name
string
required

Name of the proxy key

Maximum string length: 25
Example:

"My API Key"

expires_at
integer
required

Expiration timestamp in seconds (-1 for no expiration)

Example:

1735689600

allocated_ammount
number
required

Allocated credit amount

Required range: x >= 0
Example:

10

model_whitelist
string[]

List of allowed models (empty for all models)

Example:
ip_whitelist
string[]

List of allowed IP addresses or CIDR blocks (empty for all IPs)

Example:

Response

201 - application/json

Proxy key created successfully

name
string
required

Name of the proxy key

Maximum string length: 25
expires_at
integer
required

Expiration timestamp (-1 for no expiration)

allocated_ammount
number
required

Allocated credit amount

Required range: x >= 0
model_whitelist
string[]

List of allowed models

ip_whitelist
string[]

List of allowed IP addresses or CIDR blocks

used_ammount
number
read-only

Amount of credits used

is_active
boolean
read-only

Whether the proxy key is active

key
string
read-only

The proxy key value

created_at
integer
read-only

Creation timestamp

last_used
integer
read-only

Last usage timestamp