promptstringจำเป็น
The text prompt used to generate the image.
bytedance/seedream/5.5Seedream 5.5 by ByteDance generates photorealistic images from text prompts, with accurate small and multilingual text and native transparent-background (RGBA) output. Choose 1K, 1.5K or 2K resolution and ten aspect ratios.
ลองใช้โมเดล
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"aspect_ratio": "16:9",
"prompt": "Vibrant editorial of a model in contemporary fashion fused with West African textile patterns and beadwork, Campbell Addy bold aesthetic, saturated palette, dramatic studio lighting, celebratory cultural richness, striking contemporary portraiture"
}{
"aspect_ratio": "16:9",
"background": "transparent",
"output_format": "png",
"prompt": "A transparent acrylic standee with a Christmas theme, a rectangular outline, and a thin white edge on all sides that brings out the transparent material. Use a scrapbook collage style: place a red-and-green two-tone vinyl record with a golden rim at the center, surrounded by a dimensional Christmas wreath of acorn leaves and pine branches. Decorate the wreath with hand-drawn red berries, golden four-pointed stars, reindeer, and snowflake stickers. Overlay a minimalist white music-player UI below, with play/pause controls, a progress bar (01:24 / 04:32), and a volume icon. Use vintage red, forest green, champagne gold, and off-white. Add occasional highlights refracted by the acrylic thickness for a realistic product finish. Set a transparent background."
}{
"aspect_ratio": "16:9",
"background": "transparent",
"output_format": "png",
"prompt": "Embroidered appliqué vintage stickers, transparent background. Each patch reproduces real embroidery craftsmanship with extreme realism, featuring a dense, three-dimensional raised texture and a thick off-white merrow-stitched border; some elements (stars, pockets, etc.) also show authentic denim fabric texture with yellow double-needle topstitching. All designs are classic girly motifs: hearts, daisies, cherries, rainbows, teddy bears, butterflies, etc.; the text includes black handwritten cursive script reading \"Good VIBES\" and \"By Cecy Papper\"."
}Seedream 5.5 is ByteDance's latest image model (November 2026). It renders photorealistic textures and dense small or multilingual text, and it can output transparent-background (RGBA) PNGs directly from a prompt.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | — | Output shape. Omit to let the model choose from the prompt. |
resolution | 1K / 1.5K / 2K | 2K | Output resolution tier. 2K at 16:9 is 2816×1584. |
background | auto / transparent / opaque | auto | transparent returns a PNG with an alpha channel. |
num_images | integer 1–1 | 1 | Fixed at 1. |
output_format | png / jpeg | png | Use png for transparent backgrounds. |
$0.035 per image at 2K, $0.02 at 1K or 1.5K.
| Request | Price |
|---|---|
| One image, 1K or 1.5K | $0.02 |
| One image, 2K | $0.035 |
Failed runs are not charged.
background to transparent.jpeg output never has transparency, even with background set to transparent.Other Seedream endpoints: bytedance/seedream/5.5/edit, 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, bytedance/seedream/4.5.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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",
"prompt": "Vibrant editorial of a model in contemporary fashion fused with West African textile patterns and beadwork, Campbell Addy bold aesthetic, saturated palette, dramatic studio lighting, celebratory cultural richness, striking contemporary portraiture",
"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 และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
promptstringจำเป็นThe text prompt used to generate 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 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 generated image. Leave unset to let the model choose from the prompt.
ค่าที่เป็นไปได้: "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",
"prompt": "Vibrant editorial of a model in contemporary fashion fused with West African textile patterns and beadwork, Campbell Addy bold aesthetic, saturated palette, dramatic studio lighting, celebratory cultural richness, striking contemporary portraiture",
"background": "auto",
"num_images": 1,
"resolution": "2K",
"output_format": "png"
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"url": "https://static.sandbase.ai/examples/e2e70611-24f1-41aa-b146-e16aaf7d0e79/output/d20d6d3e-dea4-4d3f-bd50-5a7824142172.png"
}
]