OpenAI::ImageGenUsage
Inherits JSON::Serializable < Reference < Object
For gpt-image-1 only, the token usage information for the image generation.
Constructors
new(pull : JSON::PullParser)
Sourcenew(input_tokens : Int64 = 0, total_tokens : Int64 = 0, output_tokens : Int64 = 0, input_tokens_details : ImageGenInputUsageDetails = ImageGenInputUsageDetails.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
input_tokens=(input_tokens : Int64)
The number of tokens (images and text) in the input prompt.
input_tokens_details
Sourceinput_tokens_details=(input_tokens_details : ImageGenInputUsageDetails)
Source