OpenAI::ImageGenCompletedEvent
Inherits JSON::Serializable < Reference < Object
Emitted when image generation has completed and the final image is available.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ImageGenCompletedEventType = ImageGenCompletedEventType::ImageGenerationCompleted, b64_json : String = "", created_at : Int64 = 0, size : ImageGenCompletedEventSize = ImageGenCompletedEventSize::N1024X1024, quality : ImageGenCompletedEventQuality = ImageGenCompletedEventQuality::Low, background : ImageGenCompletedEventBackground = ImageGenCompletedEventBackground::Transparent, output_format : ImageGenCompletedEventOutputFormat = ImageGenCompletedEventOutputFormat::Png, usage : ImagesUsage = ImagesUsage.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
background=(background : ImageGenCompletedEventBackground)
The background setting for the generated image.
output_format=(output_format : ImageGenCompletedEventOutputFormat)
The output format for the generated image.
quality=(quality : ImageGenCompletedEventQuality)
The quality setting for the generated image.
type_value=(type_value : ImageGenCompletedEventType)
The type of the event. Always image_generation.completed.
usage
Sourceusage=(usage : ImagesUsage)
Source