Skip to main content

Per Response

Every envelope carries usage: prompt, completion, reasoning, and cached token counts, plus server_tool_use counters when web tools ran. Aggregate them in your own logs.

Per-Model Spend

The developer console at app.trynito.ai shows spend by model, daily totals, and request counts. From code, GET /api/v1/api-key/usage returns the calling key’s usage by day and model (requests, token counts, and charge) for a start and end date, as JSON or with format=csv.

Balance reads

Use GET /api/v1/billing/balance with administrative credentials for the current balance. It does not return request history or total historical spend. For a key’s usage history, use GET /api/v1/api-key/usage.