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 requestBody: {
5 name: "My New API Key",
6 },
7};

Fields

FieldTypeRequiredDescriptionExample
httpRefererstringThe app identifier should be your app’s URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
appTitlestringThe app display name allows you to customize how your app appears in OpenRouter’s dashboard.
appCategoriesstringComma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.
requestBodyoperations.CreateKeysRequestBody✔️N/A{"name": "My New API Key","limit": 50,"limit_reset": "monthly","include_byok_in_limit": true,"expires_at": "2027-12-31T23:59:59Z"}