Skip to main content
Return current-window consumption for a single group, broken down by model. The response only includes models that have usage_limits configured. Rate limits are not surfaced here. Use this endpoint to power per-customer dashboards or to check remaining quota before issuing a workload. This endpoint is the Frontier Gateway equivalent of the legacy per-API-key usage lookup: usage now hangs off the group, and every API key under the group reports against the same counters.

Authentication

string
required
Workspace API key with management scope, passed as Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).

Path parameters

string
required
Internal Baseten ID of the group. Returned as id from Create a group and from List groups.

Response

string
required
The group’s external identifier, the value you passed as metadata.external_entity_id when creating the group.
object
required
Per-model usage entries, keyed by the model slug. Only models that have usage_limits configured on the group’s effective configuration appear here; a group with no configured usage limits returns an empty object.Each value is an array of usage entries, one per configured (type, unit) pair:
  • type (string): TOKEN or REQUEST.
  • unit (string): Window size for the limit. DAY is the only supported value.
  • threshold (integer): Configured quota for the window.
  • current_usage (integer or null): Total consumption in the current window. null until the first request lands.
  • reset_at (string or null): UTC timestamp when the current window resets. null until the first request lands.

Errors