ImageCreateRequest class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

ImageCreateRequest({required String prompt, ImageSize size = ImageSize.size256x256, int? n, ResponseFormat responseFormat = ResponseFormat.url, String? user})
ImageCreateRequest.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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