ImageCreateRequest class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

ImageCreateRequest({required String prompt, ImageSize size = ImageSize.size256x256, int? n, ImageQuality? quality, ResponseFormat responseFormat = ResponseFormat.url, String? user, String model = "dall-e-2", ImageStyle? style})
ImageCreateRequest.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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
quality ImageQuality?
The quality of the image that will be generated. hd creates images with finer details and greater consistency across the image. This param is only supported for dall-e-3.
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
style ImageStyle?
The style of the generated images. Must be one of vivid or natural. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for dall-e-3.
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