> ## 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.

# CreateKeysResponse

API key created successfully

## Example Usage

```typescript theme={null}
import { CreateKeysResponse } from "@openrouter/sdk/models/operations";

let value: CreateKeysResponse = {
  data: {
    byokUsage: 0,
    byokUsageDaily: 0,
    byokUsageMonthly: 0,
    byokUsageWeekly: 0,
    createdAt: "2025-08-24T10:30:00Z",
    creatorUserId: "user_2dHFtVWx2n56w6HkM0000000000",
    disabled: false,
    hash: "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943",
    includeByokInLimit: true,
    label: "My New API Key",
    limit: 50,
    limitRemaining: 50,
    limitReset: "monthly",
    name: "My New API Key",
    updatedAt: null,
    usage: 0,
    usageDaily: 0,
    usageMonthly: 0,
    usageWeekly: 0,
    workspaceId: "0df9e665-d932-5740-b2c7-b52af166bc11",
  },
  key:
    "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",
};
```

## Fields

| Field  | Type                                                                    | Required             | Description                                 | Example                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------ | ----------------------------------------------------------------------- | -------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data` | [operations.CreateKeysData](../../models/operations/createkeysdata.mdx) | :heavy\_check\_mark: | The created API key information             | \{<br />"byok\_usage": 17.38,<br />"byok\_usage\_daily": 17.38,<br />"byok\_usage\_monthly": 17.38,<br />"byok\_usage\_weekly": 17.38,<br />"created\_at": "2025-08-24T10:30:00Z",<br />"creator\_user\_id": "user\_2dHFtVWx2n56w6HkM0000000000",<br />"disabled": false,<br />"expires\_at": "2027-12-31T23:59:59Z",<br />"hash": "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943",<br />"include\_byok\_in\_limit": false,<br />"label": "sk-or-v1-0e6...1c96",<br />"limit": 100,<br />"limit\_remaining": 74.5,<br />"limit\_reset": "monthly",<br />"name": "My Production Key",<br />"updated\_at": "2025-08-24T15:45:00Z",<br />"usage": 25.5,<br />"usage\_daily": 25.5,<br />"usage\_monthly": 25.5,<br />"usage\_weekly": 25.5,<br />"workspace\_id": "0df9e665-d932-5740-b2c7-b52af166bc11"<br />} |
| `key`  | *string*                                                                | :heavy\_check\_mark: | The actual API key string (only shown once) | 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
