For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
1
import { TaskClassificationModel } from "@openrouter/sdk/models";
2
3
let value: TaskClassificationModel = {
4
id: "openai/gpt-4.1-mini",
5
tagTokenShare: 0.75,
6
tagUsageShare: 0.55,
7
};
Fields
Field
Type
Required
Description
Example
id
string
✔️
Model identifier (permaslug).
openai/gpt-4.1-mini
tagTokenShare
number
✔️
Fraction of this classification’s sampled token volume attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).
0.75
tagUsageShare
number
✔️
Fraction of this classification’s sampled requests attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).