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