OpenAIResponsesInputTokensDetails

@Serializable
data class OpenAIResponsesInputTokensDetails(val cachedTokens: Int = 0, val cacheWriteTokens: Int? = null)

Breakdown of input tokens for a Responses API call.

Constructors

Link copied to clipboard
constructor(cachedTokens: Int = 0, cacheWriteTokens: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "cached_tokens")
val cachedTokens: Int

Number of tokens read from the prompt cache.

Link copied to clipboard
@SerialName(value = "cache_write_tokens")
val cacheWriteTokens: Int?

Number of tokens written to the prompt cache.