Skip to main content
POST
/
v3
/
async
/
grok-imagine-image-edit
Grok Imagine Image Image Editing
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/grok-imagine-image-edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API and only returns the task_id of the asynchronous task.
This is an asynchronous API and only returns the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

image
string
required
The source image to edit, provided as a public URL or base64 data URI (for example, “data:image/jpeg;base64,…”). The model analyzes the image content and applies the requested edits.
prompt
string
required
Text instructions describing the desired edits to the source image. The model can understand the image content and make modifications, including style transfer, object modification, scene changes, and iterative refinement.Length limit: 1 - unlimited

Response Information

task_id
string
required
Use task_id to request the Get Task Result API to retrieve the generated output.