Usage statistics for the Response, this will correspond to billing. A Realtime API session will maintain a conversation context and append new Items to the Conversation, thus output from previous turns (text and audio tokens) will become the input for later turns.

Properties

Details about the input tokens used in the Response.

input_tokens?: number

The number of input tokens used in the Response, including text and audio tokens.

Details about the output tokens used in the Response.

output_tokens?: number

The number of output tokens sent in the Response, including text and audio tokens.

total_tokens?: number

The total number of tokens in the Response including input and output text and audio tokens.