class

OpenAI::ImageGenCompletedEvent

Inherits JSON::Serializable < Reference < Object

Emitted when image generation has completed and the final image is available.

Constructors

new(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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

b64_json

Base64-encoded image data, suitable for rendering as an image.

Source
b64_json=(b64_json : String)

Base64-encoded image data, suitable for rendering as an image.

Source
background

The background setting for the generated image.

Source
background=(background : ImageGenCompletedEventBackground)

The background setting for the generated image.

Source
created_at

The Unix timestamp when the event was created.

Source
created_at=(created_at : Int64)

The Unix timestamp when the event was created.

Source
output_format

The output format for the generated image.

Source
output_format=(output_format : ImageGenCompletedEventOutputFormat)

The output format for the generated image.

Source
quality

The quality setting for the generated image.

Source
quality=(quality : ImageGenCompletedEventQuality)

The quality setting for the generated image.

Source
size

The size of the generated image.

Source
size=(size : ImageGenCompletedEventSize)

The size of the generated image.

Source
type_value

The type of the event. Always image_generation.completed.

Source
type_value=(type_value : ImageGenCompletedEventType)

The type of the event. Always image_generation.completed.

Source
usage
Source
usage=(usage : ImagesUsage)
Source