Skip to main content
All examples use the base URL https://api.hedra.com/web-app/public and require an X-API-Key header.

Text-to-video

Generate a video from a text prompt alone using Grok Video T2V (fal/grok-video-t2v):

Image-to-video

Generate a video from a start image using Grok Video I2V (fal/grok-video-i2v).

Step 1: Upload a start image

Step 2: Generate the video

Required fields

Optional fields

When batch_size is greater than 1, include a generation_ids array containing one client-generated UUID for each variation.

Poll for completion

When status is "complete", the response includes an asset_id for the generated video.
For avatar and talking-head videos that require audio input, see the Generate an Avatar Video guide.