ProviderSort - TypeScript SDK

ProviderSort method reference

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

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
bymodels.ByThe provider sorting strategy (price, throughput, latency)price
partitionmodels.ProviderSortPartitionPartitioning strategy for sorting: “model” (default) groups endpoints by model before sorting (fallback models remain fallbacks), “none” sorts all endpoints together regardless of model.model