Generate images from prompts
API Reference
Generate images from prompts
POST
Generate images from prompts
Body
application/json
Request to generate images from text prompts.
Text prompt guiding image generation. Optional for unconditional generation.
Textual description of elements to avoid in the generated images.
Number of images to generate.
Desired image file format for outputs.
Available options:
png, jpeg, webp How generated images are returned: URLs or base64 JSON strings.
Available options:
url, b64_json Desired image size either as preset string or [width, height] pair.
Available options:
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792 Number of denoising / sampling steps used by the diffusion model.
Classifier-free guidance scale; higher values enforce prompt adherence.
Optional random seed for reproducibility of generated images.

