CreateImageRequest class abstract

CreateImageRequest

Properties:

  • prompt - A text description of the desired image(s). The maximum length is 1000 characters.
  • n - 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.
  • responseFormat - The format in which the generated images are returned. Must be one of url or b64_json.
  • user - A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Annotations
  • @BuiltValue()

Constructors

CreateImageRequest([void updates(CreateImageRequestBuilder b)])
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.
no setter
prompt String
A text description of the desired image(s). The maximum length is 1000 characters.
no setter
responseFormat CreateImageRequestResponseFormatEnum?
The format in which the generated images are returned. Must be one of url or b64_json.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size CreateImageRequestSizeEnum?
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
no setter
user String?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(CreateImageRequestBuilder)) CreateImageRequest
Rebuilds the instance.
inherited
toBuilder() CreateImageRequestBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<CreateImageRequest>
no setter