ReplicateVideo to videoComing soon

xai/grok-imagine-video-extension

xai/grok-imagine-video-extension is a video to video tool from Replicate that runs in the background and returns video. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Priced by usage

Pricing

$0.065 per second. Billed on duration, default 6.

Limits

Runs
In the background
Returns
video
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
video requiredtext—Source video to extend. Must be MP4 format (H.264, H.265, or AV1 codec), 2-15 seconds long. The extension is generated from the last frame of the input video.
prompt requiredtext—Text description of what should happen next in the video
durationnumber (whole)
2 to 10
6Length of the extension in seconds

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "replicate",
    "model": "xai/grok-imagine-video-extension",
    "input": {
      "video": "<video>",
      "prompt": "<prompt>"
    }
  }'