gen_ai.token.modality
DevelopmentGenAI registryenumas of v1.44.0
The modality of the tokens being counted.
When the provider does not break usage down by modality and the modality cannot be reliably determined, instrumentations SHOULD report the tokens under the unknown modality.
Examples
- text
- image
- audio
Values (4)
textText tokens.imageImage tokens.audioAudio tokens.unknownThe modality is not known.
Used by
metrics (5)
- gen_ai.client.inference.usage.cache_read.input_tokens *
- gen_ai.client.inference.usage.cache_write.input_tokens *
- gen_ai.client.inference.usage.input_tokens *
- gen_ai.client.inference.usage.output_tokens *
- gen_ai.client.inference.usage.reasoning.output_tokens *
* required on that signal.