OpenAI::ImageEditPartialImageEvent
Inherits JSON::Serializable < Reference < Object
Emitted when a partial image is available during image editing streaming.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ImageEditPartialImageEventType = ImageEditPartialImageEventType::ImageEditPartialImage, b64_json : String = "", created_at : Int64 = 0, size : ImageEditPartialImageEventSize = ImageEditPartialImageEventSize::N1024X1024, quality : ImageEditPartialImageEventQuality = ImageEditPartialImageEventQuality::Low, background : ImageEditPartialImageEventBackground = ImageEditPartialImageEventBackground::Transparent, output_format : ImageEditPartialImageEventOutputFormat = ImageEditPartialImageEventOutputFormat::Png, partial_image_index : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
b64_json=(b64_json : String)
Base64-encoded partial image data, suitable for rendering as an image.
background=(background : ImageEditPartialImageEventBackground)
The background setting for the requested edited image.
output_format=(output_format : ImageEditPartialImageEventOutputFormat)
The output format for the requested edited image.
partial_image_index=(partial_image_index : Int64)
0-based index for the partial image (streaming).
quality=(quality : ImageEditPartialImageEventQuality)
The quality setting for the requested edited image.
type_value=(type_value : ImageEditPartialImageEventType)
The type of the event. Always image_edit.partial_image.