Images
Generate Image
Generates one or more images from a text prompt.
POST
/v1/images/generationsParameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringbody | Image-generation model ID. |
promptRequired | stringbody | Description of the image to generate. |
sizeOptional | stringbody | Preset size or custom WxH size supported by the model. |
nOptional | integerbody | Number of images to generate when supported. |
response_formatOptional | stringbody | Image return format when supported. urlb64_json |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2-c",
"prompt": "A flying white rabbit in a futuristic sci-fi style",
"size": "1024x1536"
}'Response examples
JSON
{
"created": 1785859200,
"data": [
{
"url": "https://example.com/generated-image.png"
}
]
}Usage notes
- For compatible custom sizes, both dimensions must be multiples of 16, the longest edge must not exceed 3840, and the aspect ratio must not exceed 3:1.
- Model-specific parameters and limits may differ. The Models page is the live source of availability.