allowed_modelsstring[] nullable
Allowed models (null = all models, supports wildcards like "gpt-4*")
budget_limit_centsinteger nullable
budget_period'daily' | 'monthly'
Budget period for spending limits
created_atstring date-time required
expires_atstring date-time nullable
ip_allowliststring[] nullable
IP allowlist in CIDR notation (null = all IPs allowed)
key_prefixstring required
Prefix of the key (for identification without exposing full key)
last_used_atstring date-time nullable
rate_limit_rpminteger nullable
Requests per minute override (null = use global default)
rate_limit_tpminteger nullable
Tokens per minute override (null = use global default)
revoked_atstring date-time nullable
rotated_from_key_idstring uuid nullable
ID of the key this was rotated from (for audit trail)
rotation_grace_untilstring date-time nullable
If set, this key is being rotated out but still valid until this time
scopesstring[] nullable
Permission scopes (null = full access)
Valid scopes: chat, completions, embeddings, images, videos, audio, files, models, admin