Authorization: Bearer ********************
{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "gpt-image-1",
"size": "1024x1024"
}
curl --location -g --request POST '/v1/images/generations' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "gpt-image-1",
"size": "1024x1024"
}'
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}