Usage
This page summarizes common objects in chat, tool calls, and usage statistics.
Usage Objects
| Field | Description |
|---|---|
prompt_tokens / input_tokens | Input tokens |
completion_tokens / output_tokens | Output tokens |
total_tokens | Total tokens |
| Cache-related fields | May include cache read / cache creation when supported by the upstream provider |
Usage fields are determined by the model and channel. Platform billing may also take multipliers, groups, subscriptions, and cache hits into account.
Billing Troubleshooting
When unexpected charges occur, compare the request time, token names, model, channel, input tokens, output tokens, and cache fields against the console logs. Different channels may return different field names and use different cache accounting methods, so the final cost cannot be inferred from total_tokens alone.
