v1

latestOpenAPI 3.0.1MIT2026-07-26236440.2 KB

Create Proxy Key

Create a new proxy key with specified permissions and limits

post/auth/proxy/create

Request body

namestring required

Name of the proxy key

expires_atinteger required

Expiration timestamp in seconds (-1 for no expiration)

allocated_ammountnumber required

Allocated credit amount

model_whiteliststring[]

List of allowed models (empty for all models)

ip_whiteliststring[]

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

Example request

{
  "name": "My API Key",
  "expires_at": 1735689600,
  "allocated_ammount": 10,
  "model_whitelist": [
    "gpt-4o",
    "claude-3-5-sonnet-20241022"
  ],
  "ip_whitelist": [
    "192.168.1.0/24",
    "203.0.113.42"
  ]
}

Response

Proxy key created successfully

namestring required

Name of the proxy key

expires_atinteger required

Expiration timestamp (-1 for no expiration)

allocated_ammountnumber required

Allocated credit amount

model_whiteliststring[]

List of allowed models

ip_whiteliststring[]

List of allowed IP addresses or CIDR blocks

used_ammountnumber

Amount of credits used

is_activeboolean

Whether the proxy key is active

keystring

The proxy key value

created_atinteger

Creation timestamp

last_usedinteger

Last usage timestamp