{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "dall-e-2",
"size": "1024x1024"
}
curl --location --request POST 'https://api.aimhub.cc/cnapi/v1/images/generations' \
--header 'Authorization: Bearer ' \
--header 'Authorization;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "dall-e-2",
"size": "1024x1024"
}'
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}