Optional
input_The cost of the input tokens.
Optional
input_The cost details of the input tokens.
Optional
input_Breakdown of input token counts.
Does not need to sum to full input token count. Does not need to have all keys.
Count of input (or prompt) tokens. Sum of all input token types.
Optional
output_The cost of the output tokens.
Optional
output_The cost details of the output tokens.
Optional
output_Breakdown of output token counts.
Does not need to sum to full output token count. Does not need to have all keys.
Count of output (or completion) tokens. Sum of all output token types.
Optional
total_The total cost of the tokens.
Total token count. Sum of input_tokens + output_tokens.
Usage metadata for a message, such as token counts.