Count of output (or completion) tokens. Sum of all output token types.
Total token count. Sum of input_tokens + output_tokens.
Optionalinput_cost?: undefined | numberThe cost of the input tokens.
Optionalinput_cost_details?: undefined | Record<string, unknown>The cost details of the input tokens.
Optionalinput_token_details?: undefined | InputTokenDetailsBreakdown of input token counts.
Does not need to sum to full input token count. Does not need to have all keys.
Optionaloutput_cost?: undefined | numberThe cost of the output tokens.
Optionaloutput_cost_details?: undefined | Record<string, unknown>The cost details of the output tokens.
Optionaloutput_token_details?: undefined | OutputTokenDetailsBreakdown of output token counts.
Does not need to sum to full output token count. Does not need to have all keys.
Optionaltotal_cost?: undefined | numberThe total cost of the tokens.
Count of input (or prompt) tokens. Sum of all input token types.