TaskClassificationModel - TypeScript SDK

TaskClassificationModel type definition

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

Example Usage

1import { TaskClassificationModel } from "@openrouter/sdk/models";
2
3let value: TaskClassificationModel = {
4 id: "openai/gpt-4.1-mini",
5 tagTokenShare: 0.75,
6 tagUsageShare: 0.55,
7};

Fields

FieldTypeRequiredDescriptionExample
idstring✔️Model identifier (permaslug).openai/gpt-4.1-mini
tagTokenSharenumber✔️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
tagUsageSharenumber✔️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).0.55