imagesarrayrequerido
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.
Probar el modelo
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"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."
}Preferencia humana
Puntuaciones Elo a partir de votos ciegos comparativos, en comparación con otros modelos de imagen y video.
Clasificaciones obtenidas de Artificial Analysis Arena
Arena de edición de imagen: las personas eligen la mejor de dos ediciones de la misma imagen e instrucción, sin ver los nombres de los modelos.
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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
imagesarrayrequeridoList of URLs of input reference images. Up to 10 images are supported; if more are sent, only the last 10 are used.
promptstringrequeridoThe text prompt used to edit the image.
num_imagesintegerThe number of edited images to generate. Currently limited to 1.
Valor predeterminado: 1
Mínimo: 1
Máximo: 1
aspect_ratiostringThe aspect ratio of the edited 2K image. Leave unset to follow the reference image.
Valores posibles: "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.
Valor predeterminado: "jpeg"
Valores posibles: "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"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"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"
}
]