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 (827122cd-5fdd-4412-86f2-554f7bb8eef9):
Image-to-video
Generate a video from a start image using Grok Video I2V (0435547d-1b30-41ad-bf66-ca476ff0564e).
Step 1: Upload a start image
Step 2: Generate the video
Required fields
| Field | Description |
|---|---|
type | Set to "video" |
generated_video_inputs.text_prompt | Text description of the video content |
Optional fields
| Field | Description |
|---|---|
ai_model_id | The model to use (see GET /models for video models) |
start_keyframe_id | Asset ID of the start image (required for I2V models) |
end_keyframe_id | Asset ID of the end image |
generated_video_inputs.aspect_ratio | e.g. "16:9", "9:16", "1:1" |
generated_video_inputs.resolution | e.g. "540p", "720p" |
generated_video_inputs.duration_ms | Duration in milliseconds |
batch_size | Generate 1-8 variations at once (default: 1) |
Poll for completion
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.