Skip to content

Usage ​

This page summarizes common objects in chat, tool calls, and usage statistics.

Usage Objects ​

FieldDescription
prompt_tokens / input_tokensInput tokens
completion_tokens / output_tokensOutput tokens
total_tokensTotal tokens
Cache-related fieldsMay 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.