CompletionTokensDetails

@Serializable
data class CompletionTokensDetails(val reasoningTokens: Int? = null, val audioTokens: Int? = null, val acceptedPredictionTokens: Int? = null, val rejectedPredictionTokens: Int? = null)

Breakdown of generated token usage.

Constructors

Link copied to clipboard
constructor(reasoningTokens: Int? = null, audioTokens: Int? = null, acceptedPredictionTokens: Int? = null, rejectedPredictionTokens: Int? = null)

Properties

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

Predicted tokens accepted in the output.

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

Audio output tokens.

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

Reasoning tokens.

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

Predicted tokens rejected during generation.