Google’s highest quality image generation model
Request
Body Params application/json
{
"model": "imagen4",
"prompt": "A person walking in the forest",
"aspect_ratio": "1:1",
"response_format": "url"
}
Request Code Samples
curl --location --request POST '/v1/images/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "imagen4",
"prompt": "A person walking in the forest",
"aspect_ratio": "1:1",
"response_format": "url"
}'
Responses
application/json {
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Modified at 2025-06-27 09:12:47