Given a prompt and/or input image, the model will generate a new image.Create an image based on the prompt. Request
Body Params application/json
{
"model": "gpt-image-1",
"prompt": "oxen and horses",
"n": 1,
"size": "1024x1024"
}
Request Code Samples
curl --location --request POST 'https://gptproto.com/v1/images/generations' \
--header 'Authorization: sk-*****' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-image-1",
"prompt": "oxen and horses",
"n": 1,
"size": "1024x1024"
}'
Responses
application/json {
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Modified at 2025-07-09 05:25:25