Route - TypeScript SDK

Route method reference

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Routing strategy for multiple models: “fallback” (default) uses secondary models as backups, “sort” sorts all endpoints together by routing criteria.

Example Usage

1import { Route } from "@openrouter/sdk/models";
2
3let value: Route = "fallback";

Values

This is an open enum. Unrecognized values will be captured as the Unrecognized<string> branded type.

1"fallback" | "sort" | Unrecognized<string>