Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

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

let value: FailedModel = {
  error: "<value>",
  model: "XTS",
};

Fields

FieldTypeRequiredDescription
errorstring:heavy_check_mark:Error message describing why the model failed.
modelstring:heavy_check_mark:Slug of the analysis model that failed.
statusCodenumber:heavy_minus_sign:HTTP status code from the upstream response, when available (e.g. 402, 429).