Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Error information returned from the API

Example Usage

import { ResponsesErrorField } from "@openrouter/sdk/models";

let value: ResponsesErrorField = {
  code: "rate_limit_exceeded",
  message: "Rate limit exceeded. Please try again later.",
};

Fields

FieldTypeRequiredDescription
codemodels.CodeEnum:heavy_check_mark:N/A
messagestring:heavy_check_mark:N/A