stable-diffusion-xl-1024-v1-0 as the engine_id of your request and pass in height & width as one of the following combinations:stable-diffusion-v1-6 as the engine_id of your request and ensure the height & width you pass in adhere to the following restrictions:stable-diffusion-xl-beta-v2-2-2 as the engine_id of your request and ensure the height & width you pass in adhere to the following restrictions:NOTE: Only Version 1 engines will work with this endpoint.
{
"cfg_scale": 7,
"height": 512,
"width": 512,
"sampler": "K_DPM_2_ANCESTRAL",
"samples": 1,
"steps": 30,
"text_prompts": [
{
"text": "A lighthouse on a cliff",
"weight": 1
}
]
}curl --location --request POST '/sd/v1/generation/stable-diffusion-v1-6/text-to-image' \
--header 'Content-Type: application/json' \
--data-raw '{
"cfg_scale": 7,
"height": 512,
"width": 512,
"sampler": "K_DPM_2_ANCESTRAL",
"samples": 1,
"steps": 30,
"text_prompts": [
{
"text": "A lighthouse on a cliff",
"weight": 1
}
]
}'{
"artifacts": [
[
{
"base64": "...very long string...",
"finishReason": "SUCCESS",
"seed": 1050625087
},
{
"base64": "...very long string...",
"finishReason": "CONTENT_FILTERED",
"seed": 1229191277
}
]
]
}