struct

AI::OpenAI::OpenAIImageUsage

Inherits JSON::Serializable < Struct < Value < Object

Usage information for image generation.

Constructors

new(input_tokens : Int32 | Nil = nil, output_tokens : Int32 | Nil = nil, total_tokens : Int32 | Nil = nil, input_tokens_details : OpenAIImageInputTokensDetails | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input_tokens
Source
input_tokens_details
Source
output_tokens
Source
total_tokens
Source