OpenAIImageGenToolUsage

@Serializable
data class OpenAIImageGenToolUsage(val inputTokens: Int, val outputTokens: Int, val totalTokens: Int, val cachedTokens: Int? = null)

Token usage of the image generation tool.

Constructors

Link copied to clipboard
constructor(inputTokens: Int, outputTokens: Int, totalTokens: Int, cachedTokens: Int? = null)

Properties

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

Number of tokens read from cache.

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

Number of input tokens.

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

Number of output tokens.

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

Total number of tokens (input + output).