In short.
This OpenRouter Python SDK reference is for developers and analysts studying AI task usage, with results limited to classified samples of OpenRouter traffic over a seven-day window. The get_task_classifications operation reports relative request and token shares, leading models within classifications, and aggregate shares for Code, Data, Agent and General categories. Absolute volumes are unavailable, and the unclassified other bucket is excluded. The page supports understanding the metrics and constructing an initial call; installation requirements, pricing, the full response schema and runtime behavior remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete documentation page at [https://openrouter.ai/docs/client-sdks/python/sdks/classifications/README.md], including its sampling explanation, example, parameters, errors, request limits and republication notice. Linked response types, window and retry definitions, the documentation index and the rankings page are outside the supplied evidence. No installation, code execution, API request, payload inspection or runtime verification occurred.
The overview
Identity
The resource is OpenRouter's Python SDK reference for the Classifications interface at [https://openrouter.ai/docs/client-sdks/python/sdks/classifications/README.md]. It documents one operation, get_task_classifications, for retrieving task-classification market-share data from OpenRouter traffic.
It is a reference for an analytics feature. The documented operation retrieves usage statistics rather than generating content.
Assessment
The page is useful for understanding what the endpoint measures and forming a basic Python SDK request. Its strongest detail is the distinction between request share and token share, including their sampling and classification limits.
It cannot establish model quality, total traffic volume or adoption across the wider AI market. A complete integration also needs response-schema and installation details that are absent from this page. Nothing was executed.
Users
Developers building usage dashboards and analysts examining the relative popularity of AI tasks can use the documented metrics. Writers reporting these statistics also receive an explicit attribution requirement.
Beginners will need familiarity with Python imports, environment variables and API keys. Experienced developers will find the method name, optional parameters and error types, but not the complete returned-data structure.
Capabilities
The operation returns shares for task classifications such as code generation, web search and summarization. Each classification includes usage_share for requests and token_share for token volume, expressed as fractions between zero and one.
A models array lists the leading models by request volume within each classification, with their within-classification request and token shares. Classifications are also grouped into Code, Data, Agent and General categories with aggregate shares. Only the trailing seven-day window is documented as supported.
Using it
Requirements
Authentication requires a valid OpenRouter API key; the page says the same key used for inference is accepted. Requests are limited to 30 per minute per key and 500 per day per account.
The example requires a Python environment containing the openrouter package. Supported Python versions, package versions, installation commands and any account funding requirements are not stated.
Mechanism
The service summarizes sampled OpenRouter traffic by task classification over a trailing window. Request shares use classified sampled requests as their denominator; token shares use classified sampled token volume. The unclassified other bucket is excluded, and absolute volumes are withheld because the underlying data is sampled.
Model shares are calculated within their task classification, so they should not be interpreted as shares of all OpenRouter traffic. Sampling methods, sample sizes, classification accuracy and uncertainty estimates are not described.
Setup
The example imports OpenRouter from openrouter, reads OPENROUTER_API_KEY from the environment and creates the client in a context manager. It then accesses the classifications interface.
Optional client metadata includes http_referer for the application's URL, x_open_router_title for its display name and x_open_router_categories for comma-separated application categories. The retries parameter can override client retry behavior, but the configuration structure and defaults are not included.
Example
The documented call is res = open_router.classifications.get_task_classifications(window="7d"), followed by print(res). It illustrates requesting the trailing seven-day breakdown through an authenticated client.
The return type is named TaskClassificationResponse, but its definition is on a linked page. No response payload is shown here, so exact field nesting and a working parsing example cannot be established from this reference alone. The example was not run.
Assessment & evidence
Limitations
The statistics describe classified sampled OpenRouter traffic. They exclude unclassified activity, expose no absolute counts and support only a trailing seven-day window. Coverage of the broader AI market and statistical representativeness are not established.
Documented errors include 400 Bad Request, 401 Unauthorized, 429 Too Many Requests, 500 Internal Server Error and a default error type for other 4XX or 5XX responses. Actual availability, latency, response contents and error handling were not assessed.
Reasoning
Request share measures how frequently a task or model appears in the relevant classified sample, while token share measures its relative token volume. A difference between these shares can indicate different token volumes per request, but does not by itself establish why that difference occurs.
Popularity is not a performance benchmark. These statistics can inform questions about usage patterns, but cannot determine which model is most accurate, cheapest or best suited to a particular workload.
Alternatives
No alternative SDKs, analytics services or datasets are compared. OpenRouter's rankings page is named as the attribution destination, but its features are not described here.
Users needing absolute counts, different time windows or wider market coverage would need another data source. This page does not identify or assess one.
Evidence
The evidence is the complete captured Classifications reference at [https://openrouter.ai/docs/client-sdks/python/sdks/classifications/README.md]. It includes the operation description, Python example, parameter table, response-type reference, error table, request limits and attribution notice.
These are documentation claims. No executed requests, returned datasets, benchmarks or independent validation are available.
Access & freshness
Costs
Endpoint pricing is unknown. The page gives authentication requirements and request limits but does not state whether calls are free, billable or dependent on account credit.
Acceptance of an inference API key does not establish that inference pricing applies to this analytics operation.
Rights
When republishing or quoting the data, the page requires attribution naming OpenRouter, its rankings page [https://openrouter.ai/rankings] and the applicable as_of value. Publishers should follow the source's attribution wording.
The page does not provide an explicit licence for redistributing the documentation, SDK code or returned data. The attribution notice alone does not establish broader reuse permissions.
Freshness
The documentation was captured on 15 November 2026 at 11:08:33 UTC. It states that 7d is currently the only supported window, but supplies no SDK version, publication date or change history.
The capture date does not establish the freshness of any returned dataset. Live behavior and changes after capture are unknown.
Actions
Before integrating, establish the package installation requirements, inspect the linked TaskClassificationResponse definition and confirm endpoint charges. Use a valid API key and plan requests within both the per-key minute limit and the per-account daily limit.
For published charts, label the figures as shares of classified sampled OpenRouter traffic, distinguish request share from token share, identify the seven-day window and include the required dated attribution. Confirm permitted reuse before redistributing captured material or data.
