CreateKeysRequest - TypeScript SDK

CreateKeysRequest type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { CreateKeysRequest } from "@openrouter/sdk/models/operations";
2
3let value: CreateKeysRequest = {
4 name: "My New API Key",
5};

Fields

FieldTypeRequiredDescriptionExample
namestring✔️Name for the new API keyMy New API Key
limitnumberOptional spending limit for the API key in USD50
limitResetoperations.CreateKeysLimitResetType 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
includeByokInLimitbooleanWhether to include BYOK usage in the limittrue