ImageVariationRequest class

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

Constructors

ImageVariationRequest({required Uint8List imageBytes, 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 use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
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
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