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.
import { Partition } from "@openrouter/sdk/models";let value: Partition = "model";// Open enum: unrecognized values are captured as Unrecognized<string>