Output resolution
Supports 540p, 720p, 1080p, 2k, 4k from the published endpoint schema.
Reference to video
curl -X POST https://runapi.ai/api/v1/vidu/reference_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu-q4-reference-to-video",
"prompt": "Vidu Q4 creates videos from a first-frame image or ordered reference images."
}'
import { ViduClient } from "@runapi.ai/vidu";
const client = new ViduClient();
const result = await client.referenceToVideo.run({
model: "vidu-q4-reference-to-video",
prompt: "Vidu Q4 creates videos from a first-frame image or ordered reference images.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/vidu/reference_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"vidu-q4-reference-to-video","prompt":"Vidu Q4 creates videos from a first-frame image or ordered reference images."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/vidu/reference_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'vidu-q4-reference-to-video',
'prompt' => 'Vidu Q4 creates videos from a first-frame image or ordered reference images.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.referenceToVideo().run({"model":"vidu-q4-reference-to-video","prompt":"Vidu Q4 creates videos from a first-frame image or ordered reference images."});
task.waitForResult();
require "runapi/vidu"
client = RunApi::Vidu::Client.new
result = client.reference_to_video.run(
model: "vidu-q4-reference-to-video",
prompt: "Vidu Q4 creates videos from a first-frame image or ordered reference images."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.referenceToVideo.Run({"model":"vidu-q4-reference-to-video","prompt":"Vidu Q4 creates videos from a first-frame image or ordered reference images."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model vidu-q4-reference-to-video \
--endpoint reference_to_video \
--wait
2 versions available
| Provider | Vidu |
| Model ID | vidu-q4-reference-to-video |
| Modality | Video |
| Task types | Asynchronous |
| API endpoint | /api/v1/vidu/reference_to_video |
| Billing unit | call |
| Input parameters | aspect_ratio, audio, callback_url, duration_seconds, model, output_resolution, prompt, reference_audio_urls, reference_image_urls |
| Max resolution | 540p, 720p, 1080p, 2k, 4k |
| Aspect ratios | 16:9, 9:16, 1:1, 4:3, 3:4 |
| Catalog status | Coming soon |
Sign up for free and create an API key for vidu-q4-reference-to-video from the dashboard.
POST to /api/v1/vidu/reference_to_video with the vidu-q4-reference-to-video model slug and your parameters.
Poll the task or follow the callback to retrieve the completed vidu-q4-reference-to-video result.
Supports 540p, 720p, 1080p, 2k, 4k from the published endpoint schema.
Configure 7 documented parameters, including aspect_ratio, audio, duration_seconds, output_resolution, prompt.
Exposes 1 public endpoint(s): reference_to_video.
Asynchronous tasks accept a callback URL for completion notifications.
audioGenerate synchronized audio. False produces a silent video.
promptVideo description, up to 20,000 characters.
aspect_ratioOutput video aspect ratio. (16:9, 9:16, 1:1, 4:3, 3:4)
callback_urlRunAPI customer callback URL for the terminal task result.
duration_secondsVideo duration in seconds.
output_resolutionOutput video resolution. (540p, 720p, 1080p, 2k, 4k)
reference_audio_urlsUp to 3 HTTP(S) URLs of MP3 references, each 3 to 12 seconds and up to 50 MB. The provider validates the remote files.
reference_image_urlsOrdered HTTP(S) URLs of 1 to 15 JPG, JPEG, PNG or WEBP reference images. The provider validates the remote files.
Generate product launch clips and short-form ads from a text brief, cutting production from weeks to hours.
Convert lesson scripts into animated explainer videos at scale without a camera or crew.
Produce viral short-form content for social platforms directly from a prompt.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us