Skip to content

Provider usage reference

This page is the field-level reference for everything the usage surfaces show. The rules behind the numbers live in the admin reference (Provider usage readers); the shapes below are identical on the web page, the chat row, the API and the MCP tool.

Field Values Meaning
provider anthropic, openai, google, copilot, opencode-go, … The canonical provider key
account an e-mail, a key label, a plan badge or a short id WHICH account the window belongs to
window_type rolling_5h, weekly, monthly, daily The provider’s window, never coerced onto another
scope all, model:<id>, family:<id> The credential’s overall budget, one model’s sub-budget, or one model family’s
reader a declaration name (status_probe, task_boundary, response_headers, …) WHICH reader produced the number
class measured, header, estimate, definition HOW the number was obtained
limit_hit boolean We observed the provider refusing this window
permits_overage boolean The provider bills overage instead of refusing
unit fraction, percent, usd, requests, tokens, … The unit of the absolute pair
fill_pct 0–100 or empty Percent consumed; empty means unknown, never zero
observed_at ISO-8601 When the number was observed at the source
age_seconds integer Seconds since the observation
freshness fresh, aging, stale, closed The age band of the window type, or “the reset passed”
window_open boolean False once the reset has passed
resets_at ISO-8601 or empty The provider’s stated reset, or the one the window definition implies
gate_eligible boolean True only when the ONE gate predicate accepts this reading

Some providers state a CAP per model instead of a consumption. Alibaba Model Studio (Qwen) does: the reader dashscope_model_limits reads GET /api/v1/models/limits with the key and lists every model’s caps under Stated rate limits in the Manage view, grouped per credential. A cap is not a window: it has no fill, no freshness band and no gate meaning, and the view never turns one into a percentage.

Field Values Meaning
model the provider’s model id The model the cap applies to
level account, workspace Shared by the whole provider account, or set for one provider-side workspace
dimension requests, usage, async_queue, async_concurrency What is capped
usage_field total_tokens, … or empty What a usage cap counts
limit_value integer The cap
period_seconds 1, 6, 60, … or empty The period of a rate; empty for the two asynchronous counts
provider_account_id the Model Studio workspace id The workspace the read named

The read needs the Model Studio workspace id, because the limits endpoint lives on the workspace’s own host. Set it on the Qwen API key under Settings → Access credentials → Console reference…: paste the id (ws- followed by lowercase letters and digits) from the Model Studio console, never the key. The region follows the configured Qwen base URL (Singapore for dashscope-intl, Beijing for dashscope); a base URL of another region is not read. Without the id, or with a subscription token instead of an API key, the reader records unsupported and sends no request.

Window fresh aging stale (not gate input)
5-hour up to 15 min up to 60 min older
Weekly up to 2 h up to 12 h older
Monthly up to 12 h up to 48 h older
Daily up to 1 h up to 6 h older

A closed window is never current, whatever its age.

Setting Default Where
Threshold pair 80,95 (percent, ascending) Instance setting usage_alert_thresholds; the operator API PUT /api/operator/v1/usage-alert-thresholds

The pair is announced once per window occurrence, to the workspace owners and admins, in the in-app inbox and in a linked chat account.

/usage prints one row per reading:

🔹 Anthropic (weekly · account) — 82% · measured · owner@example.com · 5m old · reset in 2d 4h
📐 OpenAI (5-hour · model gpt-5) — 41% · estimate · key-1 · 12m old · reset in 3h

The leading glyph marks what a bare percentage cannot: 🔹 measured, 📐 estimate, ⛔ limit hit, ◻ a reading that is not current, · anything else.

/usage refresh asks for one audited read and prints the outcome per credential.

A Read-tier tool of the workspace the session belongs to. It takes no arguments and returns {workspace_id, observed_at, thresholds, windows, readers, rate_limits} — the same fields as the tables above plus the reader health rows. It never returns a secret and never a raw provider response body. It is deliberately not in the Ops rate-limit bucket: a read is not an operation.

Endpoint Returns
GET /api/workspaces/{id}/usage/manage UsageManageView — the windows, the declared readers, the per-credential health, the thresholds in force and the assembly instant
POST /api/workspaces/{id}/usage/refresh {results: [{credential_id, credential_kind, outcome, reader?, appended?, skipped?}]}; outcome is read, unavailable, no_reader, refused or unknown_credential

Both are workspace-admin reads, like the usage page itself.