| sd_generate_multiref | R Documentation |
Runs generation with one or more reference images, as used by edit /
reference-conditioned models (e.g. Qwen-Image, FLUX control/edit variants).
The references are passed straight through to the underlying
generate_image C-API (ref_images); the active model decides how
to use them, so this only has effect on models that support reference
conditioning.
sd_generate_multiref(
ctx,
prompt,
refs,
negative_prompt = "",
width = 512L,
height = 512L,
auto_resize_ref_image = TRUE,
increase_ref_index = FALSE,
sample_method = SAMPLE_METHOD$EULER,
scheduler = SCHEDULER$DISCRETE,
sample_steps = 20L,
cfg_scale = 7,
seed = 42L,
clip_skip = -1L,
eta = 0,
batch_count = 1L
)
ctx |
SD context from |
prompt |
Text prompt |
refs |
A list of sd_image lists (each with |
negative_prompt |
Negative prompt (default "") |
width, height |
Output size in pixels |
auto_resize_ref_image |
If |
increase_ref_index |
If |
sample_method, scheduler |
Sampler / scheduler (name or enum value) |
sample_steps, cfg_scale, seed, clip_skip, eta |
Standard sampling controls |
batch_count |
Number of images (default 1) |
List of sd_image lists.
sd_generate, sd_encode_image
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.