Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Legacy rate limit information about a key. Will always return -1.
:warning: DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { RateLimit } from "@openrouter/sdk/models/operations";

let value: RateLimit = {
  interval: "1h",
  note: "This field is deprecated and safe to ignore.",
  requests: 1000,
};

Fields

FieldTypeRequiredDescriptionExample
intervalstring:heavy_check_mark:Rate limit interval1h
notestring:heavy_check_mark:Note about the rate limitThis field is deprecated and safe to ignore.
requestsnumber:heavy_check_mark:Number of requests allowed per interval1000