byokUsage | number | ✔️ | Total external BYOK usage (in USD) for the API key. This is the inference cost OpenRouter records for requests served through your own provider keys, computed from token counts and configured prices, not the amount your provider invoices you. It is not included in the usage* fields. | 17.38 |
byokUsageDaily | number | ✔️ | External BYOK usage (in USD) for the current UTC day | 17.38 |
byokUsageMonthly | number | ✔️ | External BYOK usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. | 17.38 |
byokUsageWeekly | number | ✔️ | External BYOK usage (in USD) for the current UTC week (Monday-Sunday) | 17.38 |
createdAt | string | ✔️ | ISO 8601 timestamp of when the API key was created | 2025-08-24T10:30:00Z |
creatorUserId | string | ✔️ | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user’s own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
disabled | boolean | ✔️ | Whether the API key is disabled | false |
expiresAt | Date | ➖ | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
externalUser | string | ✔️ | Partner’s end-user identifier used for attribution. | null |
hash | string | ✔️ | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
includeByokInLimit | boolean | ✔️ | Whether external BYOK usage counts toward this key’s limit. When false, only credit usage is checked against limit. | false |
label | string | ✔️ | Human-readable label for the API key | sk-or-v1-0e6…1c96 |
lastUsedAt | Date | ✔️ | ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025 | 2026-09-15T15:45:00Z |
limit | number | ✔️ | Spending limit for the API key in USD | 100 |
limitRemaining | number | ✔️ | Remaining spending limit in USD. Credit usage always counts toward limit; BYOK usage counts only when include_byok_in_limit is true. | 74.5 |
limitReset | string | ✔️ | Type of limit reset for the API key | monthly |
name | string | ✔️ | Name of the API key | My Production Key |
updatedAt | string | ✔️ | ISO 8601 timestamp of when the API key was last updated | 2025-08-24T15:45:00Z |
usage | number | ✔️ | Total OpenRouter credit usage (in USD) for the API key: the spend allocated to this key, including requests funded from a credit pool. It is not a debit total for the account balance. It excludes external BYOK inference cost, which is reported separately in byok_usage, but a BYOK platform fee, where charged, is credit spend and is included here. | 25.5 |
usageDaily | number | ✔️ | OpenRouter credit usage (in USD) for the current UTC day. Excludes external BYOK inference cost. | 25.5 |
usageMonthly | number | ✔️ | OpenRouter credit usage (in USD) for the current UTC calendar month, resetting at 00:00 UTC on the 1st. Excludes external BYOK inference cost. | 25.5 |
usageWeekly | number | ✔️ | OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday). Excludes external BYOK inference cost. | 25.5 |
workspaceId | string | ✔️ | The workspace ID this API key belongs to. | 0df9e665-d932-5740-b2c7-b52af166bc11 |