ModalityTokenCount

@Serializable
data class ModalityTokenCount(val modality: MediaModality? = null, val tokenCount: Int? = null)

A breakdown of token usage by modality.

Constructors

Link copied to clipboard
constructor(modality: MediaModality? = null, tokenCount: Int? = null)

Properties

Link copied to clipboard
val modality: MediaModality? = null

The modality this token count applies to.

Link copied to clipboard
val tokenCount: Int? = null

The number of tokens counted for this modality.