promptstringbắt buộc
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.
Thử model
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Gửi model này qua 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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
promptstringbắt buộcThe 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.
Mặc định: "auto"
Giá trị có thể dùng: "auto", "transparent", "opaque"
num_imagesintegerThe number of images to generate. Currently limited to 1.
Mặc định: 1
Tối thiểu: 1
Tối đa: 1
resolutionstringOutput resolution tier. 1K and 1.5K cost less; 2K is the highest quality.
Mặc định: "2K"
Giá trị có thể dùng: "1K", "1.5K", "2K"
aspect_ratiostringThe aspect ratio of the generated image. Leave unset to let the model choose from the prompt.
Giá trị có thể dùng: "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.
Mặc định: "png"
Giá trị có thể dùng: "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"
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
[
{
"url": "https://static.sandbase.ai/examples/e2e70611-24f1-41aa-b146-e16aaf7d0e79/output/d20d6d3e-dea4-4d3f-bd50-5a7824142172.png"
}
]