Stable Diffusion
Request schema for Stable Diffusion txt2img generation.
Compatible with Automatic1111 API format.
Image generation prompt (supports LoRA tags)
masterpiece, best quality, a serene mountain landscape at sunset, dramatic lightingNegative prompt (things to avoid)
""Example: low quality, blurry, watermark, textSD checkpoint. Available: illustriousRealismBy_v10VAE.safetensors, Realistic_Vision_V5.1.safetensors, stable-diffusion-v1-5-pruned.safetensors
Realistic_Vision_V5.1.safetensorsImage width in pixels
832Image height in pixels
1216Sampling steps (more = higher quality, slower)
30Sampler algorithm
DPM++ SDENoise scheduler
KarrasCFG scale (prompt adherence, higher = stricter)
4.5Denoising strength for hires fix
0.45Enable hires fix (upscaling)
trueHires upscale ratio
1.5Hires upscaler type
LatentHires second pass steps
15Random seed (-1 = random)
-1Number of images to generate
1Subseed for variations (-1 = random)
Subseed strength (0 = no variation, 1 = full variation)
Number of batches to generate
Style presets to apply
Enable face restoration
Generate tileable/seamless images
Hires fix target width (0 = use hr_scale)
Hires fix target height (0 = use hr_scale)
Sampler for hires fix pass (default: same as sampler_name)
Scheduler for hires fix pass (default: same as scheduler)
Prompt for hires fix pass (default: same as prompt)
Negative prompt for hires fix pass (default: same as negative_prompt)
Routing mode: 'auto' (intelligent), 'opengpu' (blockchain), 'direct' (low-latency)
autoReturn task_address immediately, poll /v2/tasks/{task_address} for result. Default: false (synchronous).
falseSuccessful Response
Task accepted (async mode). Poll the poll_url for status.
Validation Error
Last updated