ImageRequest class

Request Body to generate image

https://beta.openai.com/docs/api-reference/images/create prompt required A text description of the desired image(s). The maximum length is 1000 characters.

n Defaults to 1 The number of images to generate. Must be between 1 and 10.

size The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.

Constructors

ImageRequest({required String prompt, int? n = 1, String? size = '1024x1024'})

Properties

hashCode int
The hash code for this object.
no setterinherited
n int?
final
prompt String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size String?
final

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.
inherited

Operators

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