The token count for a single response modality.

interface OutputTokensByModality {
    modality?: "audio" | "video" | "image" | "text" | "document";
    tokens?: number;
}

Properties

Properties

modality?: "audio" | "video" | "image" | "text" | "document"

The modality associated with the token count.

tokens?: number

Number of tokens for the modality.