Images
Edit Grok Image
Edits one or more source images with a Grok-compatible image model.
POST
/v1/images/editsParameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringbody | Grok image-edit model ID. |
promptRequired | stringbody | Editing instructions. |
image / imagesRequired | file | arraybody | One source image or multiple source images. |
response_formatOptional | stringbody | Image return format. urlb64_json |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/edits' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--form 'model=grok-imagine-image' \
--form 'prompt=Replace the background with a clean studio setting' \
--form 'image=@/path/to/source.png'Response examples
JSON
{
"created": 1785859200,
"data": [
{ "url": "https://example.com/grok-edited-image.png" }
]
}