ImagenGenerationConfig class final

Configuration options for image generation.

Annotations
  • @experimental

Constructors

ImagenGenerationConfig.new({int? numberOfImages, String? negativePrompt, ImagenAspectRatio? aspectRatio, ImagenFormat? imageFormat, bool? addWatermark})

Properties

addWatermark bool?
Whether to add an invisible watermark to generated images.
final
aspectRatio ImagenAspectRatio?
The aspect ratio for the image. The default value is "1:1".
final
hashCode int
The hash code for this object.
no setterinherited
imageFormat ImagenFormat?
The image format of the generated images.
final
negativePrompt String?
A description of what to discourage in the generated images.
final
numberOfImages int?
The number of images to generate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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