Spiral gives your agent every tool with one account. Browse the tools →

falVideoAvailable now

Grok Imagine Extend Video

xai/grok-imagine-video/extend-video

Edit and transform video with Grok Imagine Extend Video from fal through one Spiral API key. It runs in the background and returns video. Pay as you go, with no subscription.

Pricing

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

Limits

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

Input

FieldKindDefaultDescription
prompt requiredtext—

Text description of what should happen next in the video.

video_url requiredURL or file—

URL of the source video to extend. Must be MP4 format (H.264, H.265, or AV1 codec), 2-15 seconds long.

durationnumber (whole)
2 to 10
6

Length 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": "fal",
    "model": "xai/grok-imagine-video/extend-video",
    "input": {
      "prompt": "The camera slowly zooms out to reveal the city skyline at sunset",
      "video_url": "https://v3b.fal.media/files/b/0a8b9112/V5Z_NIPE3ppMDWivNo6_q_video_019.mp4"
    }
  }'

Frequently asked questions

How much does Grok Imagine Extend Video cost?

$0.065 per second. Billed on `duration`, default 6. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Grok Imagine Extend Video through an API?

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "xai/grok-imagine-video/extend-video"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with fal to use Grok Imagine Extend Video?

No. Spiral runs it on its own fal account and charges your Spiral balance.

Can my AI agent use Grok Imagine Extend Video?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.