Learning resourcesReviewed · OpenRouter

OpenRouter Go SDK: Task Classification Market Share

This OpenRouter Go SDK reference page shows Go developers how to call GetTaskClassifications, which reports the share of sampled, classified OpenRouter requests and tokens in each task type, such as code generation or summarization. It documents the seven-day window, leading models within each task, authentication and request limits; absolute volumes and unclassified traffic are not included.

Researched 15 Nov 2026

In short.

This OpenRouter Go SDK reference page is for Go developers and documents GetTaskClassifications, a call that returns what share of sampled, classified OpenRouter requests and tokens fell into each task type, such as code generation, web search or summarization, over a trailing seven-day window. GetTaskClassifications returns request and token shares by task, leading models within each task, and aggregate shares for four broader categories. Authentication and request limits are documented; pricing, sampling methodology and live behavior remain unknown. No code or API request was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete Classifications documentation page at [https://openrouter.ai/docs/client-sdks/go/sdks/classifications/README.md], including its example, parameters, errors, authentication, rate limits and attribution notice. Linked documentation, repository contents and the rankings site are excluded. No code or API request was executed; compatibility, live availability and data accuracy remain unassessed.

The overview

identity

Classifications is an OpenRouter Go SDK reference page for the GetTaskClassifications operation. Its scope is task classification market-share data, rather than generating model responses. The original page is [https://openrouter.ai/docs/client-sdks/go/sdks/classifications/README.md].

assessment

The page is useful as a compact integration reference: it supplies a Go request example, authentication details, supported window and error types. Its usefulness for analytical decisions depends on accepting relative shares from a classified sample. It provides insufficient statistical detail to establish representativeness.

users

The reference suits Go developers integrating task and model usage figures into dashboards or reports. Beginners receive a basic client example, but will need additional guidance for installing dependencies and processing responses. Analysts needing absolute traffic counts or evidence of model quality will not find those measurements here.

capabilities

GetTaskClassifications reports shares for task classifications such as code generation, web search and summarization. Each classification includes a models array of leading models by request volume, with shares within that classification. Code, Data, Agent and General macro-categories have aggregate shares.

The documented return type is *components.TaskClassificationResponse alongside an error. Listed failures include BadRequestResponseError for 400, UnauthorizedResponseError for 401, TooManyRequestsResponseError for 429, InternalServerResponseError for 500, and APIError for other 4XX or 5XX responses.

Using it

requirements

Calling the operation requires the OpenRouter Go SDK, a context.Context and any valid OpenRouter API key; the same key used for inference is accepted. Access is limited to 30 requests per minute per key and 500 requests per day per account. Supported Go and SDK versions are unspecified.

mechanism

usage_share measures a classification's fraction of classified sampled requests, while token_share measures its fraction of classified sampled token volume. Values range from 0 to 1; for example, 0.2 represents 20% of the corresponding classified sample. The unclassified other bucket is excluded.

Model shares use the classification as their reference group. A model's share within one task therefore has a different denominator from that task's overall share. Absolute volumes are withheld because the underlying data is sampled.

setup

The example reads OPENROUTER_API_KEY from the process environment and passes it through openrouter.WithSecurity when constructing the client. It uses context.Background() for the request. Installation commands and dependency versions are not provided.

The window argument is optional, but the only documented supported value is 7d. The default when omitted is unknown. Optional operations.Option arguments are accepted, although their behavior is not explained on this page.

example

The supplied example calls s.Classifications.GetTaskClassifications(ctx, operations.WindowSevend.ToPointer()). It stops with log.Fatal(err) on an error and checks that the response is non-nil before a placeholder for response handling.

A possible application is displaying seven-day task shares and leading models in a dashboard. This is an illustrative use: the documentation supplies no response payload, completed display logic or executed result.

Assessment & evidence

limitations

Only a trailing seven-day window is documented. Historical queries and other windows are not established. Excluding unclassified traffic limits what the shares describe, and absolute request or token volumes are unavailable.

Sample size, sampling procedure, classification accuracy, uncertainty estimates, refresh frequency and the number of returned models are unspecified. Linked schemas are outside this page, so the full response structure is not established.

reasoning

A high model usage_share indicates frequent use within a classification in the reported sample. It does not establish answer quality, affordability, latency or suitability for a particular workload. These figures describe OpenRouter traffic and do not establish market-wide adoption.

Comparing request share with token share can reveal differences between the two volume measures. The page provides no evidence explaining the causes of those differences.

alternatives

The page names OpenRouter rankings [https://openrouter.ai/rankings] as the attribution destination. It does not establish that site's features or whether it offers equivalent data access. No competing service or alternative integration is documented sufficiently for comparison.

evidence

The documentation supports the operation name, authentication pattern, parameters, share definitions, limits and listed errors. It contains no example output, benchmark, independent accuracy measurement or demonstration of a completed integration. Runtime behavior was not assessed.

Access & freshness

costs

The page states no price or billing terms, so endpoint cost is unknown. Whether requests consume credits or require a funded account is also unknown. The documented request limits do not establish pricing.

rights

For quoted or republished data, the documentation specifies attribution to OpenRouter, its rankings page [https://openrouter.ai/rankings], and the applicable as_of value. This page supplies neither an SDK software license nor broader data redistribution terms; those permissions remain unknown.

freshness

The documentation was captured on 15 November 2026. It provides no publication date, SDK version or release identifier. Its statement that only 7d is currently supported reflects the captured documentation; subsequent changes and current endpoint availability are unknown.

actions

Before adopting the endpoint, confirm pricing and SDK compatibility, then inspect an authorized response for the fields your application needs. Handle the documented errors and request limits. When publishing figures, include OpenRouter attribution and explain that the shares exclude unclassified traffic and come from sampled requests.

Evidence for this report

selected-page.txtselected · checked 2026-11-15