TextToImageRequestParams class
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
TextToImageRequestParams({int width = 512, int height = 512, required List<TextPrompt> textPrompts, int cfgScale = 7, ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none, Sampler? sampler, int samples = 1, int seed = 0, int steps = 50, required StylePreset stylePreset})
-
-
TextToImageRequestParams.fromJson(Map<String, dynamic> json)
-
factory
Properties
-
cfgScale
↔ int
-
How strictly the diffusion process adheres to the prompt text
(higher values keep your image closer to your prompt)
getter/setter pair
-
clipGuidancePreset
↔ ClipGuidancePreset
-
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ int
-
Height of the image in pixels. Must be in increments of 64 and pass the following validation:
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sampler
↔ Sampler?
-
Which sampler to use for the diffusion process.
If this value is omitted we'll automatically select an
appropriate sampler for you.
getter/setter pair
-
samples
↔ int
-
Number of images to generate
getter/setter pair
-
seed
↔ int
-
Random noise seed (omit this option or use 0 for a random seed)
getter/setter pair
-
steps
↔ int
-
Number of diffusion steps to run
getter/setter pair
-
stylePreset
↔ StylePreset
-
Pass in a style preset to guide the image model towards a
particular style. This list of style presets is subject to change.
getter/setter pair
-
textPrompts
↔ List<TextPrompt>
-
getter/setter pair
-
width
↔ int
-
Width of the image in pixels. Must be in increments of 64 and pass the following validation:
getter/setter pair