Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
namestr:heavy_check_mark:Name for the new API keyMy New API Key
limitOptionalNullable[float]:heavy_minus_sign:Optional spending limit for the API key in USD50
limit_resetOptionalNullable[operations.CreateKeysLimitReset]:heavy_minus_sign:Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.monthly
include_byok_in_limitOptional[bool]:heavy_minus_sign:Whether to include BYOK usage in the limittrue
expires_atdate:heavy_minus_sign:Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected2027-12-31T23:59:59Z