Skip to main content
PATCH
Set RPM / TPM rate limits on a key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
rpmLimit
number | null

Max requests per minute. null or 0 = unlimited.

Example:

60

tpmLimit
number | null

Max tokens per minute. null or 0 = unlimited.

Example:

100000

Response

Updated rate limits

id
string
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

rpmLimit
number | null
required
Example:

60

tpmLimit
number | null
required
Example:

100000