By - TypeScript SDK

By type definition

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

The provider sorting strategy (price, throughput, latency)

Example Usage

1import { By } from "@openrouter/sdk/models";
2
3let value: By = "price";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"price" | "throughput" | "latency" | "exacto" | Unrecognized<string>