> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # CreateKeysRequest ## Fields | Field | Type | Required | Description | Example | | -------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | | `CreatorUserID` | optionalnullable.OptionalNullable\[`string`] | :heavy\_minus\_sign: | Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. | user\_2dHFtVWx2n56w6HkM0000000000 | | `ExpiresAt` | optionalnullable.OptionalNullable\[[time.Time](https://pkg.go.dev/time#Time)] | :heavy\_minus\_sign: | Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z | | `External` | [\*operations.External](../../models/operations/external.mdx) | :heavy\_minus\_sign: | Optional partner-defined identity associated with the created API key. | | | `IncludeBYOKInLimit` | `*bool` | :heavy\_minus\_sign: | Whether to include BYOK usage in the limit | true | | `Limit` | optionalnullable.OptionalNullable\[`float64`] | :heavy\_minus\_sign: | Optional spending limit for the API key in USD | 50 | | `LimitReset` | optionalnullable.OptionalNullable\[[operations.CreateKeysLimitReset](../../models/operations/createkeyslimitreset.mdx)] | :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 | | `Name` | `string` | :heavy\_check\_mark: | Name for the new API key | My New API Key | | `WorkspaceID` | `*string` | :heavy\_minus\_sign: | The workspace to create the API key in. Defaults to the default workspace if not provided. | 0df9e665-d932-5740-b2c7-b52af166bc11 |