generate_image
Create images from text prompts using Stable Diffusion. Specify pipeline, prompts, and settings to generate a complete image.
Instructions
Generate an image using Stable Diffusion. Waits for completion and returns the result.
Args:
pipeline: Pipeline to use — "sd15", "sdxl", or "illustrious"
positive_prompt: Text prompt describing the desired image
model_checkpoint: Model checkpoint filename to use
negative_prompt: Negative prompt (things to avoid)
width: Image width in pixels (256-2048)
height: Image height in pixels (256-2048)
steps: Number of inference steps (1-150)
cfg_scale: Classifier-free guidance scale (1-30)
seed: Random seed (-1 for random)
scheduler: Noise scheduler name
loras: Optional list of LoRA configs, each with "name" (str) and optional "strength" (float 0-1)
custom_vae: Optional custom VAE checkpoint filename
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| loras | No | ||
| steps | No | ||
| width | No | ||
| height | No | ||
| pipeline | Yes | ||
| cfg_scale | No | ||
| scheduler | No | DPM++ 2M | |
| custom_vae | No | ||
| negative_prompt | No | ||
| positive_prompt | Yes | ||
| model_checkpoint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |