อินพุตสคีมาจริง
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
字节上一代视频模型,可生成音画高精同步的视频内容
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
Run the form on the left. Results, polling status and cURL appear under the form.
This model is priced by the usage dimensions listed here. เปรียบเทียบราคาทั้งหมด.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
seedance-1.5-pro-720p/v1/jobsconst BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;
const headers = {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
};
const payload = {
"model": "seedance-1.5-pro-720p",
"input": {
"prompt": "电影感街头运镜,一辆跑车穿过雨夜霓虹街道",
"first_frame_url": "https://example.com/first.png",
"last_frame_url": "https://example.com/last.png",
"reference_image_urls": [
"https://example.com/ref.png"
],
"reference_video_urls": [
"https://example.com/ref.mp4"
],
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"seed": 12345,
"callback_url": "https://example.com/webhook",
"ratio": "16:9",
"frames": 121,
"camera_fixed": false,
"watermark": true,
"return_last_frame": false,
"service_tier": "auto",
"generate_audio": false,
"execution_expires_after": 600,
"draft": false
}
};
const submit = await fetch(`${BASE_URL}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(payload),
}).then((r) => r.json());
const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
.then((r) => r.json());
console.log(status);
Create a key in Console → API Keys and replace the placeholder in the sample.
README
字节上一代视频模型,可生成音画高精同步的视频内容
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
promptstring | จำเป็น | คำอธิบายข้อความของสิ่งที่ต้องการสร้าง |
first_frame_urlimage | ไม่บังคับ | ภาพที่ใช้เป็นเฟรมแรกของวิดีโอ |
last_frame_urlimage | ไม่บังคับ | ภาพที่ใช้เป็นเฟรมสุดท้ายของวิดีโอ |
reference_image_urlsarray | ไม่บังคับ | ภาพอ้างอิงหลายภาพเพื่อกำหนดทิศทางผลลัพธ์ |
reference_video_urlsarray | ไม่บังคับ | 参考视频 URL |
resolutionenum | ไม่บังคับ | ความละเอียดของผลลัพธ์ ตัวเลือก: 480p, 720p, 1080p. ค่าเริ่มต้น: 720p. |
durationnumber | ไม่บังคับ | ความยาวผลลัพธ์เป็นวินาที |
aspect_ratioenum | ไม่บังคับ | อัตราส่วนภาพของผลลัพธ์ ตัวเลือก: 16:9, 9:16, 1:1, 4:3, 3:4. |
seedinteger | ไม่บังคับ | ค่า seed สุ่ม ใช้ซ้ำเพื่อให้ได้ผลลัพธ์เดิม |
callback_urlstring | ไม่บังคับ | 回调地址 |
ratioenum | ไม่บังคับ | 画幅比例 ตัวเลือก: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9. ค่าเริ่มต้น: 16:9. |
framesinteger | ไม่บังคับ | 帧数 |
camera_fixedboolean | ไม่บังคับ | 固定镜头 ค่าเริ่มต้น: false. |
watermarkboolean | ไม่บังคับ | 水印 ค่าเริ่มต้น: true. |
return_last_frameboolean | ไม่บังคับ | 返回尾帧 ค่าเริ่มต้น: false. |
service_tierenum | ไม่บังคับ | 服务等级 ตัวเลือก: auto, standard, fast. ค่าเริ่มต้น: auto. |
generate_audioboolean | ไม่บังคับ | สร้างเสียงที่ซิงก์กับวิดีโอ ค่าเริ่มต้น: false. |
execution_expires_afterinteger | ไม่บังคับ | 任务超时秒数 |
draftboolean | ไม่บังคับ | 草稿模式 ค่าเริ่มต้น: false. |
เขียนพรอมต์เหมือนรายการช็อต ยิ่งกำกับละเอียด โมเดลยิ่งทำได้ดี
เริ่มด้วยวัตถุ สถานที่ การกระทำ สไตล์ และกล้องในประโยคเดียว
นักปั่นจักรยานขี่ไปบนถนนในป่าที่มีหมอกยามรุ่งเช้า สไตล์ภาพยนตร์ แทร็กกิ้งช็อตด้านข้างช้า ๆ
แบ่งคลิปเป็นช่วงเวลา เช่น 0–3 วินาที และ 3–6 วินาที แต่ละช่วงให้มีการกระทำที่ชัดเจนเพียงหนึ่งอย่าง
ใช้ขนาดช็อต (ไวด์ มีเดียม โคลสอัป) และการเคลื่อนกล้อง (ดันเข้า แพน โคจร ถือกล้อง) ได้โดยตรง
ปิดท้ายด้วยสิ่งที่คงที่ตลอดคลิป: แสง โทนสี อารมณ์ และเสียง
| พรอมต์ | |
|---|---|
| อ่อน | สุนัขกำลังวิ่ง |
| ดี | โกลเดนรีทรีฟเวอร์วิ่งเต็มฝีเท้าบนชายหาดเปียกยามพระอาทิตย์ตก ไล่ตามลูกบอลสีแดง 0–2 วินาที: แทร็กกิ้งช็อตมุมต่ำข้างสุนัข ทรายกระจาย 2–5 วินาที: คาบลูกบอลแล้วหันมาทางกล้อง ดันกล้องเข้าช้า ๆ แสงย้อนอุ่น ละอองทะเลบาง ๆ ระยะชัดตื้น มีเพียงเสียงคลื่น |
| รายการคิดเงิน | ราคา |
|---|---|
| 1 s+ | $0.025 ต่อวินาที |
List prices in USD. Your effective price also depends on the billing group attached to your API key. เปรียบเทียบราคาทั้งหมด
seedance-1.5-pro-1080pseedance-1.5-pro-480pseedream-5-0-lite-image-to-imageดูโมเดลวิดีโอทั้งหมดเรียกดู API Market
字节上一代视频模型,可生成音画高精同步的视频内容
ส่ง POST /v1/jobs พร้อม ID โมเดล seedance-1.5-pro-720p และ API คีย์ของคุณ ตัวอย่างพร้อมรันอยู่ในส่วน API ด้านบน
Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.
Create one in Console → API Keys. The same key works for every model on the gateway.
ได้ คุณนำสิ่งที่สร้างไปใช้ในโปรเจกต์เชิงพาณิชย์ได้ ภายใต้ข้อกำหนดของผู้ให้บริการโมเดล
字节上一代视频模型,可生成音画高精同步的视频内容