Skip to main content
POST
/
v3
/
async
/
grok-imagine-video-edit
Grok Imagine Video edit
curl --request POST \
  --url https://api.myrouter.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 async API that only returns the task_id of the async task.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

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

Request Body

video
string
required
Input video URL to edit. The video will be scaled to a maximum of 854x480 pixels and truncated to 8 seconds. Maximum input duration is 8.7 seconds; output retains the original video duration. Must be a publicly accessible URL.
prompt
string
required
Text description of the desired edit. Describe the style transformation or content changes to apply to the input video, such as “convert the video to anime style” or “make it look like a watercolor painting”.Length limit: 1 - 4096
resolution
string
default:"480p"
Output video resolution. 480p generates faster; 720p provides higher quality. Output resolution matches the input resolution, up to the selected value.Possible values: 480p, 720p

Response

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