Control-guided Generation
sdnext_controlGenerate images with control-guided pipelines using ControlNet, T2I-Adapter, or IP-Adapter units. Returns generated images and preprocessor output maps for precise structural or style control.
Instructions
Run the control-guided pipeline (SD.Next /sdapi/v1/control) with one or more control units (controlnet / t2i adapter / xs / lite / reference / ip). Returns generated images plus preprocessor output maps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xyz | No | ||
| face | No | ||
| seed | No | Random seed (-1 = random). | |
| steps | No | Sampling steps. | |
| width | No | Image width in pixels. | |
| height | No | Image height in pixels. | |
| n_iter | No | Number of iterations (batches). | |
| prompt | Yes | Positive prompt. Supports <wildcards> and [style:name] syntax. | |
| styles | No | Style names to apply (from sdnext_list_styles). | |
| tiling | No | Use VAE tiling (saves VRAM, may degrade quality). | |
| cfg_end | No | Legacy CFG end step fraction. | |
| subseed | No | Secondary seed (-1 = random). | |
| cfg_true | No | True CFG scale (SD3/Flux style). | |
| hr_scale | No | High-res fix scale factor. | |
| save_dir | No | ||
| vae_type | No | VAE type: "Full" or "Tiled". | |
| cfg_scale | No | Legacy CFG scale (guidance_scale when guidance_name=CFG). | |
| clip_skip | No | CLIP skip value. | |
| enable_hr | No | Enable high-res fix (two-pass generation). | |
| unit_type | No | Request-level default unit type. | |
| batch_size | No | Number of images per iteration. | |
| ip_adapter | No | ||
| cfg_rescale | No | Legacy CFG rescale. | |
| hr_resize_x | No | High-res fix target width. | |
| hr_resize_y | No | High-res fix target height. | |
| hr_upscaler | No | Upscaler for high-res fix. | |
| save_images | No | Save images to disk. | |
| script_args | No | Script arguments, positional order matching script args. | |
| script_name | No | Script to run (from sdnext_list_scripts). | |
| send_images | No | Return base64 images in response (default true). | |
| cfg_adaptive | No | Adaptive CFG (0-1). | |
| sampler_name | No | Sampler name (from sdnext_list_samplers), e.g. "euler_a", "dpmpp_2m_sde". | |
| control_units | Yes | Control units (see sdnext_txt2img control_units). | |
| guidance_name | No | Modular guidance type (e.g. "Default", "CFGZero", "APG"). | |
| guidance_stop | No | Guidance stop step fraction (0-1). | |
| guidance_scale | No | Modular guidance scale (new SD.Next guidance system). | |
| guidance_start | No | Guidance start step fraction (0-1). | |
| hr_sampler_name | No | Sampler for high-res fix ("Same as primary" by default). | |
| negative_prompt | No | Negative prompt. | |
| alwayson_scripts | No | Always-on script args keyed by script name. | |
| do_not_save_grid | No | Do not save grid image. | |
| guidance_rescale | No | Guidance rescale (0-1). | |
| subseed_strength | No | How much to use the subseed (0-1). | |
| seed_resize_from_h | No | Resize from height for seed adjustment (-1 = disabled). | |
| seed_resize_from_w | No | Resize from width for seed adjustment (-1 = disabled). | |
| do_not_save_samples | No | Do not save samples to disk. | |
| sd_model_checkpoint | No | Checkpoint model name or filename to use (from sdnext_list_checkpoints). | |
| hr_second_pass_steps | No | Steps for second pass (0 = full steps). | |
| hr_denoising_strength | No | High-res fix denoising strength (0-1). |