Vidu Q4
Image to video
Starting price $0.05 / second
By ShengShu
Vidu Q2 Pro animates a starting image, or a transition to an end image, into a 2 to 8 second clip, and extends videos you already have.
vidu/q2/image-to-video/proThis model has other modes with their own ids: vidu/q2/video-extension/pro.
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/image-to-video/pro",
"input": {
"prompt": "The woman in the image lifts her sunglasses, looks straight at the camera and smiles while her hair moves in the sea breeze.",
"image_url": "https://example.com/input.png"
}
}'
# 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/image-to-video/pro", "quote_id": "QUOTE_ID", "input": {"prompt":"The woman in the image lifts her sunglasses, looks straight at the camera and smiles while her hair moves in the sea breeze.","image_url":"https://example.com/input.png"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
promptrequired | string | Text prompt for video generation, max 3000 characters |
image_urlrequired | string (image URL) | URL of the image to use as the starting frame |
end_image_url | string (image URL) | URL of the image to use as the ending frame. When provided, generates a transition video between start and end frames. |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
duration | number (enum) | Duration of the video in seconds |
resolution | string (enum) | Output video resolution |
movement_amplitude | string (enum) | The movement amplitude of objects in the frame |
bgm | boolean | Whether to add background music to the video (only for 4-second videos) |
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://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Upload a starting image and describe the motion; add an end image to make a transition between the two. Clips run 2 to 8 seconds at 720p or 1080p, and the movement amplitude setting picks small, medium or large motion, or leaves it on auto.
The extension mode adds 2 to 7 seconds after the end of a clip you upload, with an optional prompt for what happens next.
Check subject shape through the transition and continuity at any video-extension join.