Get Quota
Return your tokens of this UTC month: how many you may spend (quota), how many your Completions spent or hold (used), how many are left (left), and when the count starts again (refills_at). The API checks each request's Hold against these numbers. A Hold larger than left gets 429 budget_exceeded, unless the API first lowers max_tokens to fit: POST /v1/completions does, and so does a Job request that leaves max_tokens out. With group_by=client, the answer also splits this month's Completions by client label: the X-Title header of the request that sent them, else the first product of its User-Agent. The route asks no Inference and costs no tokens.
bearerAuthorizationBearer <token>An API key: Authorization: Bearer sk-acs-..., or a key of the old platform, acs-bm-.... A User makes and revokes keys in the App.
group_by?"client"client adds clients: this month's Completions by client label.
"client"Quota
application/json- response
object*"quota""quota"quota*integerThe tokens that the User may spend each UTC month.
used*integerThe tokens that this month's Completions spent or hold.
left*integerThe tokens left this month: quota less used, and 0 once used reaches quota. A request whose Hold is larger does not fit.
refills_at*integerWhen the next month starts, and the count with it, in Unix seconds (UTC).
clients?array<>Only with group_by=client: this UTC month's Completions by client label, as the App's Usage page counts them. The 100 labels whose Completions used the most tokens, most first. A running Completion counts its tokens when it ends.
curl -X GET 'https://api.staging.infra.acsresearch.org/v1/quota' \ -H 'Authorization: Bearer <API_KEY>'{ "object": "quota", "quota": 0, "used": 0, "left": 0, "refills_at": 0, "clients": [ { "client": "string", "completions": 0, "prompt_tokens": 0, "completion_tokens": 0 } ]}Get Model Status GET
Say whether the model's next request most likely starts at once (`warm`), or which stage its start has reached (`boot`). The API answers from what it saw and asks no Inference, so the route never starts a GPU.
Tokenize POST
vLLM: turn a text into the model's token ids with the tokenizer that POST /v1/completions counts with, and count them. With `return_token_strs`, also each token's text. The API asks no Inference, so the route costs no tokens and never starts a GPU.