class

OpenAI::ImageEditCompletedEvent

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(type_value : ImageEditCompletedEventType = ImageEditCompletedEventType::ImageEditCompleted, b64_json : String = "", created_at : Int64 = 0, size : ImageEditCompletedEventSize = ImageEditCompletedEventSize::N1024X1024, quality : ImageEditCompletedEventQuality = ImageEditCompletedEventQuality::Low, background : ImageEditCompletedEventBackground = ImageEditCompletedEventBackground::Transparent, output_format : ImageEditCompletedEventOutputFormat = ImageEditCompletedEventOutputFormat::Png, usage : ImagesUsage = ImagesUsage.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

b64_json

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

Source
b64_json=(b64_json : String)

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

Source
background

The background setting for the edited image.

Source
background=(background : ImageEditCompletedEventBackground)

The background setting for the edited 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 edited image.

Source
output_format=(output_format : ImageEditCompletedEventOutputFormat)

The output format for the edited image.

Source
quality

The quality setting for the edited image.

Source
quality=(quality : ImageEditCompletedEventQuality)

The quality setting for the edited image.

Source
size

The size of the edited image.

Source
size=(size : ImageEditCompletedEventSize)

The size of the edited image.

Source
type_value

The type of the event. Always image_edit.completed.

Source
type_value=(type_value : ImageEditCompletedEventType)

The type of the event. Always image_edit.completed.

Source
usage
Source
usage=(usage : ImagesUsage)
Source