ข้ามไปยังเนื้อหา

Seedance 2.0 Image to Video

ผสานการทำงาน

ID โมเดล bytedance/seedance-2.0/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/bytedance/seedance-2.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create a 15-second high-fashion football shoe advertisement using the uploaded reference images for the gold metallic football cleats, white knee-high socks, and vintage feminine football styling. Keep the footwear design, colors, textures, and proportions consistent throughout the entire video.\n\nEnvironment: An enormous open outdoor football field, covered in lush natural green grass, with a completely open horizon and a beautiful dreamy pastel blue-and-pink sky. The field should feel spacious and untouched. No stadium, no spectators, no buildings, no bleachers, no indoor environment, no close fences.\n\n0–3 sec: Wide cinematic shot of a young adult female footballer standing alone in the middle of the vast open field. She wears the same elegant vintage-inspired outfit from the reference images with white knee-high socks and the gold metallic football cleats. She gently places one foot on a football. Camera slowly moves toward her while sunlight reflects beautifully off the cleats.\n\n3–6 sec: Cut to dramatic close-up shots of the gold cleats. Her foot steps firmly onto the grass, the studs press naturally into the turf, and she tightens the laces. Macro camera movement reveals the metallic texture, stitching, sole, and studs. Make the shoes the visual hero.\n\n6–10 sec: She starts playing football across the completely open field, dribbling the ball quickly and confidently. Use a low-angle tracking camera focused on her feet and cleats as she changes direction, accelerates, and controls the ball. Her flowing outfit moves naturally with her movement.\n\n10–13 sec: She takes a powerful run-up and strikes the football with the gold cleat. Capture the kick in cinematic slow motion, showing the shoe making contact with the ball, grass particles flying naturally, and the ball launching across the open field.\n\n13–15 sec: Premium hero shot. The football rolls to a stop beside her gold cleats. She stands confidently in the background on the vast green field as warm sunlight catches the metallic shoes. Camera slowly pushes toward the cleats and ends on a sharp product-focused close-up.\n\nVisual style: luxury sports fashion campaign, dreamy editorial photography, cinematic natural lighting, realistic football movement, realistic grass physics, elegant feminine styling, dynamic camera movement, macro shoe details, shallow depth of field, premium commercial quality, photorealistic, subtle film texture.\n\nImportant: Keep the gold football cleats identical throughout the video. No changing shoe design, no distorted feet, no extra limbs, no warped football, no artificial CGI appearance. The entire video takes place outdoors on one vast open football field.",
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_sqopxfgqcf2wwi52nmvquvqt/0-rDQn-y4KDEHOmkXtg-CzU_WVfJlbGl.png",
    "resolution": "480p",
    "duration": "5",
    "generate_audio": false
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

คำขอนี้: $0.705 705 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API
ByteDance ภาพเป็นวิดีโอ เสียงในตัวเอาต์พุต 4K4–15 sสูงสุด 4k #audio#first-last-frame

เปลี่ยนภาพเริ่มต้น (และภาพสิ้นสุดที่เป็นตัวเลือก) ให้เป็นฉากความยาว 4 ถึง 15 วินาทีพร้อมเสียง สูงสุด 4K

ตัวอย่าง

อินพุต
เอาต์พุต · ~215 s

พรอมต์Create a 15-second high-fashion football shoe advertisement using the uploaded reference images for the gold metallic football cleats, white knee-high socks, and vintage feminine football styling. Keep the footwear design, colors, textures, and proportions consistent throughout the entire video. Environment: An enormous open outdoor football field, covered in lush natural green grass, with a completely open horizon and a beautiful dreamy pastel blue-and-pink sky. The field should feel spacious and untouched. No stadium, no spectators, no buildings, no bleachers, no indoor environment, no close fences. 0–3 sec: Wide cinematic shot of a young adult female footballer standing alone in the middle of the vast open field. She wears the same elegant vintage-inspired outfit from the reference images with white knee-high socks and the gold metallic football cleats. She gently places one foot on a football. Camera slowly moves toward her while sunlight reflects beautifully off the cleats. 3–6 sec: Cut to dramatic close-up shots of the gold cleats. Her foot steps firmly onto the grass, the studs press naturally into the turf, and she tightens the laces. Macro camera movement reveals the metallic texture, stitching, sole, and studs. Make the shoes the visual hero. 6–10 sec: She starts playing football across the completely open field, dribbling the ball quickly and confidently. Use a low-angle tracking camera focused on her feet and cleats as she changes direction, accelerates, and controls the ball. Her flowing outfit moves naturally with her movement. 10–13 sec: She takes a powerful run-up and strikes the football with the gold cleat. Capture the kick in cinematic slow motion, showing the shoe making contact with the ball, grass particles flying naturally, and the ball launching across the open field. 13–15 sec: Premium hero shot. The football rolls to a stop beside her gold cleats. She stands confidently in the background on the vast green field as warm sunlight catches the metallic shoes. Camera slowly pushes toward the cleats and ends on a sharp product-focused close-up. Visual style: luxury sports fashion campaign, dreamy editorial photography, cinematic natural lighting, realistic football movement, realistic grass physics, elegant feminine styling, dynamic camera movement, macro shoe details, shallow depth of field, premium commercial quality, photorealistic, subtle film texture. Important: Keep the gold football cleats identical throughout the video. No changing shoe design, no distorted feet, no extra limbs, no warped football, no artificial CGI appearance. The entire video takes place outdoors on one vast open football field.

5 s480pgenerate_audio: false$0.705 · 705 เครดิต API

พรอมต์จาก @soulful__ai บน X

สร้างคำขอ

ตัวควบคุมสร้างจากสคีมาของโมเดล โค้ดและราคาจะอัปเดตเมื่อคุณเปลี่ยนค่า

•จำเป็น

คำสั่งการเคลื่อนไหวและการกระทำของวิดีโอที่ระบุเป็นพรอมต์ข้อความ

•จำเป็น image_url
วางไฟล์ หรือ

URL ของรูปภาพเริ่มต้นที่จะนำมาทำให้เคลื่อนไหว รูปแบบที่รองรับคือ JPEG, PNG, WebP และจำกัดขนาดไม่เกิน 30 MB

duration 5 s

การเลือกความยาววิดีโอ: `auto` มอบหมายให้โมเดลเลือกโดยใช้พรอมต์ ส่วนระยะเวลาที่ระบุชัดเจนต้องอยู่ระหว่าง 4 ถึง 15 วินาที

resolution

ความละเอียดเอาต์พุต: 480p ให้ความสำคัญกับความเร็ว, 720p ให้ความสมดุล, 1080p ให้คุณภาพสูง และ 4k ให้คุณภาพสูงสุด

aspect_ratio ค่าเริ่มต้น auto

อัตราส่วนภาพเอาต์พุต: 16:9 ให้ภาพแนวนอน, 9:16 ให้ภาพแนวตั้ง, 1:1 ให้ภาพสี่เหลี่ยมจัตุรัส และ 21:9 ให้ภาพยนตร์อัลตราไวด์ เลือก `auto` เพื่อให้อัตราส่วนอ้างอิงจากรูปภาพอินพุต

ขั้นสูง end_image · bitrate_mode · codec
end_image_url
วางไฟล์ หรือ

URL ที่ชี้ไปยังรูปภาพ JPEG, PNG หรือ WebP ขนาดไม่เกิน 30 MB ซึ่งกำหนดเฟรมสุดท้ายของวิดีโอ การระบุรูปภาพนี้จะทำให้รูปภาพดังกล่าวเป็นจุดหมายของการเปลี่ยนผ่านในวิดีโอที่สร้างขึ้น โดยเริ่มจากรูปภาพเริ่มต้น

bitrate_mode ค่าเริ่มต้น standard

เลือกบิตเรตการเข้ารหัสเอาต์พุต: 'standard' จะคงค่าเริ่มต้นไว้ ส่วน 'high' ขอให้โมเดลปรับปรุงคุณภาพการเข้ารหัสโดยแลกกับขนาดไฟล์ที่ใหญ่ขึ้น

codec ค่าเริ่มต้น auto

การเลือกโคเดกวิดีโอ: `auto` จะคงการทำงานของโคเดกเริ่มต้นไว้, `H264` จะเลือก H.264 และ `H265` จะเลือก H.265

POST /run/bytedance/seedance-2.0/image-to-video?wait=20 ใบเสนอราคา → $0.705
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/bytedance/seedance-2.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create a 15-second high-fashion football shoe advertisement using the uploaded reference images for the gold metallic football cleats, white knee-high socks, and vintage feminine football styling. Keep the footwear design, colors, textures, and proportions consistent throughout the entire video.\n\nEnvironment: An enormous open outdoor football field, covered in lush natural green grass, with a completely open horizon and a beautiful dreamy pastel blue-and-pink sky. The field should feel spacious and untouched. No stadium, no spectators, no buildings, no bleachers, no indoor environment, no close fences.\n\n0–3 sec: Wide cinematic shot of a young adult female footballer standing alone in the middle of the vast open field. She wears the same elegant vintage-inspired outfit from the reference images with white knee-high socks and the gold metallic football cleats. She gently places one foot on a football. Camera slowly moves toward her while sunlight reflects beautifully off the cleats.\n\n3–6 sec: Cut to dramatic close-up shots of the gold cleats. Her foot steps firmly onto the grass, the studs press naturally into the turf, and she tightens the laces. Macro camera movement reveals the metallic texture, stitching, sole, and studs. Make the shoes the visual hero.\n\n6–10 sec: She starts playing football across the completely open field, dribbling the ball quickly and confidently. Use a low-angle tracking camera focused on her feet and cleats as she changes direction, accelerates, and controls the ball. Her flowing outfit moves naturally with her movement.\n\n10–13 sec: She takes a powerful run-up and strikes the football with the gold cleat. Capture the kick in cinematic slow motion, showing the shoe making contact with the ball, grass particles flying naturally, and the ball launching across the open field.\n\n13–15 sec: Premium hero shot. The football rolls to a stop beside her gold cleats. She stands confidently in the background on the vast green field as warm sunlight catches the metallic shoes. Camera slowly pushes toward the cleats and ends on a sharp product-focused close-up.\n\nVisual style: luxury sports fashion campaign, dreamy editorial photography, cinematic natural lighting, realistic football movement, realistic grass physics, elegant feminine styling, dynamic camera movement, macro shoe details, shallow depth of field, premium commercial quality, photorealistic, subtle film texture.\n\nImportant: Keep the gold football cleats identical throughout the video. No changing shoe design, no distorted feet, no extra limbs, no warped football, no artificial CGI appearance. The entire video takes place outdoors on one vast open football field.",
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_sqopxfgqcf2wwi52nmvquvqt/0-rDQn-y4KDEHOmkXtg-CzU_WVfJlbGl.png",
    "resolution": "480p",
    "duration": "5",
    "generate_audio": false
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

เรียกใช้คำขอนี้

คีย์ของคุณจะอยู่ในเบราว์เซอร์นี้ โดยส่งไปยัง Doitong API เท่านั้น และจะบันทึกใน localStorage ก็ต่อเมื่อคุณเลือกจดจำ รับคีย์ API

เกี่ยวกับ Seedance 2.0 Image to Video

Seedance 2.0 ทำให้เฟรมแรกของคุณเคลื่อนไหวเป็นฉากหลายช็อตพร้อมบทสนทนาและเอฟเฟกต์เสียงที่ซิงค์กัน โดยคงรูปลักษณ์ของภาพไว้ เพิ่มภาพสิ้นสุดเพื่อควบคุมจุดจบของคลิป ความยาว 4 ถึง 15 วินาทีหรือ อัตโนมัติ อัตราส่วนภาพแบบปรับตามเนื้อหาหรือกำหนดตายตัว ความละเอียด 480p ถึง 4K

พารามิเตอร์

ส่งชื่อมาตรฐานหรือชื่อดั้งเดิมอย่างใดอย่างหนึ่งเท่านั้น ห้ามส่งทั้งสองชื่อ ชื่อมาตรฐาน

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
คำสั่งการเคลื่อนไหวและการกระทำของวิดีโอที่ระบุเป็นพรอมต์ข้อความ
image_urlจำเป็น image
ประเภทurl · image
URL ของรูปภาพเริ่มต้นที่จะนำมาทำให้เคลื่อนไหว รูปแบบที่รองรับคือ JPEG, PNG, WebP และจำกัดขนาดไม่เกิน 30 MB
end_image_urlไม่บังคับ end_image
ประเภทurl · image
URL ที่ชี้ไปยังรูปภาพ JPEG, PNG หรือ WebP ขนาดไม่เกิน 30 MB ซึ่งกำหนดเฟรมสุดท้ายของวิดีโอ การระบุรูปภาพนี้จะทำให้รูปภาพดังกล่าวเป็นจุดหมายของการเปลี่ยนผ่านในวิดีโอที่สร้างขึ้น โดยเริ่มจากรูปภาพเริ่มต้น
resolutionไม่บังคับ
ประเภทenum
ค่าเริ่มต้น720p
480p720p1080p4k
ความละเอียดเอาต์พุต: 480p ให้ความสำคัญกับความเร็ว, 720p ให้ความสมดุล, 1080p ให้คุณภาพสูง และ 4k ให้คุณภาพสูงสุด
durationไม่บังคับ
ประเภทenum
ค่าเริ่มต้นauto
auto456789101112131415
การเลือกความยาววิดีโอ: `auto` มอบหมายให้โมเดลเลือกโดยใช้พรอมต์ ส่วนระยะเวลาที่ระบุชัดเจนต้องอยู่ระหว่าง 4 ถึง 15 วินาที
aspect_ratioไม่บังคับ
ประเภทenum
ค่าเริ่มต้นauto
auto21:916:94:31:13:49:16
อัตราส่วนภาพเอาต์พุต: 16:9 ให้ภาพแนวนอน, 9:16 ให้ภาพแนวตั้ง, 1:1 ให้ภาพสี่เหลี่ยมจัตุรัส และ 21:9 ให้ภาพยนตร์อัลตราไวด์ เลือก `auto` เพื่อให้อัตราส่วนอ้างอิงจากรูปภาพอินพุต
generate_audioไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
เปิดใช้งานตัวเลือกนี้เพื่อให้วิดีโอมีเสียงที่ซิงโครไนซ์มาด้วย เสียงที่สร้างขึ้นจะมีเสียงพูดที่ตรงกับการขยับริมฝีปาก เสียงบรรยากาศ และเอฟเฟกต์เสียง
bitrate_modeไม่บังคับ
ประเภทenum
ค่าเริ่มต้นstandard
standardhigh
เลือกบิตเรตการเข้ารหัสเอาต์พุต: 'standard' จะคงค่าเริ่มต้นไว้ ส่วน 'high' ขอให้โมเดลปรับปรุงคุณภาพการเข้ารหัสโดยแลกกับขนาดไฟล์ที่ใหญ่ขึ้น
codecไม่บังคับ
ประเภทenum
ค่าเริ่มต้นauto
autoH264H265
การเลือกโคเดกวิดีโอ: `auto` จะคงการทำงานของโคเดกเริ่มต้นไว้, `H264` จะเลือก H.264 และ `H265` จะเลือก H.265
จำเป็น ชื่อมาตรฐาน ซึ่งรองรับเช่นกัน

พารามิเตอร์ไฟล์รับ URL https:// สาธารณะ, data: URI ขนาดไม่เกิน 10 MB หรือ file_url ของไฟล์ที่อัปโหลด ไฟล์

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bytedance/seedance-2.0/image-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 705,
    "usd": "0.705",
    "charged": 705,
    "refunded": 0
  },
  "input": {
    "prompt": "The fox stops, looks up at the fireflies and leaps to catch one, playful mood, gentle music",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "duration": 5,
    "resolution": "720p"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ไฟล์ของคุณ คุณเลือกเองทุก outputs[].url คือสำเนาบนพื้นที่จัดเก็บของเรา: เก็บไว้ตลอดไป (คิดค่าบริการต่อ GB-เดือน) หรือฟรี 7 วัน โดยกำหนดได้ในการตั้งค่าบัญชีหรือ ?storage=
รูปแบบเดียวกันในทุกโมเดลtype, url, content_type, width, height และ duration สำหรับภาพ วิดีโอ และเสียงเหมือนกันทั้งหมด ส่วน output คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
video
object {url, content_type, file_name, file_size}ไฟล์วิดีโอที่สร้างขึ้น
seed
integerค่า Seed ที่ใช้ระหว่างการสร้าง

โมเดลเพิ่มเติม: ภาพเป็นวิดีโอ

สำหรับเอเจนต์ AI: หน้า Markdown นี้อยู่ที่ https://doitong.com/th/developers/models/bytedance/seedance-2.0/image-to-video.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt