Skip to main content
POST
/
v3
/
async
/
grok-imagine-video-edit
Grok Imagine Video Video Editing
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/grok-imagine-video-edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "video": "<string>",
  "prompt": "<string>",
  "resolution": "<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

video
string
required
The input video URL to edit. The video will be scaled to a maximum of 854x480 pixels and truncated to 8 seconds. The input duration limit is 8.7 seconds, and the output preserves the duration of the original video. Must be a publicly accessible URL.
prompt
string
required
A text description of the desired editing effect. Describe the style transformation or content change to apply to the input video, such as “turn the video into anime style” or “make it look like a watercolor painting”.Length limit: 1 - 4096
resolution
string
default:"480p"
The output video resolution. 480p generates faster, while 720p provides higher quality. The output resolution matches the input resolution, up to the selected value.Available values: 480p, 720p

Response Information

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