⚙️ Inference parameters
Depending on the inference type, different parameters can or must be provided:
type | txt2img | img2img | inpaint | controlnet |
---|---|---|---|---|
prompt | ✅ | ✅ | ✅ | ✅ |
negativePrompt | ✅ | ✅ | ✅ | ✅ |
numSamples | ✅ | ✅ | ✅ | ✅ |
guidance | ✅ | ✅ | ✅ | ✅ |
numInferenceSteps | ✅ | ✅ | ✅ | ✅ |
seed | ✅ | ✅ | ✅ | ✅ |
width | ✅ | ✅ | ✅ | ✅ |
height | ✅ | ✅ | ✅ | ✅ |
strength | ❌ | ✅ | ✅ | ❌ |
image | ❌ | ✅ (required) | ✅ (required) | ✅ (required) |
mask | ❌ | ❌ | ✅ (required) | ❌ |
scheduler (more details) | ✅ | ✅ | ✅ | ✅ |
modality | ❌ | ❌ | ❌ | ✅ (required) |
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
.
Updated about 1 month ago