Optional
audio?: undefined | numberAudio tokens.
Optional
document?: undefined | numberDocument tokens. e.g. PDF
Optional
image?: undefined | numberImage (non-video) tokens.
Optional
reasoning?: undefined | numberReasoning 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.
Optional
text?: undefined | numberText tokens. Does not need to be reported, but some models will do so.
Optional
video?: undefined | numberVideo tokens.
Breakdown of output token counts.
Does not need to sum to full output token count. Does not need to have all keys.