seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
vidu/q3/reference-to-video/mixVidu Q3 Mix by Shengshu - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
모델 사용해 보기
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
다음에 무엇을 하시겠습니까?
예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
{
"prompt": "A character walking through a beach catching an apple.",
"reference_image_urls": [
"https://static.sandbase.ai/examples/6491437f-a95b-4ada-aea8-35a842416abf/input/aa16b50e-ec40-47df-bda1-3cf46278a584.png",
"https://static.sandbase.ai/examples/6491437f-a95b-4ada-aea8-35a842416abf/input/a35599ea-7845-46e2-b591-0a51da11c67c.png",
"https://static.sandbase.ai/examples/6491437f-a95b-4ada-aea8-35a842416abf/input/faffe658-17e3-41a9-ade8-f307be1c4ff7.png"
]
}Vidu Q3 Mix reference-to-video: reference images keep characters and objects consistent in a 1–16 second clip with native audio.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,000 characters. |
aspect_ratio | 16:9 / 9:16 / 4:3 / 3:4 / 1:1 | 16:9 | Output frame shape. |
audio | boolean | true | Generate native audio. Same price on or off. |
resolution | 360p / 540p / 720p / 1080p | 720p | Sets the per-second rate. |
duration | integer 1–16 | 5 | Output length in seconds. |
seed | integer | random | Fix it to compare prompt changes. |
reference_image_urls | image URL[], required | — | Reference images, Image 1, Image 2, … |
You pay for output seconds: $0.07 at 360p or 540p and $0.154 at 720p or 1080p.
| Output | 540p | 720p | 1080p |
|---|---|---|---|
| 4s | $0.28 | $0.616 | $0.616 |
| 5s (default) | $0.35 | $0.77 | $0.77 |
| 8s | $0.56 | $1.232 | $1.232 |
| 16s | $1.12 | $2.464 | $2.464 |
Failed runs are not charged.
Other Vidu Q3 endpoints: vidu/q3/text-to-video, vidu/q3/image-to-video, vidu/q3/text-to-video/turbo, vidu/q3/image-to-video/turbo.
빌드를 시작하세요
SandBase Unified Run API를 통해 이 모델을 제출하세요.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "vidu/q3/reference-to-video/mix",
"audio": true,
"prompt": "A character walking through a beach catching an apple.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"reference_image_urls": [
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_0.png",
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_1.png",
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_2.png"
]
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBase API 키를 생성해 서버 환경에 설정하세요. 모든 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하거나 저장소에 커밋하지 마세요.
이 모델 ID와 입력값을 사용해 /v1/run로 POST하세요. 위의 요청 예시에는 제출과 폴링이 포함되어 있습니다.
반환된 실행 ID를 사용해 상태가 completed, failed 또는 timeout이 될 때까지 폴링하세요. completed 이후에만 출력을 읽으세요.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"모델의 이미지, 비디오 또는 오디오 필드에 공개적으로 접근 가능한 파일 URL을 전달하세요. 지원 형식과 제한은 각 Playground 입력 옆에 표시됩니다.
Playground의 지원되는 이미지 필드에서 업로드 또는 교체 컨트롤을 사용하세요. 비디오 URL 필드는 호스팅된 driving video를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
seedintegerRandom seed for reproducibility. If None, a random seed is chosen.
audiobooleanWhether to use direct audio-video generation. When true, outputs video with sound.
기본값: true
promptstring필수Text prompt for video generation, max 2000 characters
durationintegerDuration of the video in seconds (1-16 for Q3 models)
기본값: 5
최소값: 1
최대값: 16
resolutionstringOutput video resolution
기본값: "720p"
가능한 값: "360p", "540p", "720p", "1080p"
aspect_ratiostringThe aspect ratio of the generated image.
기본값: "16:9"
가능한 값: "16:9", "9:16", "4:3", "3:4", "1:1"
reference_image_urlsarray필수URLs of 1 to 4 reference images used to keep subjects or scenes consistent
{
"model": "vidu/q3/reference-to-video/mix",
"audio": true,
"prompt": "A character walking through a beach catching an apple.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"reference_image_urls": [
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_0.png",
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_1.png",
"https://static.sandbase.ai/examples/shengshu/vidu/q3/reference-to-video/mix/input_reference_image_urls_2.png"
]
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
[
{
"poster": "https://static.sandbase.ai/examples/posters/207cfbc138fba616ee0b.jpg",
"source": "Vidu schema mirror",
"source_url": "https://www.vidu.com/",
"url": "https://static.sandbase.ai/examples/6491437f-a95b-4ada-aea8-35a842416abf/output/1baebebd-d9e3-4e36-bf6f-5d06bb0836be.mp4"
}
]