ImageEditRequest class

Annotations
  • @JsonSerializable(includeIfNull: false, createToJson: true, createFactory: false)

Constructors

ImageEditRequest({required Uint8List imageBytes, required String prompt, Uint8List? imageMaskBytes, ImageSize size = ImageSize.size256x256, int? n, ResponseFormat responseFormat = ResponseFormat.url, String? user, String model = "dall-e-2"})

Properties

hashCode int
The hash code for this object.
no setterinherited
imageBytes Uint8List
The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.
getter/setter pair
imageMaskBytes Uint8List?
An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
getter/setter pair
model String
The model to use for image generation.
getter/setter pair
n int?
The number of images to generate. Must be between 1 and 10.
getter/setter pair
prompt String
A text description of the desired image(s). The maximum length is 1000 characters.
getter/setter pair
responseFormat ResponseFormat
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size ImageSize
getter/setter pair
user String?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited