seedinteger
The same seed and the same prompt given to the same version of the model will output the same video every time.
pixverse/c1/image-to-videoC1 is PixVerse's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.
ลองใช้โมเดล
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
PixVerse C1 image-to-video: animate a picture into a 1–15 second clip, with optional generated audio.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
resolution | 360p / 540p / 720p / 1080p | 720p | Sets the per-second rate. |
duration | integer 1–15 | 5 | Output length in seconds. |
generate_audio_switch | boolean | false | Generate audio; raises the rate. |
seed | integer | random | Fix it to compare prompt changes. |
You pay per output second; the rate depends on resolution and whether audio is on:
| Output | 360p | 540p | 720p | 1080p |
|---|---|---|---|---|
| 5s (default) | $0.15 | $0.20 | $0.25 | $0.475 |
| 10s | $0.30 | $0.40 | $0.50 | $0.95 |
| 5s with audio | $0.20 | $0.25 | $0.325 | $0.60 |
Failed runs are not charged.
Related: pixverse/v6/image-to-video.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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": "pixverse/c1/image-to-video",
"image": "https://static.sandbase.ai/examples/pixverse/c1/image-to-video/output_url_0.png",
"prompt": "A woman warrior with her hammer walking with his glacier wolf.",
"duration": 5,
"resolution": "720p",
"generate_audio_switch": false
}
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 key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
seedintegerThe same seed and the same prompt given to the same version of the model will output the same video every time.
imagestringจำเป็นURL of the image to use as the first frame
promptstringจำเป็นdurationintegerThe duration of the generated video in seconds (1-15)
ค่าเริ่มต้น: 5
ขั้นต่ำ: 1
สูงสุด: 15
resolutionstringThe resolution of the generated video
ค่าเริ่มต้น: "720p"
ค่าที่เป็นไปได้: "360p", "540p", "720p", "1080p"
generate_audio_switchbooleanEnable audio generation (BGM, SFX, dialogue)
ค่าเริ่มต้น: false
{
"model": "pixverse/c1/image-to-video",
"image": "https://static.sandbase.ai/examples/pixverse/c1/image-to-video/output_url_0.png",
"prompt": "A woman warrior with her hammer walking with his glacier wolf.",
"duration": 5,
"resolution": "720p",
"generate_audio_switch": false
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
ยังไม่มีตัวอย่าง output เผยแพร่ในตอนนี้ ใช้ Playground → Result → JSON หลังจาก run เสร็จสมบูรณ์เพื่อตรวจสอบการตอบกลับของคุณ