Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

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

Values (4)

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.

History

    Definition sourceRegistry docsJSONUse with your agent →