Video Extension

Extend an existing video using POST /v1/videos/extensions. The source is video: {url | file_id}. The duration parameter specifies the generated extension length only, not total video length.

CLI

progrok video extend "camera slowly pulls back" --video ./clip.mp4 --duration 5
progrok video extend "continue the motion" --video file_id:file-abc123 --duration 2

API

curl -X POST http://localhost:18645/v1/videos/extensions   -H "Authorization: Bearer $API_KEY"   -H "Content-Type: application/json"   -d '{
    "model": "grok-imagine-video",
    "video": {"url": "https://example.com/source.mp4"},
    "prompt": "Continue the scene smoothly",
    "duration": 5
  }'

Limits

The source video must be 2-15 seconds. The extension duration range is 2-10 seconds, default 6. Extension does not support custom aspect_ratio or resolution; output follows the input and is capped at 720p.