imagesarrayobrigatório
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.5/editSeedream 5.5 Edit by ByteDance edits images with text instructions and up to 10 reference images. It keeps unedited regions stable across many rounds of editing and can return transparent-background (RGBA) PNGs.
Testar o modelo
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"aspect_ratio": "16:9",
"background": "opaque",
"images": [
"https://static.sandbase.ai/examples/49b822da-45bc-4cde-8457-340038e2e462/input/ef7b2adc-6272-4a5e-807f-5cbb86b8d6e2.png"
],
"prompt": "Have the person blow a round, semi-transparent pink bubblegum bubble. Preserve the identity, facial features, gaze, hairstyle, pearl earrings, clothing, pose, blue background, composition, and visual style of the person."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/0ecef5f9-55bb-42fc-8a0d-db2a30890c97/input/113c7716-c857-4ff3-886c-1e568ed83ce5.png",
"https://static.sandbase.ai/examples/0ecef5f9-55bb-42fc-8a0d-db2a30890c97/input/df42a4ca-9f9a-4f3b-90a2-cce916dc0d90.png"
],
"prompt": "Replace the clothing in image 1 with the outfit from image 2."
}{
"aspect_ratio": "16:9",
"background": "transparent",
"images": [
"https://static.sandbase.ai/examples/1b40c47b-476c-4367-b682-ae7d485f3e37/input/aa700d14-0936-4de4-b67d-33f7ee3c87f3.png",
"https://static.sandbase.ai/examples/1b40c47b-476c-4367-b682-ae7d485f3e37/input/29b7966a-8b23-4ab0-8a2c-fddb835bf8b5.png"
],
"output_format": "png",
"prompt": "Extract the sticker elements from Image 1 and Image 2 separately, then place all extracted stickers in one transparent-background image. Preserve the original text, colors, shapes, and details of each sticker; remove all background content other than the stickers. Arrange the stickers separately without overlap, with sharp and intact edges."
}Seedream 5.5 Edit changes or combines up to 10 images with a text instruction. It keeps unedited regions stable across many rounds of editing and can return transparent-background (RGBA) PNGs.
| 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 input image. |
resolution | 1K / 1.5K / 2K | 2K | Output resolution tier. |
background | auto / transparent / opaque | auto | transparent returns a PNG with an alpha channel; opaque keeps multi-round edits most consistent. |
num_images | integer 1–1 | 1 | Fixed at 1. |
output_format | png / jpeg | png | Use png for transparent backgrounds. |
$0.035 per output image at 2K ($0.02 at 1K or 1.5K), plus $0.008 for each input image.
| Inputs | 1K / 1.5K | 2K |
|---|---|---|
| 1 input image | $0.028 | $0.043 |
| 3 input images | $0.044 | $0.059 |
| 10 input images | $0.10 | $0.115 |
Failed runs are not charged.
Other Seedream endpoints: bytedance/seedream/5.5, bytedance/seedream/5.0/pro, bytedance/seedream/5.0/pro/edit, bytedance/seedream/5.0/flash, bytedance/seedream/5.0/flash/edit, bytedance/seedream/5.0/lite/edit, bytedance/seedream/4.5/edit.
Comece a construir
Envie este modelo pela SandBase Unified Run API.
# 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.5/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.",
"background": "auto",
"num_images": 1,
"resolution": "2K",
"output_format": "png"
}
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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
imagesarrayobrigatórioList of URLs of input reference images. Up to 10 images are supported; if more are sent, only the last 10 are used.
promptstringobrigatórioThe text prompt used to edit the image.
backgroundstringauto lets the model decide; transparent returns a PNG with an alpha channel (requires png output); opaque never adds transparency.
Padrão: "auto"
Valores possíveis: "auto", "transparent", "opaque"
num_imagesintegerThe number of edited images to generate. Currently limited to 1.
Padrão: 1
Mínimo: 1
Máximo: 1
resolutionstringOutput resolution tier. 1K and 1.5K cost less; 2K is the highest quality.
Padrão: "2K"
Valores possíveis: "1K", "1.5K", "2K"
aspect_ratiostringThe aspect ratio of the edited image. Leave unset to follow the reference image.
Valores possíveis: "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. Use png for transparent backgrounds.
Padrão: "png"
Valores possíveis: "jpeg", "png"
{
"model": "bytedance/seedream/5.5/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.",
"background": "auto",
"num_images": 1,
"resolution": "2K",
"output_format": "png"
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"url": "https://static.sandbase.ai/examples/49b822da-45bc-4cde-8457-340038e2e462/output/2c41712f-d80b-47a4-a4c3-ca4e8297776e.png"
}
]