Files
openrouter-python-sdk-retry…/docs/operations/createkeysrequest.md
T
2025-11-13 14:21:27 -05:00

5.8 KiB
Raw Blame History

CreateKeysRequest

Fields

Field Type Required Description Example
name str ✔️ Name for the new API key My New API Key
limit OptionalNullable[float] Optional spending limit for the API key in USD 50
limit_reset OptionalNullable[operations.CreateKeysLimitReset] 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_limit Optional[bool] Whether to include BYOK usage in the limit true
expires_at date Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected 2027-12-31T23:59:59Z