Generation Settings
Model, sampler, steps, CFG, size, presets. Pro · Image generation › Prompt and settings
Model, size, sampling, seed, batch and advanced settings for a generation, with presets.
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add generation-settings
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { GenerationSettings } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
value | GenerationParams | Controlled value; use with onValueChange. | |
defaultValue | Partial<GenerationParams> | Initial settings (uncontrolled); missing keys use the defaults and the first model. | |
onValueChange | (params: GenerationParams) => void | Called with the new value when it changes. | |
models * | readonly CheckpointModel[] | Checkpoints offered by the model picker; the first is used when no model is set. Switching to one with another baseSize rescales width and height, keeping the aspect ratio. | |
samplers | readonly string[] | DEFAULT_SAMPLERS | Options of the Sampler select. |
schedulers | readonly string[] | DEFAULT_SCHEDULERS | Options of the Scheduler select. |
upscalers | readonly string[] | DEFAULT_UPSCALERS | Options of the Upscaler select shown when Hires. fix is on. |
presets | readonly GenerationPreset[] | Saved presets; the menu loads, saves and deletes them. | |
defaultPresets | readonly GenerationPreset[] | [] | Initial presets when uncontrolled. |
onPresetsChange | (presets: GenerationPreset[]) => void | Called with the new presets when it changes. | |
lastSeed | number | Seed of the last finished generation: lets the seed field reuse it. | |
layout | 'full' | 'compact' | 'full' | compact is dense, for narrow sidebars and graph nodes. Both layouts keep their fields at the small control height (32 px), so selects, number fields, size and seed line up. |
defaultAdvancedOpen | boolean | false | Open the Advanced section initially. |
disabled | boolean | false | Disables every control, including the presets menu. |
locale | string | BCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's. | |
labels | Partial<GenerationSettingsLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Prompt Editor — Prompt and negative prompt: weights, LoRA, autocomplete, token count
- Aspect Ratio Picker — Aspect ratio and exact size
- Seed Input — Seed: random, fixed, increment
- LoRA Stack — LoRA stack: strengths, toggles, order, trigger words
- Style Presets — Style cards with previews and weights
- Reference Image Input — Reference image for img2img and ControlNet
- Generation Progress — Steps, ETA, live latent preview, queue
- Image Result Grid — Result gallery with actions and a lightbox
- Image Compare — Before/after comparison: slider, side by side, overlay
- Inpaint Canvas — Inpainting mask and canvas outpainting
- Generation History — Generation history by day, with filters
- Image Adjustments — Color grading: upload, fit and seven filter sliders
Previous: Prompt Editor · Next: Aspect Ratio Picker · All Image generation