Create an API key

Generate a new API key with ACL, QPM, and TPM limits.

curl https://api.example.com/keys \
  -X POST \
  -H "Authorization: Bearer $MANAGEMENT_KEY" \
  -d '{"name":"MyKey","acl":["*"],"qpm":100,"tpm":500}'

List API keys

Retrieve all keys associated with your project.

curl https://api.example.com/keys \
  -H "Authorization: Bearer $MANAGEMENT_KEY"

Update an API key

Change limits or name for an existing API key.

curl -X PUT https://api.example.com/keys/key-id \
  -H "Authorization: Bearer $MANAGEMENT_KEY" \
  -d '{"qpm":200}'

Delete an API key

Remove an existing key by its ID.

curl -X DELETE https://api.example.com/keys/key-id \
  -H "Authorization: Bearer $MANAGEMENT_KEY"

Check API key propagation

Validate whether key changes are live across services.

curl https://api.example.com/keys/key-id/validate \
  -H "Authorization: Bearer $MANAGEMENT_KEY"

List models

Retrieve a list of all available models you can use.

curl https://api.example.com/models \
  -H "Authorization: Bearer $MANAGEMENT_KEY"

List endpoint ACLs

List all valid ACL values for use with key creation.

curl https://api.example.com/acl \
  -H "Authorization: Bearer $MANAGEMENT_KEY"