Seedance 2.0 Mini
ผสานการทำงาน
bytedance/seedance-2.0/mini/reference-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}'
# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.com/v1";
const headers = {
"Authorization": "Bearer " + process.env.DOITONG_API_KEY,
"Content-Type": "application/json",
};
// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);
// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
import os
import requests
API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bytedance/seedance-2.0/mini/reference-to-video", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])
# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
# 1. Connect once (Claude Code; Cursor, VS Code, Claude Desktop: https://doitong.com/th/developers/docs/mcp)
claude mcp add --transport http doitong-models https://api.doitong.com/v1/mcp \
--header "Authorization: Bearer $DOITONG_API_KEY"
# 2. Your agent calls the "run" tool with:
{
"model_id": "bytedance/seedance-2.0/mini/reference-to-video",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
}
เรียกใช้โมเดล Seedance 2.0 Mini (bytedance/seedance-2.0/mini/reference-to-video) ผ่าน Doitong API เอกสารสำหรับเอเจนต์: https://doitong.com/th/developers/models/bytedance/seedance-2.0/mini/reference-to-video.md
POST https://api.doitong.com/v1/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
หากสถานะการตอบกลับเป็น "queued" หรือ "running" ให้ส่งคำขอแบบสำรวจ GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 จนกว่าจะเป็น "succeeded" ไฟล์อยู่ใน outputs[].url การส่ง POST https://api.doitong.com/v1/quote/bytedance/seedance-2.0/mini/reference-to-video ด้วยบอดี้เดียวกันจะแสดงราคาที่แน่นอนก่อนเรียกใช้
ไฟล์เช่นเดียวกับตัวอย่าง: $2.321 2,321 เครดิต API ไฟล์ของคุณจะถูกวัดก่อนเรียกใช้ เรียกใช้ในหน้านี้
คีย์ API ใหม่ของคุณ คีย์นี้จะแสดงเฉพาะตอนนี้ และมีอยู่ในโค้ดและช่องคีย์ API ด้านล่างแล้ว เก็บเป็นความลับ: อย่าใส่คีย์นี้ไว้ในโค้ดที่ทำงานบนเบราว์เซอร์
สร้างบน Doitong
ผลงานสาธารณะที่สร้างด้วย Seedance 2.0 โดยชุมชน Doitong นำพรอมต์กลับมาใช้ได้ในคลิกเดียว
วิดีโอ
A close-up portrait of a striking cyberpunk woman with sleek dark hair partially wet and falling around her face. She’s wearing glossy, high-tech neon visor goggles with a vivid color gradient — bright yellow, orange, and pink reflecting glowing city lights. Her expression is confident and...
วิดีโอ
Ultra-realistic scene featuring miniature construction workers in orange vests and hard hats, actively working on a giant [pizza]. The tiny workers are using small tools, cranes, and machines to [assemble]. The [pizza] is placed on a metal surface or kitchen countertop. Steam or particles rise...
วิดีโอ
Two sandboarders racing down massive golden sand dunes, carving aggressively in wide S-curves, heading directly toward the camera in a low, dramatic angle. They are captured in mid-motion, kicking up thick trails of sand behind their boards. Both riders wear full protective sandboarding suits in...
วิดีโอ
A high-fashion cinematic video scene in slow motion, set on a wide white desert with fine rippled sand under a deep blue sky. A tall Black male model and a woman walk together in full-body view, directly toward the camera. The male model wears a dramatic flowing red trench coat, matching tailored...
วิดีโอ
A fashionable young woman with black hair, walking confidently down a modern city street. She is wearing stylish everyday fashion — a black turtleneck top, oversized gray blazer, and wide-leg black trousers with chunky black boots. Her outfit is monochrome, mostly black and gray, with minimalist...
วิดีโอ
Scene: On a large metal grill surface, miniature construction workers in orange safety vests and hard hats are preparing a giant steak. The raw meat, marbled and richly textured, rests across the hot grill. Some workers are spreading seasoning using tiny wheelbarrows filled with salt and pepper,...
วิดีโอ
Subject: Young woman with closed eyes Context: Surrounded by goldfish swimming in the air Action: Portraiture in a dreamy aesthetic Style: Ethereal, artistic, reminiscent of fine art photography Camera motion (optional): Composition (optional): Shallow depth of field Ambiance (optional): Soft...
วิดีโอ
один непрерывный кинематографический план от кадра 1 к кадру 2 без падения стекол. Кристалл над белым креслом вначале неподвижно парит, внутри светится золотисто-белое ядро. По мере трансформации по граням распространяется сеть трещин, оболочка раскалывается на крупные стеклянные пластины,...
วิดีโอ
Create a 6-second cinematic vertical science-fiction thriller video in 9:16 format. A 35-year-old male astronaut named Alex Rain lies unconscious on the metallic floor of a damaged spaceship emergency corridor. He has short dark hair, light stubble, tired blue-gray eyes, pale skin and an...
วิดีโอ
photorealistic, live-action film, real actress, ARRI Alexa look, desaturated cold tones, soft natural lighting, subtle dust in air, volumetric haze, consistent city destruction young fragile woman, pale skin, long dark ash-blonde hair, slightly messy, dirty torn gray nightgown, barefoot, natural...
วิดีโอ
Subject: Young man with a beard, large iridescent soap bubbles. Context: Outdoor park at sunset, blurred green foliage. Action: Man gently blows a large bubble from suds on his hand, bubbles float up in slow motion. Style: Cinematic, dreamlike, magical realism, ultra realistic. Camera motion:...
วิดีโอ
A cute young woman with curly red hair and freckles, wearing a simple white t-shirt, sitting in a stylish, modern café. She is about to take a bite of a large juicy burger, holding it with both hands. The lighting is warm and cinematic, with soft ambient glows from hanging lights in the...
วิดีโอ
Вертикальное видео 9:16, продолжительность 10 секунд. Кинематографичная реалистичная анимация, уютная кухня вечером, тёплое освещение. За небольшим столом сидят два красивых взрослых пушистых котика — влюблённая пара. Крупный рыжий кот с белой грудкой и густыми чёрными закрученными усами одет в...
วิดีโอ
Промпт для видео: трансформация 1 → 2 без падения стекол, один непрерывный план Исходные кадры Фото 1: точный первый кадр — кристалл парит над белым креслом, внутри негромко светится золотисто-белое ядро. Фото 2: точный последний кадр — человекоподобное кристаллическое существо по форме...
วิดีโอ
Создать трендовое вертикальное кинематографичное видео с реалистичным сохранением внешности обоих людей с приложенных фотографий: максимально точно передать черты лиц, причёски, комплекцию и узнаваемость каждого персонажа, без подмены лиц и искажения анатомии. Парень с первой фотографии — за...
วิดีโอ
Видео в стиле Дисней. ([0.0-4.0S] SCENE 1: PROBLEM SHOT SIZE: WIDE CAMERA: DOLLY IN ПО ОСИ КУШЕТКИ, EYE LEVEL, КАМЕРА СО СТОРОНЫ НОГ КУШЕТКИ, ОСТАЁТСЯ НА ОДНОЙ СТОРОНЕ ЛИНИИ ДЕЙСТВИЯ ACTION: ЗОЛУШКА ПОЧТИ ПЛЕТЁТСЯ ЧЕРЕЗ КАБИНЕТ ИЗ ОБЛАСТИ ОТКРЫТОЙ ДВЕРИ К БЕЛОЙ КУШЕТКЕ, ПЛЕЧИ ОПУЩЕНЫ, ШАГИ...
สร้างคำขอ
ตัวควบคุมสร้างจากสคีมาของโมเดล โค้ดและราคาจะอัปเดตเมื่อคุณเปลี่ยนค่า
/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20
ใบเสนอราคา → $2.321
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}'
# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.com/v1";
const headers = {
"Authorization": "Bearer " + process.env.DOITONG_API_KEY,
"Content-Type": "application/json",
};
// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bytedance/seedance-2.0/mini/reference-to-video?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);
// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
import os
import requests
API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bytedance/seedance-2.0/mini/reference-to-video", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])
# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run",
"arguments": {
"model_id": "bytedance/seedance-2.0/mini/reference-to-video",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
},
"wait_seconds": 20
}
}
}
เรียกใช้คำขอนี้
คีย์ของคุณจะอยู่ในเบราว์เซอร์นี้ โดยส่งไปยัง Doitong API เท่านั้น และจะบันทึกใน localStorage ก็ต่อเมื่อคุณเลือกจดจำ รับคีย์ API
เกี่ยวกับ Seedance 2.0 Mini
สร้างวิดีโอจากพรอมต์และสื่ออ้างอิง ได้แก่ `image_urls` สูงสุด 9 รายการ `video_urls` 3 รายการ และ `audio_urls` 3 รายการ โดยอ้างอิงในพรอมต์เป็น @Image1, @Video1, @Audio1 และรายการถัดไป เอาต์พุตเป็น 480p หรือ 720p ความยาว auto หรือ 4 ถึง 15 วินาที และมีอัตราส่วนภาพตั้งแต่ 21:9 ถึง 9:16 ระบบสร้างเสียงที่ซิงโครไนซ์ให้เป็นค่าเริ่มต้น
พารามิเตอร์
ส่งชื่อมาตรฐานหรือชื่อดั้งเดิมอย่างใดอย่างหนึ่งเท่านั้น ห้ามส่งทั้งสองชื่อ ชื่อมาตรฐาน
promptจำเป็น
image_urlsไม่บังคับ
images
video_urlsไม่บังคับ
videos
audio_urlsไม่บังคับ
audios
resolutionไม่บังคับ
durationไม่บังคับ
aspect_ratioไม่บังคับ
generate_audioไม่บังคับ
codecไม่บังคับ
end_user_idไม่บังคับ
พารามิเตอร์ไฟล์รับ URL https:// สาธารณะ, data: URI ขนาดไม่เกิน 10 MB หรือ file_url ของไฟล์ที่อัปโหลด ไฟล์
เอาต์พุต
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bytedance/seedance-2.0/mini/reference-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": 2321,
"usd": "2.321",
"charged": 2321,
"refunded": 0
},
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
},
"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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
"cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
}
}
ฟิลด์ของเอาต์พุต
- video
- object {url, content_type, file_name, file_size}ไฟล์วิดีโอที่สร้างขึ้น
- seed
- integerค่า Seed ที่ใช้ระหว่างการสร้าง
รูปแบบอื่นของ Seedance 2.0
โมเดลเพิ่มเติม: ภาพอ้างอิงเป็นวิดีโอ
สำหรับเอเจนต์ AI: หน้า Markdown นี้อยู่ที่ https://doitong.com/th/developers/models/bytedance/seedance-2.0/mini/reference-to-video.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt