FieldDescription
input_tokensNumber of tokens in the prompt/input to the model.
output_tokensNumber of tokens generated by the model as output.
total_tokensTotal tokens used (input + output).
prompt_tokensTokens in the prompt (same as input_tokens in the case of OpenAI).
completion_tokensTokens in the completion (same as output_tokens in the case of OpenAI).
audio_tokensTotal audio tokens (if using audio input/output).
input_audio_tokensAudio tokens in the input.
output_audio_tokensAudio tokens in the output.
cached_tokensTokens served from cache (if caching is used).
cache_write_tokensTokens written to cache.
reasoning_tokensTokens used for reasoning steps (if enabled).
prompt_tokens_detailsDict with detailed breakdown of prompt tokens (used by OpenAI).
completion_tokens_detailsDict with detailed breakdown of completion tokens (used by OpenAI).
additional_metricsAny extra metrics provided by the model/tool (e.g., latency, cost, etc.).
timeTime taken to generate the message (in seconds).
time_to_first_tokenTime until the first token is generated (in seconds).
Note: Not all fields are always present; it depends on the model/tool and the run.