Vidu Q4 · Reference to Video
fal-ai/vidu/q4/reference-to-videoGenerate video from text and reference media with Vidu Q4 · Reference to Video from fal through one Spiral API key. It runs in the background and returns video and images. Pay as you go, with no subscription.
Pricing
$0.43225 per run at the default inputs. resolution: 540p $0.20475, 720p (default) $0.43225, 1080p $0.546, 2K $0.8645, 4K $1.7745. Per unit of duration: 540p $0.04095, 720p (default) $0.08645, 1080p $0.1092, 2K $0.1729, 4K $0.3549.
Limits
- Runs
- In the background
- Returns
- video, image
- Longest queue wait
- 1 hour
- Run deadline
- 1 hour
- Longest run, end to end
- 930 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | Text prompt for video generation, max 5000 characters. Refer to references by their position in the lists: [@reference_image_1], [@reference_image_2], ... for images and [reference_audio_1], [reference_audio_2], ... for audio clips. |
reference_image_urls | URLs or files | — | URLs or base64 data URIs of up to 12 reference images (png, jpeg, jpg, webp) used to keep subjects consistent. |
reference_audio_urls | URLs or files | — | URLs or base64 data URIs of up to 3 mp3 reference audio clips (3-12 seconds each, max 50 MB) used to keep voices consistent. |
duration | number (whole) 3 to 16 | 5 | Duration of the video in seconds (3-16) |
seed | number (whole) | — | Random seed for reproducibility. If None, a random seed is chosen. |
aspect_ratio | one of 16:9, 9:16, 4:3, 3:4, 1:1 | 16:9 | The aspect ratio of the output video |
resolution | one of 540p, 720p, 1080p, 2K, 4K | 720p | Output video resolution |
audio | true or false | false | Whether to generate audio (dialogue and sound effects) with the video. When false, the output video is silent. |
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": "fal-ai/vidu/q4/reference-to-video",
"input": {
"prompt": "[@reference_image_1] walks along the beach at sunset holding [@reference_image_2], then turns to the camera and speaks in the voice of [reference_audio_1]."
}
}'Frequently asked questions
How much does Vidu Q4 · Reference to Video cost?
$0.43225 per run at the default inputs. `resolution`: 540p $0.20475, 720p (default) $0.43225, 1080p $0.546, 2K $0.8645, 4K $1.7745. Per unit of `duration`: 540p $0.04095, 720p (default) $0.08645, 1080p $0.1092, 2K $0.1729, 4K $0.3549. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Vidu Q4 · Reference to Video through an API?
Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/vidu/q4/reference-to-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 Vidu Q4 · Reference to Video?
No. Spiral runs it on its own fal account and charges your Spiral balance.
Can my AI agent use Vidu Q4 · Reference to Video?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.