curl --location --request POST 'https://api.mjdjourney.cn/sd/v1/generation/stable-diffusion-xl-1024-v1-0/text-to-image' \
--header 'Accept;' \
--header 'Organization: org-123456' \
--header 'Stability-Client-ID: my-great-plugin' \
--header 'Stability-Client-Version: 1.2.1' \
--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
}
]
}'