Wire shape of a per-modality usage block on an OpenAI-protocol usage payload (input_token_details / output_token_details). Every field is optional: providers report different subsets, and xAI and OpenAI Live may omit the blocks entirely.
input_token_details
output_token_details
Optional
The cached tokens by modality; audio_tokens here is a subset of the block's audio_tokens.
audio_tokens
Wire shape of a per-modality usage block on an OpenAI-protocol usage payload (
input_token_details/output_token_details). Every field is optional: providers report different subsets, and xAI and OpenAI Live may omit the blocks entirely.