TextToImageRequestBody constructor

TextToImageRequestBody({
  1. int height = 512,
  2. int width = 512,
  3. List<TextPrompt> textPrompts = const [],
  4. num cfgScale = 7,
  5. ClipGuidancePreset? clipGuidancePreset,
  6. Sampler? sampler,
  7. int samples = 1,
  8. int seed = 0,
  9. int steps = 50,
  10. StylePreset? stylePreset,
  11. 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,
});