Edit videos using xAI’s Grok Imagine model. Provide an input video and a prompt describing the desired changes.

Model

xai/grok-imagine-video-edit

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYesText description of the edit to apply
video_urlstringYesURL of the input video to edit
The maximum input video length is 8.7 seconds. The duration, aspect_ratio, and resolution parameters are not supported — the output retains the duration and aspect ratio of the input and matches its resolution (capped at 720p).

Example Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "xai/grok-imagine-video-edit",
    "input": {
      "prompt": "Make the sky turn purple and add shooting stars",
      "video_url": "https://files.storagecdn.online/video/d0ff305c-0200-4d27-9b94-d183ebc91a7c.mp4"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}