imagesarrayआवश्यक
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.
model को आज़माएँ
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"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.
बिल्डिंग शुरू करें
इस model को 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"एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
imagesarrayआवश्यकList of URLs of input reference images. Up to 10 images are supported; if more are sent, only the last 10 are used.
promptstringआवश्यकThe 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.
डिफ़ॉल्ट: "auto"
संभावित मान: "auto", "transparent", "opaque"
num_imagesintegerThe number of edited images to generate. Currently limited to 1.
डिफ़ॉल्ट: 1
न्यूनतम: 1
अधिकतम: 1
resolutionstringOutput resolution tier. 1K and 1.5K cost less; 2K is the highest quality.
डिफ़ॉल्ट: "2K"
संभावित मान: "1K", "1.5K", "2K"
aspect_ratiostringThe aspect ratio of the edited image. Leave unset to follow the reference image.
संभावित मान: "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.
डिफ़ॉल्ट: "png"
संभावित मान: "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"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"url": "https://static.sandbase.ai/examples/49b822da-45bc-4cde-8457-340038e2e462/output/2c41712f-d80b-47a4-a4c3-ca4e8297776e.png"
}
]