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
| Field | Type | Required | Description |
|---|---|---|---|
error | string | :heavy_check_mark: | Error message describing why the model failed. |
model | string | :heavy_check_mark: | Slug of the analysis model that failed. |
statusCode | number | :heavy_minus_sign: | HTTP status code from the upstream response, when available (e.g. 402, 429). |