{
"text_prompts": [
{
"text": "A lighthouse on a cliff",
"weight": 0.5
}
]
}
curl --location --request POST 'https://api.302.ai/sd/v1/generation/stable-diffusion-xl-1024-v1-0/text-to-image' \
--header 'Accept: image/png' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"text_prompts": [
{
"text": "A lighthouse on a cliff",
"weight": 0.5
}
]
}'
{}