Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Partitioning strategy for sorting: “model” (default) groups endpoints by model before sorting (fallback models remain fallbacks), “none” sorts all endpoints together regardless of model.

Example Usage

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

let value: Partition = "model";

// Open enum: unrecognized values are captured as Unrecognized<string>

Values

"model" | "none" | Unrecognized<string>