Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
The provider sorting strategy (price, throughput, latency)

Example Usage

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

let value: ProviderSortConfig = {};

Fields

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