TextToImageRequestBody constructor
TextToImageRequestBody({
- int height = 512,
- int width = 512,
- List<
TextPrompt> textPrompts = const [], - num cfgScale = 7,
- ClipGuidancePreset? clipGuidancePreset,
- Sampler? sampler,
- int samples = 1,
- int seed = 0,
- int steps = 50,
- StylePreset? stylePreset,
- Object? extras,
Returns a new TextToImageRequestBody instance.
Implementation
TextToImageRequestBody({
this.height = 512,
this.width = 512,
this.textPrompts = const [],
this.cfgScale = 7,
this.clipGuidancePreset,
this.sampler,
this.samples = 1,
this.seed = 0,
this.steps = 50,
this.stylePreset,
this.extras,
});