Seedream · Lite · Edit
یکپارچهسازی
bytedance/seedream/v5/lite/edit
# 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/seedream/v5/lite/edit?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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}'
# 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/seedream/v5/lite/edit?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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}),
});
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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
],
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bytedance/seedream/v5/lite/edit", 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://api.doitong.com/v1/mcp \
--header "Authorization: Bearer $DOITONG_API_KEY"
# 2. Your agent calls the "run" tool with:
{
"model_id": "bytedance/seedream/v5/lite/edit",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}
}
مدل Seedream · Lite · Edit (bytedance/seedream/v5/lite/edit) را از طریق Doitong API فراخوانی کنید. مستندات عاملها: https://doitong.com/fa/developers/models/bytedance/seedream/v5/lite/edit.md
POST https://api.doitong.com/v1/run/bytedance/seedream/v5/lite/edit?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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}
اگر وضعیت پاسخ "queued" یا "running" است، GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 را تا زمانی که وضعیت "succeeded" شود بهطور دورهای فراخوانی کنید؛ فایلها در outputs[].url قرار دارند. ارسال POST https://api.doitong.com/v1/quote/bytedance/seedream/v5/lite/edit با همان بدنه، قیمت دقیق را پیش از اجرا برمیگرداند.
این درخواست: $۰٫۰۳۵ ۳۵ اعتبار API اجرای آن در این صفحه
کلید API جدید شما. این کلید فقط همین حالا نمایش داده میشود و از قبل در کد و فیلد کلید API زیر قرار گرفته است. آن را محرمانه نگه دارید: هرگز آن را در کدی که در مرورگر اجرا میشود قرار ندهید.
ساختهشده در Doitong
آثار عمومی ساختهشده با Seedream 5.0 توسط جامعه Doitong. یک پرامپت را با یک کلیک دوباره استفاده کنید.
Create a square profile picture featuring an abstract “5D” logo as an optical illusion. When viewed small or from a distance, the “5D” should appear instantly clear through lighting, shadows, contrast, and negative space. When enlarged or viewed up close, the letters should dissolve into complex...
Art style: Cinematic Realistic. The man's hand slowly and carefully reaches out to a wooden bookshelf filled with neatly bound books. His fingers glide effortlessly over the spines, as if he were selecting a book by touch. The warm, soft light of the golden hour falls from the side, highlighting...
Art style: Vibrant 3D Toy Render. A wide establishing shot from a low angle of a vibrant green meadow under a brilliant blue sky. A small blue tractor sits proudly in the center of a dirt path. Soft morning light casts long, gentle shadows across the grass. The mood is peaceful and full of...
На фоне шумного стадиона, Марк Ройс, в яркой форме, виртуозно обводит соперников, демонстрируя невероятную технику и ловкость. Он мчится к трибунам, полные восторженных болельщиков, его лицо выражает уверенность и радость. Вытянув руку вперед, над его ладонью парит сверкающий кристалл, окруженный...
make a long video with the following script The Greatest Story Ever Told: The Adi Parva Theme: Beginnings, Magic, and Family Scene 1: The Magical Forest (Setting: A peaceful forest with birds chirping. A group of young students are sitting around an old, wise storyteller named Rishi...
The Hook: Start with a blank piece of paper and a single, strange squiggle. The Action: Use a fast-motion (time-lapse) effect to turn that squiggle into a recognizable animal or character. The Twist: At the end, use a "transition" where you tap the drawing, and a real-life object related to the...
Ключевая задача: лицо девушки со второго фото должно быть полностью перерисовано в художественном, живописном стиле первой картины. Обработай черты лица так, чтобы они выглядели нарисованными, с видимыми мазками кисти, текстурой холста и в той же цветовой палитре, что и на первом изображении. При...
Art style: 3D Pixar. Аня сидит на полу в гостиной, пока ребенок спит девочкой 3х лет светловолосой , и рисует в большом скетчбуке акварелью. Она полностью поглощена процессом. Вокруг разложены краски и кисти. На ее лице — улыбка чистого, незамутненного счастья....
Art style: Y2K Retro. Фермерский двор с деревянными оградами и зелеными пастбищами. Вертикальная композиция от низкого угла, показывающая Артика, Шому и Мусь-Муся. Освещение яркое дневное солнце с резкими тенями. Атмосфера триумфальная и динамичная. Персонажи Артик и Шома стоят победно, Мусь-Мусь...
Art style: Cinematic Realistic. Maya standing in the middle ground; Mark standing further back in the frame. Maya is standing on marble floor in the middle ground in the midground. Torso facing away from camera. Head facing camera. Eyes on door lock. Right hand turning key, left hand holding...
Art style: Cinematic Realistic. Maya standing in the near foreground; Mark standing further back in the frame. Small space between their bodies. Maya is standing on stone courtyard floor in the near foreground in the midground. Torso in three-quarter turn to screen-right. Head in three-quarter...
Art style: Family Guy style 2D animation, vibrant colors, caricature of a financial expert, clean vector lines, high contrast, 4K resolution, professional motion graphics.. A vast, dark cosmic void with a massive glowing glass hourglass. Instead of sand, crisp green hundred-dollar bills spiral...
Art style: Family Guy style 2D animation, vibrant colors, caricature of a financial expert, clean vector lines, high contrast, 4K resolution, professional motion graphics.. A sleek, minimalist office with floor-to-ceiling windows overlooking a futuristic city. The interior features white desks...
Art style: 3D Pixar. Сучасна кухня вночі, освітлена лише холодним блакитним світлом відкритого холодильника. На абсолютно порожніх скляних полицях самотньо стоїть одна напівпорожня пляшка червоного кетчупу. Молодий чоловік заглядає всередину, тримаючись за дверцята. Кадр знято зсередини...
Art style: 3D Pixar. Макроплан рук, що тримають смартфон у темній кімнаті. На екрані відкрито банківський застосунок, де великими цифрами відображено баланс 47.00 грн. Світло від екрана відбивається на обличчі чоловіка, яке видно на задньому плані поза фокусом. Атмосфера напружена та тривожна....
Same character from the reference image, preserving the exact face and facial features, with long black braids, identical tattoos in placement and design, and maintaining the same proportions without distortion. The scene is an isometric cutaway of a small apartment floating in deep space, with...
ساخت درخواست
کنترلها از شِمای مدل تولید میشوند. با تغییر آنها، کد و قیمت بهروزرسانی میشوند.
/run/bytedance/seedream/v5/lite/edit?wait=20
قیمت → $۰٫۰۳۵
# 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/seedream/v5/lite/edit?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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}'
# 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/seedream/v5/lite/edit?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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
}),
});
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",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
],
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bytedance/seedream/v5/lite/edit", 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/seedream/v5/lite/edit",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
"images": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
},
"wait_seconds": 20
}
}
}
اجرای این درخواست
کلید شما در این مرورگر باقی میماند: فقط به Doitong API ارسال میشود و فقط در صورت فعالکردن گزینه «یادآوری»، در localStorage ذخیره میشود. دریافت کلید API
درباره Seedream · Lite · Edit
تصاویر را بر اساس یک پرامپت متنی ویرایش یا ترکیب میکند. `image_urls` حداکثر 10 ورودی میپذیرد؛ تصاویر بیشتر از 10 مورد حذف میشوند و 10 مورد آخر باقی میمانند. `image_size` پیشتنظیمها و همچنین auto_2K، auto_3K و auto_4K را ارائه میدهد. `num_images` از 1 تا 6 تولید اجرا میکند و `max_images` امکان چند تصویر در هر تولید را فراهم میکند.
پارامترها
نام استاندارد یا نام بومی را ارسال کنید، نه هر دو. نامهای استاندارد
promptالزامی
image_sizeاختیاری
num_imagesاختیاری
num_outputs
max_imagesاختیاری
enable_safety_checkerاختیاری
image_urlsالزامی
images
پارامترهای فایل یک URL عمومی https://، یک URI از نوع data: تا سقف 10 MB، یا file_url یک فایل بارگذاریشده را میپذیرند. فایلها
خروجی
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bytedance/seedream/v5/lite/edit",
"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": 35,
"usd": "0.035",
"charged": 35,
"refunded": 0
},
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
"image_urls": [
"https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
]
},
"output": {
"images": [
{
"url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
"content_type": "image/jpeg",
"file_name": "0-output.jpeg",
"file_size": 1843200,
"width": 1024,
"height": 768
}
],
"seed": 42
},
"outputs": [
{
"type": "image",
"url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
"content_type": "image/jpeg",
"file_size": 1843200,
"width": 1024,
"height": 768,
"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"
}
}
فیلدهای خروجی
- images
- array of object {url, content_type, file_name, file_size, width, height}تصویرهای تولیدشده توسط مدل.
- seed
- integerseed اعمالشده هنگام تولید.
گونههای دیگر Seedream 5.0
مدلهای بیشتر: ویرایش تصویر
برای عاملهای هوش مصنوعی: این صفحه بهصورت Markdown در دسترس است https://doitong.com/fa/developers/models/bytedance/seedream/v5/lite/edit.md. همه مدلها و راهنماها: https://doitong.com/developers/llms.txt



