⚙️ Inference parameters

Depending on the inference type, different parameters can or must be provided:

non-controlnet types

typetxt2imgtxt2img-ipadapterimg2imgimg2img-ipadapterinpaintinpaint-ipadapterreference
prompt
negativePrompt
numSamples
guidance
numInferenceSteps
seed
width
height
qualityBoost
qualityBoostScale/qualityBoostStrength
tokenMerging
scheduler (more details)
image✅ (required)✅ (required)✅ (required)✅ (required)✅ (required)
strength
mask✅ (required)✅ (required)
referenceAttn
referenceAdain
styleFidelity
ipAdapterScale
ipAdapterImage

controlnet types

typecontrolnetcontrolnet-ipadaptercontrolnet-img2im2controlnet-referencecontrolnet-inpaintcontrolnet-inpaint-ipadapter
prompt
negativePrompt
numSamples
guidance
numInferenceSteps
seed
width
height
qualityBoost
qualityBoostScale/qualityBoostStrength
tokenMerging
scheduler (more details)
image✅ (required)✅ (required)✅ (required)✅ (required)
strength
mask✅ (required)✅ (required)
disableMerging
controlImage✅ (required)✅ (required)✅ (required)✅ (required)
modality✅ (required)✅ (required)✅ (required)✅ (required)
disableModalityDetection✅ (required)
referenceAttn
referenceAdain
styleFidelity
ipAdapterScale
ipAdapterImage

The prompt parameter can be empty.

In addition to the preceding parameters, you can request the generation of intermediate images. The processing will be slightly slower. To do so, please set the intermediateImages parameter to True.