Given a prompt and/or an input image, the model will generate a new image.Create images based on prompts. Request
Body Params application/json
{
"model": "dall-e-3",
"prompt": "1",
"n": 1,
"size": "1024x1024"
}
Request Code Samples
curl --location --request POST '/v1/images/generations' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "dall-e-3",
"prompt": "1",
"n": 1,
"size": "1024x1024"
}'
Responses
application/json {
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Modified at 2025-07-23 10:01:53