RealtimeResponseUsage interface
model interface RealtimeResponseUsage
Properties
| input_tokens | The number of tokens supplied as input when generating this response. |
| input_token_details | The breakdown of input tokens by content type and cache usage. Cached tokens are included in the input token count. |
| output_tokens | The number of tokens generated as output for this response. |
| output_token_details | The breakdown of generated output tokens by content type. |
| total_tokens | The combined number of input and output tokens for this response. |
Property Details
input_tokens
The number of tokens supplied as input when generating this response.
input_tokens?: number
Property Value
number
input_token_details
The breakdown of input tokens by content type and cache usage. Cached tokens are included in the input token count.
input_token_details?: RealtimeResponseUsageInputTokenDetails
Property Value
output_tokens
The number of tokens generated as output for this response.
output_tokens?: number
Property Value
number
output_token_details
The breakdown of generated output tokens by content type.
output_token_details?: RealtimeResponseUsageOutputTokenDetails
Property Value
total_tokens
The combined number of input and output tokens for this response.
total_tokens?: number
Property Value
number