ReplicateVideoComing soon

xai/grok-imagine-video

xai/grok-imagine-video is a 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.

Pricing

Coming soon

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

Limits

Runs
In the background
Returns
video
Longest queue wait
1 hour
Run deadline
1 hour
Longest run, end to end
930 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
prompt requiredtext—

Text prompt for video generation

imageURL or filenull

Input image to generate video from (image-to-video). Supports jpg, jpeg, png, webp.

videotextnull

Input video to edit (video editing mode). Must be a direct link, max 8.7 seconds. Supports mp4, mov, webm.

durationnumber (whole)
1 to 15
5

Duration of the video in seconds (1-15). Ignored when editing a video.

resolutionJSON720p

Resolution of the video. Ignored when editing a video.

aspect_ratioJSONauto

Aspect ratio of the video. For text-to-video, defaults to 16:9. For image-to-video, defaults to the input image's native aspect ratio. Ignored when editing a video.

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",
    "input": {
      "prompt": "<prompt>"
    }
  }'