Images
Edit Image
Edits an uploaded image according to a text prompt.
POST
/v1/images/editsParameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringbody | Image-edit model ID. |
promptRequired | stringbody | Instructions describing the desired edit. |
imageRequired | filebody | Source image file. |
sizeOptional | stringbody | Requested output size when supported. |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/edits' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--form 'model=gpt-image-2-c' \
--form 'prompt=Transform the image into a Studio Ghibli-inspired style' \
--form 'image=@/path/to/image.png' \
--form 'size=1024x1536'Response examples
JSON
{
"created": 1785859200,
"data": [
{
"url": "https://example.com/edited-image.png"
}
]
}