Seedance 2.0 API
Seedance 2.0 จาก ByteDance — วิดีโอสไตล์ภาพยนตร์ระดับฮอลลีวูด พร้อมการซิงก์เสียงและภาพในตัว การควบคุมกล้องและแสงระดับผู้กำกับ และความเสถียรของการเคลื่อนไหวที่ยอดเยี่ยม สร้างบนสถาปัตยกรรมมัลติโมดัลแบบรวมของ Seed
ระดับ Standard, Fast และ Turbo พร้อมตัวเลือกข้อความเป็นวิดีโอ ภาพเป็นวิดีโอ video-edit และ video-extend — เอาต์พุต 480p ถึง 4k ความยาว 4–15 วินาที มีเสียงในตัวทุกระดับ รองรับวิดีโออ้างอิงในข้อความเป็นวิดีโอและภาพเป็นวิดีโอ
ภาพรวม
เกี่ยวกับ Seedance 2.0 API
Seedance 2.0 ทำอะไรได้ อยู่ตรงไหนในกลุ่มโมเดลของ ByteDance และทำไมทีมต่างๆ จึงเลือกใช้
Seedance 2.0 คือโมเดลการสร้างวิดีโอจาก ByteDance ใช้งานได้ผ่าน REST API ของ WaveSpeedAI Seedance 2.0 จาก ByteDance — วิดีโอสไตล์ภาพยนตร์ระดับฮอลลีวูด พร้อมการซิงก์เสียงและภาพในตัว การควบคุมกล้องและแสงระดับผู้กำกับ และความเสถียรของการเคลื่อนไหวที่ยอดเยี่ยม สร้างบนสถาปัตยกรรมมัลติโมดัลแบบรวมของ Seed
ระดับ Standard, Fast และ Turbo พร้อมตัวเลือกข้อความเป็นวิดีโอ ภาพเป็นวิดีโอ video-edit และ video-extend — เอาต์พุต 480p ถึง 4k ความยาว 4–15 วินาที มีเสียงในตัวทุกระดับ รองรับวิดีโออ้างอิงในข้อความเป็นวิดีโอและภาพเป็นวิดีโอ
กลุ่ม Seedance 2.0 บน WaveSpeedAI มี 21 REST endpoint ครอบคลุมเวิร์กโฟลว์ Text-To-Video, Image-To-Video, Video-Extend, Video-To-Video แต่ละแบบมีราคา พารามิเตอร์ที่ปรับได้ และตัวอย่างผลลัพธ์ของตัวเอง เลือกแบบที่ตรงกับประเภทอินพุตและข้อจำกัดของงานจริง หรือเรียกหลายแบบด้วย API key เดียวเพื่อประกอบเป็นไปป์ไลน์หลายขั้นตอน
รัน Seedance 2.0 ผ่าน API key บัญชีเรียกเก็บเงิน และขีดจำกัดอัตราเดียวกับที่คุณใช้กับโมเดล AI กว่า 1,000 รายการอื่นบน WaveSpeedAI ไม่ต้องตั้งค่ากับผู้ให้บริการแยก ไม่ต้องใช้ SDK แยกตามผู้ให้บริการ และไม่ต้องจัดการขีดจำกัดอัตราแยกตามผู้ให้บริการ การเชื่อมต่อเดียวครอบคลุมทุกอย่างตั้งแต่ข้อความเป็นภาพและข้อความเป็นวิดีโอ ไปจนถึงการสังเคราะห์เสียง การสร้าง 3D การอัปสเกล และการแก้ไข
Endpoint
API endpoint ของ Seedance 2.0 ทั้งหมด
21 endpoint ของ Seedance 2.0 พร้อมใช้งานบน WaveSpeedAI แล้ว — เลือกแบบที่ตรงกับเวิร์กโฟลว์ของคุณ
/filters:quality(82)/media/images/1777710751782434706_GfpzJS2H.webp)
Seedance 2.0 Fast Text To Video Turbo
Seedance 2.0 Fast (Text-to-Video Turbo) generates cinematic 720p/1080p videos from text prompts using speed-optimized inference —the fastest and most affordable Seedance option with native audio-visual synchronization and director-level control.
/filters:quality(82)/media/images/1777710766717897372_XNfpyHR0.webp)
Seedance 2.0 Fast Image To Video Turbo
Seedance 2.0 Fast (Image-to-Video Turbo) generates cinematic 720p/1080p videos from reference images using speed-optimized inference —the fastest and most affordable Seedance image-to-video option with native audio-visual synchronization and director-level control.
/filters:quality(82)/media/images/1782150104262652854_353YVSPP.webp)
Seedance 2.0 Mini Text To Video Turbo
Seedance 2.0 Mini Text to Video Turbo is ByteDance's faster, lower-cost text-to-video model for cinematic multi-shot videos. It generates narrative sequences from text prompts with AI camera control, consistent characters, 720P / 1080P output, 5-12s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1777710782211882265_rR0PY8hr.webp)
Seedance 2.0 Text To Video Turbo
Seedance 2.0 (Text-to-Video Turbo) generates cinematic 720p/1080p videos from text prompts —a faster, more affordable high-resolution tier with native audio-visual synchronization, director-level control, and exceptional motion stability.
/filters:quality(82)/media/images/1777710796465656330_J8EMV5eo.webp)
Seedance 2.0 Image To Video Turbo
Seedance 2.0 (Image-to-Video Turbo) generates cinematic 720p/1080p videos from reference images —a faster, more affordable high-resolution tier with native audio-visual synchronization, director-level control, and exceptional motion stability.
/filters:quality(82)/media/images/1784118818944663760_u9FOX7gq.webp)
Seedance 2.0 Fast Text To Video
Seedance 2.0 Fast (Text-to-Video) generates cinematic videos from text prompts with native audio-visual synchronization, director-level camera and lighting control, and exceptional motion stability — optimized for faster generation at lower cost. Built on Seed's unified multimodal architecture.
/filters:quality(82)/media/images/1784115038043562153_fbqzJS1H.webp)
Seedance 2.0 Fast Image To Video
Seedance 2.0 Fast (Image-to-Video) generates cinematic videos from reference images and text prompts with native audio-visual synchronization, director-level control, and exceptional motion stability — optimized for faster generation at lower cost. Built on Seed's unified multimodal architecture.
/filters:quality(82)/media/images/1784114740421359958_fCL2KT3c.webp)
Seedance 2.0 Text To Video
Seedance 2.0 (Text-to-Video) generates Hollywood-grade cinematic videos from text prompts with native audio-visual synchronization, director-level camera and lighting control, and exceptional motion stability. Built on Seed's unified multimodal architecture, it leads on instruction adherence, motion quality, and visual aesthetics.
/filters:quality(82)/media/images/1784118140257739680_HayHQ0MW.webp)
Seedance 2.0 Fast Video Extend
Seedance 2.0 Fast (Video-Extend) extends an input video with a new cinematic continuation generated from its last frame and a natural-language prompt — at the faster, cheaper Seedance 2.0 Fast tier. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784115845488318278_s45eoxGP.webp)
Seedance 2.0 Mini Video Extend
Seedance 2.0 Mini Video Extend is ByteDance's faster, lower-cost video extension model for cinematic multi-shot continuation. It extends existing videos into seamless narrative sequences with AI camera control, consistent characters, motion continuity, 480P / 720P / 1080P / 4K output, 4-15s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784115207543444153_o8pe1PCq.webp)
Seedance 2.0 Video Extend
Seedance 2.0 (Video-Extend) extends an input video with a new cinematic continuation generated from its last frame and a natural-language prompt. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784117974221900004_TrAJS1vF.webp)
Seedance 2.0 Fast Video Edit
Seedance 2.0 Fast (Video-Edit) edits an input video from a natural-language prompt at a faster, cheaper tier. Built on ByteDance Seed's unified multimodal architecture, it preserves subject identity, composition, and motion while rewriting lighting, style, weather, environment, or specific elements as instructed. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1777709897111402859_z86iqAJS.webp)
Seedance 2.0 Fast Video Edit Turbo
Seedance 2.0 Fast (Video-Edit Turbo) is the fastest, cheapest turbo tier for editing an input video from a natural-language prompt — high-resolution output with optimized cost and speed. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1777709912318665482_YFuDNW5f.webp)
Seedance 2.0 Video Edit Turbo
Seedance 2.0 (Video-Edit Turbo) is the turbo tier for editing an input video from a natural-language prompt — faster, more affordable high-resolution output while preserving subject identity, composition, and motion. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784114527178681757_HyHRZ8h2.webp)
Seedance 2.0 Video Edit
Seedance 2.0 (Video-Edit) edits an input video from a natural-language prompt. The reference video drives subject identity, composition, and motion while the model rewrites lighting, style, weather, environment, or specific elements as instructed. Built on ByteDance Seed's unified multimodal architecture for cinematic, motion-stable output. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784114911044913513_tQ0MW5eo.webp)
Seedance 2.0 Mini Text To Video
Seedance 2.0 Mini Text to Video is ByteDance's faster, lower-cost text-to-video model for cinematic multi-shot videos. It generates narrative sequences from text prompts with AI camera control, consistent characters across scenes, 480P / 720P / 1080P / 4K output, 4-15s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784114374920321015_tUkW5enw.webp)
Seedance 2.0 Image To Video
Seedance 2.0 (Image-to-Video) generates Hollywood-grade cinematic videos from reference images and text prompts with native audio-visual synchronization, director-level camera and lighting control, and exceptional motion stability. Built on Seed's unified multimodal architecture, it preserves the input image's subject and composition while adding expressive, physically accurate motion.
/filters:quality(82)/media/images/1782150883895961015_UoILIIDE.webp)
Seedance 2.0 Mini Video Edit Turbo
Seedance 2.0 Mini is ByteDance's faster, lower-cost video generation model for text to video and image to video. It creates cinematic multi-shot videos with AI camera control, consistent characters across scenes, 720P / 1080P output, 5-12s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1782150119735302611_8bsplife.webp)
Seedance 2.0 Mini Image To Video Turbo
Seedance 2.0 Mini Image to Video Turbo is ByteDance's faster, lower-cost image-to-video model for cinematic multi-shot videos. It turns reference images and optional text prompts into narrative sequences with AI camera control, consistent characters, 720P / 1080P output, 5-12s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784117507698664813_nXmwFOW6.webp)
Seedance 2.0 Mini Video Edit
Seedance 2.0 Mini Video Edit is ByteDance's faster, lower-cost video editing model for prompt-guided video modification. It edits existing videos with cinematic multi-shot quality, AI camera control, consistent characters, 480P / 720P / 1080P / 4K output, 4-15s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1784114642196942243_fI6AKT2c.webp)
Seedance 2.0 Mini Image To Video
Seedance 2.0 Mini Image to Video is ByteDance's faster, lower-cost image-to-video model for cinematic multi-shot videos. It turns reference images and optional text prompts into narrative sequences with AI camera control, consistent characters across scenes, 480P / 720P / 1080P / 4K output, 4-15s duration, and flexible aspect ratios. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
ตัวอย่าง
ดู Seedance 2.0 ทำงานจริง
ผลลัพธ์จริงที่สร้างโดย Seedance 2.0 API วางเมาส์บนวิดีโอเพื่อดูตัวอย่าง คลิกเพื่อเปิดตัวดูขนาดเต็ม
วิธีใช้
วิธีใช้ Seedance 2.0 API
สี่ขั้นตอนจากการสมัครไปจนถึงผลลัพธ์ที่เสร็จสมบูรณ์ ตัวอย่าง Python, Node.js และ cURL แบบเต็มอยู่ในส่วน API ด้านล่าง
- 01
รับ API key
สมัครบัญชี WaveSpeedAI แล้วคัดลอก API key จากแดชบอร์ด บัญชีใหม่มาพร้อมเครดิตเริ่มต้นฟรี เพียงพอให้ลองใช้ playground ได้หลายสิบครั้งก่อนเริ่มเรียกเก็บเงิน
- 02
ส่ง prediction
POST อินพุตของคุณเป็น JSON ไปที่ https://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video endpoint จะส่ง prediction id กลับมาทันที การสร้างทำงานแบบอะซิงโครนัส คุณจึงไม่ต้องเปิดการเชื่อมต่อค้างไว้ระหว่างประมวลผล
- 03
poll เพื่อรอให้เสร็จ
GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result เมื่อสถานะเป็น completed ให้นำผลลัพธ์ไปใช้ เมื่อเป็น failed, cancelled, timeout หรือ deleted ให้หยุดพร้อมแจ้งข้อผิดพลาด และ poll ต่อไปสำหรับสถานะอื่นทั้งหมด
- 04
อ่าน URL ของผลลัพธ์
เมื่อสถานะเป็น "completed" ให้อ่าน URL จาก data.outputs[0] URL ชี้ไปยังสื่อที่สร้างขึ้นของคุณบน CDN ของ WaveSpeedAI ซึ่งเป็นภาพ วิดีโอ เสียง หรือไฟล์ 3D ตามแบบของ Seedance 2.0 ที่คุณเรียกใช้
กรณีการใช้งาน
สิ่งที่คุณสร้างได้ด้วย Seedance 2.0
เวิร์กโฟลว์ทั่วไปที่นักพัฒนาและครีเอเตอร์ใช้ Seedance 2.0 API
ข้อความเป็นวิดีโอพร้อมเสียงในตัว
bytedance/seedance-2.0/text-to-video สร้างคลิปสไตล์ภาพยนตร์จากพรอมต์ข้อความพร้อมเสียงซิงก์ในรอบเดียว — ไม่ต้องใช้โมเดลเสียงแยกหรือขั้นตอนซิงก์ ภาษากล้องและแสงในพรอมต์จะถูกแปลงเป็นการเคลื่อนไหวที่เรนเดอร์โดยตรง
ภาพเป็นวิดีโอจากภาพนิ่งอ้างอิง
bytedance/seedance-2.0/image-to-video ทำให้ภาพอ้างอิงเคลื่อนไหวตามคำแนะนำจากข้อความ รักษาตัวตนของวัตถุ องค์ประกอบภาพ และรายละเอียดเฟรมแรก พร้อมเพิ่มการเคลื่อนไหว การเคลื่อนกล้อง และเสียงซิงก์
Video-edit สำหรับเปลี่ยนสไตล์เฉพาะจุด
bytedance/seedance-2.0/video-edit เขียนแสง สไตล์ สภาพอากาศ และบรรยากาศของวิดีโออินพุตใหม่จากพรอมต์ภาษาธรรมชาติ — โดยคงตัวตนของวัตถุ องค์ประกอบภาพ และการเคลื่อนไหวจากต้นฉบับ มีประโยชน์สำหรับขั้นตอนปรับลุคและเวิร์กโฟลว์ถ่ายโอนสไตล์กับฟุตเทจที่มีอยู่
Video-extend ให้ซีเควนซ์ยาวขึ้น
bytedance/seedance-2.0/video-extend ต่อวิดีโออินพุตจากเฟรมสุดท้ายด้วยช่วงต่อสไตล์ภาพยนตร์ที่ขับเคลื่อนด้วยพรอมต์ข้อความ — ต่อซ้ำเป็นทอดเพื่อสร้างซีเควนซ์ที่ยาวขึ้นพร้อมการควบคุมทรานซิชันแม่นยำระดับเฟรม
ราคาแบบแบ่งระดับ จากการทำซ้ำสู่การส่งมอบ
ระดับ Fast (bytedance/seedance-2.0-fast/*) สำหรับทำซ้ำพรอมต์ Standard สำหรับส่งมอบ (สูงสุด 4k) Turbo สำหรับเอาต์พุต 720p/1080p ที่เร็ว เมื่อคุณต้องการความละเอียดสูงโดยไม่ต้องรอการประมวลผลคุณภาพเต็มของระดับ Standard
การกำกับด้วยวิดีโออ้างอิง
การใส่วิดีโออ้างอิงควบคู่กับพรอมต์ (ข้อความเป็นวิดีโอ / ภาพเป็นวิดีโอ) ช่วยเพิ่มการกำกับสไตล์การเคลื่อนไหว — มีประโยชน์เมื่อต้องการให้จังหวะหรือภาษากล้องตรงกับคลิปที่มีอยู่ วิดีโออ้างอิงนับเป็นส่วนเสริมที่คิดเงินเพิ่ม จึงควรใช้เฉพาะช็อตที่การจับคู่การเคลื่อนไหวของคลิปที่มีอยู่มีความสำคัญ
เคล็ดลับ
เคล็ดลับการเขียนพรอมต์สำหรับ Seedance 2.0
คำแนะนำเชิงปฏิบัติเพื่อให้ได้ผลลัพธ์ที่ดีขึ้นจาก Seedance 2.0 — มาจากรูปแบบที่ได้ผลกับโมเดลวิดีโอในไปป์ไลน์การผลิตจริง
- 01
ใช้ภาษากล้องระดับผู้กำกับ
การวางตำแหน่งในแค็ตตาล็อก: “ควบคุมกล้องและแสงระดับผู้กำกับ” ศัพท์ภาพยนตร์เฉพาะ (orbit, dolly-in, push-in, pan-left, crane shot, handheld follow) ถูกแปลเป็นผลลัพธ์ได้ตรงกว่าคำอธิบายการเคลื่อนไหวแบบทั่วไป
- 02
อธิบายงานออกแบบเสียงควบคู่กับภาพ
การซิงก์เสียงและภาพในตัวอยู่ในคำอธิบายแค็ตตาล็อกของทุกตัวเลือก Seedance 2.0 อธิบายเสียงฝีเท้า อารมณ์ของบทพูด แนวดนตรี และเลเยอร์เสียงแวดล้อมในพรอมต์เดียวกัน — โมเดลกำกับเสียงและภาพไปพร้อมกัน ไม่ใช่ผ่านขั้นตอนซิงก์แยก
- 03
ทำซ้ำบน Fast ส่งมอบบน Standard ใช้ Turbo เมื่อความเร็วสำคัญ
ระดับ Fast (bytedance/seedance-2.0-fast/*) สำหรับทำซ้ำพรอมต์ Standard สำหรับส่งมอบ Turbo เมื่อต้องการเอาต์พุต 720p/1080p ความละเอียดสูงอย่างรวดเร็ว รูปแบบพรอมต์เดียวกันใช้ได้ทุกระดับ — เปลี่ยนเพียง URL ของ endpoint
- 04
ใช้ตัวเลือกที่เหมาะกับต้นฉบับ
text-to-video สำหรับพรอมต์ที่เริ่มจากศูนย์ image-to-video เพื่อทำให้ภาพนิ่งเฉพาะเคลื่อนไหวโดยรักษาวัตถุและองค์ประกอบ video-edit เพื่อเขียนแสง/สไตล์/สภาพอากาศของคลิปที่มีอยู่ใหม่โดยคงตัวตนของวัตถุ video-extend เพื่อต่อคลิปที่มีอยู่จากเฟรมสุดท้าย
- 05
วิดีโออ้างอิงช่วยกำกับสไตล์การเคลื่อนไหว
การเพิ่ม reference_video ควบคู่กับพรอมต์ให้โมเดลได้คำแนะนำด้านสไตล์การเคลื่อนไหว (จังหวะกล้อง จังหวะเวลาของแอ็กชัน) ใช้เฉพาะช็อตที่การจับคู่การเคลื่อนไหวของคลิปที่มีอยู่มีความสำคัญ การใส่วิดีโออ้างอิงเพิ่มการกำกับด้วยวิดีโออ้างอิง จึงไม่ควรเพิ่มโดยไม่จำเป็น
ราคา
ราคา Seedance 2.0 API
คิดราคาตามผลลัพธ์ ค่าใช้จ่ายสุดท้ายขึ้นอยู่กับพารามิเตอร์ที่คุณตั้งใน playground ของแต่ละแบบ (ความละเอียด ความยาว จำนวนผลลัพธ์ ภาพอ้างอิง)
API
เรียกใช้ Seedance 2.0 API
สมัครรับ API key ที่ wavespeed.ai/accesskey แล้วส่ง prediction ผ่าน REST playground สร้างตัวอย่างพร้อมวางได้สำหรับอินพุตทุกแบบ
POSThttps://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"enable_web_search": false,
"generate_audio": true
}')
TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
-H "Authorization: Bearer $WAVESPEED_API_KEY")
RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
case "$STATUS" in
completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneconst submitUrl = "https://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');
async function requestJson(url, options = {}) {
const response = await fetch(url, options);
if (!response.ok) throw new Error(await response.text());
return response.json();
}
// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"enable_web_search": false,
"generate_audio": true
}),
});
const task = body.data ?? body;
const resultUrl = `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;
// 2. Poll until the prediction finishes.
while (true) {
const resultBody = await requestJson(resultUrl, {
headers: { "Authorization": `Bearer ${apiKey}` },
});
const result = resultBody.data ?? resultBody;
if (result.status === "completed") {
console.log(result.outputs);
break;
}
if (["failed", "cancelled", "timeout", "deleted"].includes(result.status)) throw new Error(JSON.stringify(result));
await new Promise(resolve => setTimeout(resolve, 2000));
}import json
import os
import time
from urllib.request import Request, urlopen
api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"enable_web_search": False,
"generate_audio": True
}
def request_json(url, data=None):
request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
with urlopen(request) as response:
return json.load(response)
# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video", json.dumps(payload).encode())
task = body.get("data", body)
result_url = f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"
# 2. Poll until the prediction finishes.
while True:
result_body = request_json(result_url)
result = result_body.get("data", result_body)
status = result.get("status")
if status == "completed":
print(result.get("outputs", []))
break
if status in {"failed", "cancelled", "timeout", "deleted"}:
raise RuntimeError(result)
time.sleep(2)เปรียบเทียบ
Seedance 2.0 เทียบกับทางเลือกอื่น
เมื่อไรควรเลือก Seedance 2.0 แทนโมเดลที่คล้ายกันบน WaveSpeedAI
Seedance 2.0 เทียบกับ Veo 3.1
Veo 3.1 นำด้านความสมจริงและใบหน้ามนุษย์ที่เป็นธรรมชาติ ส่วน Seedance 2.0 ชนะด้านการสังเคราะห์เสียงในตัวทุกระดับ (เสียงของ Veo ขึ้นอยู่กับระดับ) การทำตามภาษากล้องแบบภาพยนตร์ และชุดตัวเลือกที่กว้างกว่า (ข้อความเป็นวิดีโอ ภาพเป็นวิดีโอ video-edit video-extend รวมถึงระดับย่อย Fast และ Turbo)
Seedance 2.0 เทียบกับ Kling 3.0
Kling 3.0 มี endpoint ควบคุมการเคลื่อนไหวแยกต่างหาก ส่วน Seedance 2.0 ให้เอาต์พุต 4K เทียบเท่า และเพิ่มการซิงก์เสียงในตัวในการสร้างครั้งเดียวกัน พร้อม video-edit และ video-extend — รวมถึงราคาสามระดับ (Fast/Standard/Turbo) ที่ให้คุณปรับสมดุลต้นทุนกับความเร็วได้โดยไม่ต้องเปลี่ยนโมเดล
Seedance 2.0 เทียบกับ Wan 2.7
Wan 2.7 มี reference-to-video เป็น endpoint โดยเฉพาะ และมีตัวเลือกแก้ไขภาพในตระกูลเดียวกัน ส่วน Seedance 2.0 ชนะด้านเสียงในตัว (Wan 2.7 มีเสียงเป็นตัวเลือกเฉพาะ image-to-video และ video-extend) เอาต์พุต 4k และระดับ Turbo ที่เร็ว
คำถามที่พบบ่อย
Seedance 2.0 API — คำถามที่พบบ่อย
ราคา สัญญาอนุญาต การเชื่อมต่อ — คำถามที่พบบ่อยเกี่ยวกับการรัน Seedance 2.0 บน WaveSpeedAI
Seedance 2.0 API คืออะไร
Seedance 2.0 คือโมเดลการสร้างวิดีโอของ ByteDance ที่เปิดให้ใช้เป็น REST API บน WaveSpeedAI Seedance 2.0 จาก ByteDance — วิดีโอสไตล์ภาพยนตร์ระดับฮอลลีวูด พร้อมการซิงก์เสียงและภาพในตัว การควบคุมกล้องและแสงระดับผู้กำกับ และความเสถียรของการเคลื่อนไหวที่ยอดเยี่ยม สร้างบนสถาปัตยกรรมมัลติโมดัลแบบรวมของ Seed คุณเรียกใช้ผ่านโค้ดหรือลองใช้จาก playground ที่ลิงก์ไว้ด้านบนได้
เรียกใช้ Seedance 2.0 API อย่างไร
สมัครบัญชี WaveSpeedAI คัดลอก API key จาก /accesskey แล้ว POST ไปที่ https://api.wavespeed.ai/api/v3/bytedance/seedance-2.0/text-to-video พร้อมอินพุตของคุณเป็น JSON endpoint จะส่ง prediction id กลับมา poll endpoint ผลลัพธ์โดยเริ่มประมาณทุก 2 วินาที เพิ่มช่วงเวลาสำหรับงานที่ใช้เวลานาน และหยุดเมื่อได้สถานะสิ้นสุดใดๆ ตัวอย่าง Python / Node.js / cURL ที่เหมาะกับงานจริงอยู่ด้านบน
Seedance 2.0 API มีค่าใช้จ่ายเท่าไร
Seedance 2.0 เริ่มต้นที่ $0.50 ต่อครั้ง ค่าใช้จ่ายจริงขึ้นอยู่กับพารามิเตอร์ที่คุณตั้ง (ความละเอียด ความยาว จำนวนผลลัพธ์ ภาพอ้างอิง) ตัวอย่างค่าใช้จ่ายแบบเรียลไทม์ข้างปุ่ม Generate ใน playground แสดงราคาที่แน่นอนสำหรับอินพุตปัจจุบันของคุณ
Seedance 2.0 มีแบบไหนให้ใช้บ้าง
WaveSpeedAI มี endpoint Seedance 2.0 ที่ใช้งานได้ 21 รายการ: bytedance/seedance-2.0-fast/text-to-video-turbo, bytedance/seedance-2.0-fast/image-to-video-turbo, bytedance/seedance-2.0-mini/text-to-video-turbo, bytedance/seedance-2.0/text-to-video-turbo, bytedance/seedance-2.0/image-to-video-turbo, bytedance/seedance-2.0-fast/text-to-video, bytedance/seedance-2.0-fast/image-to-video, bytedance/seedance-2.0/text-to-video, และอื่นๆ แต่ละแบบมีหน้า playground และราคาของตัวเอง
ใช้ผลลัพธ์ของ Seedance 2.0 เชิงพาณิชย์ได้ไหม
สิทธิ์ในการใช้เชิงพาณิชย์เป็นไปตามสัญญาอนุญาตของโมเดล ByteDance โมเดลของ ByteDance ส่วนใหญ่อนุญาตให้ใช้ผลลัพธ์เชิงพาณิชย์ ดูสรุปสัญญาอนุญาตเฉพาะในหน้า playground ของแต่ละโมเดล และข้อกำหนดการใช้บริการของ WaveSpeedAI สำหรับเงื่อนไขระดับแพลตฟอร์ม
ทำไมต้องใช้ Seedance 2.0 บน WaveSpeedAI แทนการเชื่อมต่อตรง
API key เดียวและบัญชีเรียกเก็บเงินเดียวสำหรับ Seedance 2.0 และโมเดล AI อื่นกว่า 1,000 รายการจากผู้ให้บริการอื่น ไม่ต้องตั้งค่า SDK แยกตามผู้ให้บริการ ไม่ต้องจัดการขีดจำกัดอัตราแยกกัน และไม่ต้องเขียนโค้ดเชื่อมต่อใหม่ทุกครั้งที่เปลี่ยนผู้ให้บริการ โดยทั่วไปราคาเท่ากับหรือต่ำกว่า API ตรงของ ByteDance
ผู้พัฒนา
เกี่ยวกับ ByteDance
ทีมเบื้องหลัง Seedance 2.0 และกลุ่มโมเดลอื่นๆ ของ ByteDance บน WaveSpeedAI
ByteDance — บริษัทเบื้องหลัง TikTok, CapCut และ Doubao — ดำเนินงานวิจัย AI ที่ใหญ่ที่สุดแห่งหนึ่งของโลก ทีม Seed และ Doubao ส่งมอบโมเดลระดับแนวหน้าด้านการสร้างวิดีโอ (Seedance) การสร้างและแก้ไขภาพ (Seedream, Nano Banana) และงานอวตาร / ลิปซิงก์ โมเดลเทรนบนข้อมูลระดับองค์กรภายในและนำขึ้นใช้งานจริงผ่านแอปผู้บริโภคของ ByteDance ก่อนเปิดตัวเป็น API
เริ่มสร้างด้วย Seedance 2.0 บน WaveSpeedAI
รับเครดิตเริ่มต้นฟรีเมื่อสมัคร API key เดียวใช้ได้กับโมเดล AI กว่า 1,000 รายการจาก ByteDance และผู้ให้บริการอื่นทุกราย