Vidu Q4
Image to video
Starting price $0.05 / second
By ShengShu
Vidu Q2 turns a written scene into a clip of 2 to 8 seconds at 360p to 1080p, with a setting for how much things move in the frame.
vidu/q2/text-to-videoQuote 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/text-to-video",
"input": {
"prompt": "A hummingbird hovers in front of a red flower, wings blurring, then darts away. Soft morning light, shallow depth of field."
}
}'
# 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/text-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"A hummingbird hovers in front of a red flower, wings blurring, then darts away. Soft morning light, shallow depth of field."}}'
# 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 |
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 |
aspect_ratio | string (enum) | The aspect ratio of the output video |
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.
Vidu Q2 renders 2 to 8 seconds in 16:9, 9:16 or 1:1, at 360p, 520p, 720p or 1080p. Prompts can run to 3000 characters.
A movement amplitude setting chooses small, medium or large motion, or leaves it to the model on auto. A seed lets you repeat a result while you change one thing.
Check that camera motion does not obscure the action and that objects remain recognizable across frames.