Model API
Vidu Q2 Pro
Vidu Q2 Pro: turn an image into a video, or extend an existing video, with improved quality and control.
Model id
vidu/q2/video-extension/proThis model has other modes with their own ids: vidu/q2/image-to-video/pro.
Run it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/q2/video-extension/pro",
"input": {
"video_url": "https://example.com/input.mp4",
"prompt": "A red ceramic cup on a wooden table, soft morning light"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "vidu/q2/video-extension/pro", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4","prompt":"A red ceramic cup on a wooden table, soft morning light"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Input
| Name | Type | Description |
|---|---|---|
video_urlrequired | string (URL) | URL of the video to extend |
prompt | string | text prompt to guide the video extension |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
duration | number (enum) | Duration of the extension in seconds |
resolution | string (enum) | Output video resolution |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Pricing
- 1080p · 2$0.69/ video
- 1080p · 3$0.81/ video
- 1080p · 4$0.92/ video
- 1080p · 5$1.04/ video
- 1080p · 6$1.16/ video
- 1080p · 7$1.28/ video
- 720p · 2$0.24/ video
- 720p · 3$0.36/ video
- 720p · 4$0.48/ video
- 720p · 5$0.60/ video
- 720p · 6$0.72/ video
- 720p · 7$0.84/ video
The exact charge for your input comes from a quote. How charges settle