การเชื่อมต่อ API ของ Seedance 1.0 Lite
ใช้ Seedance 1.0 Lite ผ่าน Rivya Public API v1 ด้วย model id seedance-1-0-lite, input ที่รองรับ, พารามิเตอร์, กฎ Files API, เครดิต และตัวอย่าง response
seedance-1-0-lite
text, file
จำเป็นสำหรับโหมด reference
16
วิดีโอ
FIXED
10000 อักขระ
contract ของ request
ส่ง model id ที่ระดับบนสุด control เฉพาะโมเดลอยู่ใน params
| Key | Type | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|---|
| model | string | ใช่ | seedance-1-0-lite | ใช้ API model id seedance-1-0-lite |
| prompt | string | ใช่ | - | สูงสุด 10000 อักขระสำหรับโมเดลนี้ |
| params | object | ไม่ใช่ | - | object พารามิเตอร์เฉพาะโมเดล ใช้แถวด้านล่างสำหรับ key ที่อนุญาต |
| client_request_id | string | ไม่ใช่ | - | client-side id แบบเลือกได้สำหรับ trace คำขอในระบบของคุณ |
พารามิเตอร์โมเดล
| Key | Type | จำเป็น | ค่าเริ่มต้น | ช่วง | ตัวเลือก | คำอธิบาย |
|---|---|---|---|---|---|---|
| resolution | select | ไม่ใช่ | 720p | - | 480p, 720p, 1080p | ความละเอียด |
| duration | select | ไม่ใช่ | 5 | - | 5, 10 | ระยะเวลา |
| aspect_ratio | select | ไม่ใช่ | 16:9 | - | 16:9, 4:3, 1:1, 3:4, 9:16, 9:21 | อัตราส่วนภาพ |
| camera_fixed | select | ไม่ใช่ | false | - | false, true | ควบคุมว่าช็อตควรทำงานเหมือนกล้องคงที่มากขึ้นหรือไม่ การเปิดใช้งานจะทำให้การเคลื่อนไหวของกล้องถูกจำกัดมากขึ้น ส่วนการปิดใช้งานเปิดให้มีการเคลื่อนไหวที่เห็นชัดขึ้น |
| seed | number | ไม่ใช่ | -1 | min -1 / max 2147483647 | - | เว้นว่างไว้เพื่อสร้างผลลัพธ์แบบสุ่มใหม่ทุกครั้ง การใช้เลขจำนวนเต็มเดิมซ้ำจะช่วยให้ทำซ้ำหรือปรับละเอียดจากผลลัพธ์ก่อนหน้าได้ง่ายขึ้น ผลลัพธ์จะใกล้เคียงขึ้นเมื่อพรอมป์และการตั้งค่าหลักอื่นยังคล้ายเดิมเท่านั้น และไม่รับประกันว่าจะตรงกันแบบ 1:1 |
| enable_safety_checker | select | ไม่ใช่ | true | - | true, false | ตัวตรวจสอบความปลอดภัย |
policy การอัปโหลด
อัปโหลดไฟล์ reference ก่อน จากนั้นใส่ URL และ duration token ที่ได้กลับมาไว้ใน params.referenceMediaItems
ภาพอ้างอิง: อัปโหลดภาพต้นทาง 1 ภาพสำหรับ image-to-video หรือ 2 ภาพเมื่อคุณต้องการให้มี end frame แบบไม่บังคับด้วย
2
image
reference วิดีโอและเสียงควรมี durationToken จาก /api/v1/files เมื่อจำเป็นต้องตรวจ duration
| kind | ขนาดสูงสุด | MIME type |
|---|---|---|
| image | 10 MB | image/jpeg, image/png, image/webp |
request ขั้นต่ำ
{
"model": "seedance-1-0-lite",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": "5",
"aspect_ratio": "16:9",
"camera_fixed": "false",
"seed": -1,
"enable_safety_checker": "true"
}
}request แบบไฟล์ reference
{
"model": "seedance-1-0-lite",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": "5",
"aspect_ratio": "16:9",
"camera_fixed": "false",
"seed": -1,
"enable_safety_checker": "true",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png"
}
]
}
}response จากการสร้าง
endpoint create ส่ง public task id กลับมา poll endpoint สถานะจนกว่างานจะสำเร็จหรือล้มเหลว
{
"id": "task_seedance_1_0_lite_example",
"status": "queued",
"model": "seedance-1-0-lite",
"reserved_credits": 16,
"final_credits": 0,
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}error ทั่วไป
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
บางโหมดต้องใช้การอัปโหลด reference ผ่าน Files API