AudioUsage

@Serializable
data class AudioUsage(val type: String? = null, val inputTokens: Int? = null, val outputTokens: Int? = null, val totalTokens: Int? = null, val seconds: Double? = null, val inputTokenDetails: AudioInputTokenDetails? = null)

Usage for token-based or duration-based audio billing.

Constructors

Link copied to clipboard
constructor(type: String? = null, inputTokens: Int? = null, outputTokens: Int? = null, totalTokens: Int? = null, seconds: Double? = null, inputTokenDetails: AudioInputTokenDetails? = null)

Properties

Link copied to clipboard
@SerialName(value = "input_token_details")
val inputTokenDetails: AudioInputTokenDetails? = null

Breakdown of input tokens by modality.

Link copied to clipboard
@SerialName(value = "input_tokens")
val inputTokens: Int? = null

Billed input tokens.

Link copied to clipboard
@SerialName(value = "output_tokens")
val outputTokens: Int? = null

Generated output tokens.

Link copied to clipboard
val seconds: Double? = null

Audio duration billed in seconds.

Link copied to clipboard
@SerialName(value = "total_tokens")
val totalTokens: Int? = null

Total billed tokens.

Link copied to clipboard
val type: String? = null

Usage variant, such as tokens or duration.