Gateway Usage Limits

Read own Gateway usage by UTC day

Changed on

The caller's own AI Gateway usage, by model, over the last days UTC calendar days including today (default 30, 1-366): the same report as GET /v1/inference-providers/usage with groupBy=model, scoped to the caller's membership and without organization filter options. Reads raw request logs and retained rollups; cost is the stored approximate cost in integer micro-USD, never repriced. tokenMix lists, per model series, the input (excluding cache), output, cache read and cache write tokens of requests that reported both input and output tokens. models lists the Gateway models the caller can use now, with the listed price from the model's catalog config (USD per 1M tokens) or null when it has none. Any member can read their own usage; no Gateway permission is needed. Requires enabled Gateway management.

get/v1/gateway/usage/me

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

days, string

Response

Own Gateway usage

object required
usage, object required
tokenMix, object[] required
models, object[] required

Changes