Seedance 2.0 Fast Reference to Video
یکپارچهسازی
bytedance/seedance-2.0/fast/reference-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/fast/reference-to-video?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}'
# 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"
const API = "https://vit.doitong.com/api/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/fast/reference-to-video?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}),
});
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://vit.doitong.com/api/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png",
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": True,
}
# 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/fast/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/fa/developers/docs/mcp)
claude mcp add --transport http doitong-models https://vit.doitong.com/api/v1/mcp \
--header "Authorization: Bearer $DOITONG_API_KEY"
# 2. Your agent calls the "run" tool with:
{
"model_id": "bytedance/seedance-2.0/fast/reference-to-video",
"input": {
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}
}
مدل Seedance 2.0 Fast Reference to Video (bytedance/seedance-2.0/fast/reference-to-video) را از طریق Doitong API فراخوانی کنید. مستندات عاملها: https://doitong.com/fa/developers/models/bytedance/seedance-2.0/fast/reference-to-video.md
POST https://vit.doitong.com/api/v1/run/bytedance/seedance-2.0/fast/reference-to-video?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}
اگر وضعیت پاسخ "queued" یا "running" است، GET https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20 را تا زمانی که وضعیت "succeeded" شود بهطور دورهای فراخوانی کنید؛ فایلها در outputs[].url قرار دارند. ارسال POST https://vit.doitong.com/api/v1/quote/bytedance/seedance-2.0/fast/reference-to-video با همان بدنه، قیمت دقیق را پیش از اجرا برمیگرداند.
این درخواست: $۰٫۵۶۵ ۵۶۵ اعتبار API اجرای آن در این صفحه
کلید API جدید شما. این کلید فقط همین حالا نمایش داده میشود و از قبل در کد و فیلد کلید API زیر قرار گرفته است. آن را محرمانه نگه دارید: هرگز آن را در کدی که در مرورگر اجرا میشود قرار ندهید.
نمونهها
پرامپتCreate an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions. SCENE 1 — THE HUSKY APPROACHES A beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur. SCENE 2 — SOMETHING MOVES The Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression. SCENE 3 — THE SURPRISE A tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture. SCENE 4 — THE ADORABLE MOMENT The brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition. SCENE 5 — THE HEARTWARMING ENDING Both bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light. 🎥 Camera & Quality Instructions Photorealistic animal fur, eyes, whiskers, paws, and facial expressions. Natural animal anatomy and believable movement. Smooth cinematic tracking shots with realistic depth of field. Golden-hour lighting with cool blue shadows across the snow. Realistic snow particles, pawprints, and subtle wind. Natural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements. No dialogue, text, subtitles, logos, or watermarks. No cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions. Maintain consistent animal appearances throughout the entire video.
ساخت درخواست
کنترلها از شِمای مدل تولید میشوند. با تغییر آنها، کد و قیمت بهروزرسانی میشوند.
/run/bytedance/seedance-2.0/fast/reference-to-video?wait=20
قیمت → $۰٫۵۶۵
# 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/fast/reference-to-video?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}'
# 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"
const API = "https://vit.doitong.com/api/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/fast/reference-to-video?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
}),
});
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://vit.doitong.com/api/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png",
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": True,
}
# 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/fast/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/fast/reference-to-video",
"input": {
"prompt": "Create an ultra-realistic cinematic video of a beautiful black-and-white Siberian Husky with striking blue eyes exploring a snowy mountain landscape at sunset. The environment features pristine white snow, snow-covered pine trees, enormous snow-covered rocks, distant blue mountains, and warm golden sunlight illuminating the snow. Every animal must look completely realistic, with detailed fur, natural movements, and believable interactions.\n\nSCENE 1 — THE HUSKY APPROACHES \nA beautiful black-and-white Siberian Husky walks slowly through deep, powdery snow. Its paws sink naturally into the snow, sending tiny snow particles into the air. The camera follows the dog from a low angle as it lowers its head and sniffs the ground curiously. Warm sunset light illuminates its fur.\n\nSCENE 2 — SOMETHING MOVES \nThe Husky suddenly notices movement near a large snow-covered rock. It stops, raises its head, and turns its blue eyes toward the rock. Its ears stand upright, and its nose twitches as it investigates. The camera smoothly moves closer to capture its curious expression.\n\nSCENE 3 — THE SURPRISE \nA tiny, fluffy brown bunny cautiously peeks out from behind the rock. A second, smaller white bunny appears just behind it. Both rabbits have realistic fur, twitching noses, upright ears, and tiny paws. The Husky watches them with curiosity while maintaining a natural, relaxed posture.\n\nSCENE 4 — THE ADORABLE MOMENT \nThe brown bunny hops forward through the fresh snow, followed by the tiny white bunny. The Husky gently lowers its head toward them, sniffing the snow nearby. The rabbits pause and look toward the dog. Their contrasting sizes create a beautiful cinematic composition.\n\nSCENE 5 — THE HEARTWARMING ENDING \nBoth bunnies hop closer to the Husky. The dog remains calm and gently tilts its head, watching their movements with curious blue eyes. The camera slowly pulls back to reveal the three animals together in the glowing snowy landscape, surrounded by majestic mountains and warm sunset light.\n\n🎥 Camera & Quality Instructions\n\nPhotorealistic animal fur, eyes, whiskers, paws, and facial expressions.\n\nNatural animal anatomy and believable movement.\n\nSmooth cinematic tracking shots with realistic depth of field.\n\nGolden-hour lighting with cool blue shadows across the snow.\n\nRealistic snow particles, pawprints, and subtle wind.\n\nNatural ambient audio: soft winter wind, paws crunching in snow, and gentle rabbit movements.\n\nNo dialogue, text, subtitles, logos, or watermarks.\n\nNo cartoon appearance, artificial CGI look, distorted anatomy, duplicated animals, or sudden scene transitions.\n\nMaintain consistent animal appearances throughout the entire video.",
"images": [
"https://content.doitong.com/dev-api/2026/10/21/req_8iod92yjmwgt23lnwd9b32aw/0-tum_e2KxIyKfiLcxMKSh9_WqMV3cYt.png"
],
"resolution": "480p",
"duration": "5",
"aspect_ratio": "16:9",
"generate_audio": true
},
"wait_seconds": 20
}
}
}
اجرای این درخواست
کلید شما در این مرورگر باقی میماند: فقط به Doitong API ارسال میشود و فقط در صورت فعالکردن گزینه «یادآوری»، در localStorage ذخیره میشود. دریافت کلید API
درباره Seedance 2.0 Fast Reference to Video
حداکثر 9 تصویر، 3 ویدیو و 3 کلیپ صوتی را در پرامپت با نامهای @Image1، @Video1 و @Audio1 بهعنوان مرجع وارد کنید و یک صحنه 4 تا 15 ثانیهای با صدای همگامسازیشده در وضوح 480p یا 720p دریافت کنید. حداقل یک تصویر یا ویدیو لازم است و در مجموع حداکثر 12 فایل مجاز است؛ مجموع مدت ویدیوهای مرجع باید بین 2 تا 15 ثانیه باشد و مدت صدای مرجع حداکثر 15 ثانیه. ویدیوهای مرجع بابت مدت خود نیز هزینه دارند، بنابراین کلیپهای دارای مرجع ویدیویی بهازای هر ثانیه گرانتر هستند.
پارامترها
نام استاندارد یا نام بومی را ارسال کنید، نه هر دو. نامهای استاندارد
promptالزامی
image_urlsاختیاری
images
video_urlsاختیاری
videos
audio_urlsاختیاری
audios
resolutionاختیاری
durationاختیاری
aspect_ratioاختیاری
generate_audioاختیاری
bitrate_modeاختیاری
codecاختیاری
پارامترهای فایل یک URL عمومی https://، یک URI از نوع data: تا سقف 10 MB، یا file_url یک فایل بارگذاریشده را میپذیرند. فایلها
خروجی
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bytedance/seedance-2.0/fast/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": 565,
"usd": "0.565",
"charged": 565,
"refunded": 0
},
"input": {
"prompt": "@Image1 The white sneaker spins slowly on a wet neon street, puddle splashes in slow motion, punchy beat",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
],
"duration": 5,
"resolution": "480p"
},
"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"
}
}
فیلدهای خروجی
- video
- object {url, content_type, file_name, file_size}فایل ویدیویی تولیدشده.
- seed
- integerمقدار Seed اعمالشده هنگام تولید.
گونههای دیگر Seedance 2.0
مدلهای بیشتر: مرجع به ویدیو
برای عاملهای هوش مصنوعی: این صفحه بهصورت Markdown در دسترس است https://doitong.com/fa/developers/models/bytedance/seedance-2.0/fast/reference-to-video.md. همه مدلها و راهنماها: https://doitong.com/developers/llms.txt