ImageGenerationRequest class

Image generation request configuration

Constructors

ImageGenerationRequest.new({required String prompt, String? model, String? negativePrompt, String? size, int? count, int? seed, int? steps, double? guidanceScale, bool? enhancePrompt, String? style, String? quality, String? responseFormat, String? user})
const
ImageGenerationRequest.fromJson(Map<String, dynamic> json)
factory

Properties

count int?
Number of images to generate
final
enhancePrompt bool?
Whether to enhance the prompt (for compatible providers)
final
guidanceScale double?
Guidance scale for generation (for compatible providers)
final
hashCode int
The hash code for this object.
no setterinherited
model String?
Model to use for generation
final
negativePrompt String?
Negative prompt to avoid certain elements
final
prompt String
Text prompt for image generation
final
quality String?
Quality setting (for compatible providers)
final
responseFormat String?
Response format (url or b64_json)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
Random seed for reproducible results
final
size String?
Image dimensions (e.g., '1024x1024', '512x512')
final
steps int?
Number of inference steps (for compatible providers)
final
style String?
Image style (for compatible providers)
final
user String?
User identifier for monitoring and abuse detection
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