OutputTokenDetails: {
    audio?: number;
    reasoning?: number;
}

Breakdown of output token counts.

Does not need to sum to full output token count. Does not need to have all keys.

Type declaration

  • Optionalaudio?: number

    Audio output tokens

  • Optionalreasoning?: number

    Reasoning output tokens.

    Tokens generated by the model in a chain of thought process (i.e. by OpenAI's o1 models) that are not returned as part of model output.