PercentileStats - TypeScript SDK

PercentileStats method reference

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

Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.

Example Usage

1import { PercentileStats } from "@openrouter/sdk/models";
2
3let value: PercentileStats = {
4 p50: 25.5,
5 p75: 35.2,
6 p90: 48.7,
7 p99: 85.3,
8};

Fields

FieldTypeRequiredDescriptionExample
p50number✔️Median (50th percentile)25.5
p75number✔️75th percentile35.2
p90number✔️90th percentile48.7
p99number✔️99th percentile85.3