Deploy an API for AUTOMATIC1111's Stable Diffusion WebUI to generate images with Stable Diffusion 1.5.
Supports features not available in other Stable Diffusion templates, such as:
This deployment provides an API only and does not include the WebUI's user interface. Please report any issues you encounter.
{
"endpoint": "txt2img",
"params": {
"prompt": "an astronaut riding a (horse:motorcycle:0.5) on the moon",
"negative_prompt": "cartoonish, low quality",
"steps": 25,
"sampler_name": "Euler a",
"cfg_scale": 7.5,
"seed": 42,
"batch_size": 1,
"n_iter": 1,
"width": 512,
"height": 512,
"tiling": false
}
}
(Only prompt
is required.)
Output:
{
"images": [
"<base64 image>"
]
}
{
"endpoint": "img2img",
"params": {
"prompt": "an astronaut riding a horse on the moon in anime style",
"negative_prompt": "cartoonish, low quality",
"steps": 25,
"sampler_name": "Euler a",
"cfg_scale": 7.5,
"denoising_strength": 0.7,
"seed": 42,
"batch_size": 1,
"n_iter": 1,
"width": 512,
"height": 512,
"tiling": false
"init_images": [
"<base64 image>"
]
}
}
(Only prompt
and init_images
are required.)
Output:
{
"images": [
"<base64 image>"
]
}