Gemini Omni Flash 1.2
Text to video · Image to video · Video editing
Starting price $0.0433 / second
By ShengShu
Vidu Q4 animates a starting image or builds a scene from up to 12 reference images, in clips of 3 to 16 seconds from 540p up to 4K.
vidu/q4/image-to-videoThis model has other modes with their own ids: vidu/q4/reference-to-video.
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/q4/image-to-video",
"input": {
"prompt": "The waterfall in the image pours into the pool below as mist drifts across the rocks and the camera slowly rises above the trees.",
"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/q4/image-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"The waterfall in the image pours into the pool below as mist drifts across the rocks and the camera slowly rises above the trees.","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 |
|---|---|---|
prompt | string | Text prompt for video generation, max 5000 characters |
image_urlrequired | string (image URL) | URL or base64 data URI of the image to use as the first frame. Supports png, jpeg, jpg and webp up to 50 MB. |
duration | integer | Duration of the video in seconds (3-16) |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
resolution | string (enum) | Output video resolution |
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.
The image mode starts the clip on your PNG, JPEG or WebP image and moves it as your prompt describes; the prompt is optional. Clips run 3 to 16 seconds at 540p, 720p, 1080p, 2K or 4K.
The reference mode keeps subjects consistent across a scene from up to 12 reference images, in 16:9, 9:16, 4:3, 3:4 or 1:1, and can generate dialogue and sound effects with the video.