imagesarrayzorunlu
List of URLs of input reference images. Up to 10 images are supported; if more are sent, only the last 10 are used.
bytedance/seedream/5.0/pro/editSeedream 5.0 Pro is Bytedance's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.
Modeli deneyin
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"images": [
"https://static.sandbase.ai/examples/a41b72ba-8748-49c4-9eca-e1a1d1566e86/input/83baa511-b454-4c5e-b799-66cf7a0c47fb.png",
"https://static.sandbase.ai/examples/a41b72ba-8748-49c4-9eca-e1a1d1566e86/input/e8207f7d-83ad-4d7d-a340-cd3c53a00319.png",
"https://static.sandbase.ai/examples/a41b72ba-8748-49c4-9eca-e1a1d1566e86/input/9bf41b90-b1b3-4b70-98cc-5616f8c52af1.png"
],
"prompt": "Replace the product in Figure 1 with that in Figure 2. Seamlessly render the logo in Figure 3 into the product design, in a frosted glass texture."
}İnsan tercihi
Kör yan yana oylamalardan elde edilen Elo puanları, diğer görsel ve video modelleriyle karşılaştırılır.
Sıralamalar Artificial Analysis Arena kaynaklıdır
Görsel düzenleme arena: kullanıcılar, model adlarını görmeden aynı görsel ve yönergeden yapılan iki düzenlemeden daha iyisini seçer.
Seedream 5.0 Pro edit: change or fuse up to 10 images with an instruction while keeping identity, products, and text consistent.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
images | image URL[] (≤10), required | — | Images to edit or combine, Image 1, Image 2, … |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | — | Omit to follow the first input image. |
num_images | integer 1–1 | 1 | Fixed at 1. |
output_format | jpeg / png | jpeg | Output file format. |
$0.09 per output image plus $0.003 for each input image after the first.
| Inputs | Price |
|---|---|
| 1 input image | $0.09 |
| 3 input images | $0.096 |
| 10 input images | $0.117 |
Failed runs are not charged.
Other Seedream endpoints: bytedance/seedream/5.0/pro, bytedance/seedream/5.0/lite, bytedance/seedream/5.0/lite/edit, bytedance/seedream/5.0/flash, bytedance/seedream/5.0/flash/edit, bytedance/seedream/4.5, bytedance/seedream/4.5/edit.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bytedance/seedream/5.0/pro/edit",
"images": [
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_0.png",
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_1.png",
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_2.png"
],
"prompt": "Replace the product in Figure 1 with that in Figure 2. Seamlessly render the logo in Figure 3 into the product design, in a frosted glass texture.",
"num_images": 1,
"output_format": "jpeg"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
imagesarrayzorunluList of URLs of input reference images. Up to 10 images are supported; if more are sent, only the last 10 are used.
promptstringzorunluThe text prompt used to edit the image.
num_imagesintegerThe number of edited images to generate. Currently limited to 1.
Varsayılan: 1
Minimum: 1
Maksimum: 1
aspect_ratiostringThe aspect ratio of the edited 2K image. Leave unset to follow the reference image.
Olası değerler: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
output_formatstringThe file format of the generated image.
Varsayılan: "jpeg"
Olası değerler: "jpeg", "png"
{
"model": "bytedance/seedream/5.0/pro/edit",
"images": [
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_0.png",
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_1.png",
"https://static.sandbase.ai/examples/bytedance/seedream/5.0/pro/edit/input_images_2.png"
],
"prompt": "Replace the product in Figure 1 with that in Figure 2. Seamlessly render the logo in Figure 3 into the product design, in a frosted glass texture.",
"num_images": 1,
"output_format": "jpeg"
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"source": "ByteDance/Volcengine schema mirror",
"source_url": "https://docs.volcengine.com/docs/ark/seedance-2-0",
"url": "https://static.sandbase.ai/examples/a41b72ba-8748-49c4-9eca-e1a1d1566e86/output/d2d69592-39c3-463f-accc-a338272a97b9.png"
}
]