The short answer: ByteDance's Seedream 5.5 API (model ID seedream-5-5) is live on HopBase over the synchronous OpenAI-compatible POST https://api.hop-base.com/v1/images/generations and POST https://api.hop-base.com/v1/images/edits endpoints at official per-image list prices: $0.02 per image up to 2.61 MP (covering both 1K and 1.5K) and $0.035 per image above 2.61 MP (covering 2K up to 4,624,220 pixels), plus $0.008 per input reference image. Compared with Seedream 5.0 Pro (seedream-5-0-pro at $0.045 / $0.09), seedream-5-5 lowers base generation cost by up to 61.1% while supporting up to 10 reference images, PNG or JPEG output, transparent backgrounds (background: "transparent"), and custom WIDTHxHEIGHT dimensions across aspect ratios from 1:16 to 16:1. Meanwhile, Seedream 5.0 Flash (seedream-5-0-flash) offers flat $0.018 2K generation with free reference inputs, and Seedream 5.0 Lite handles 3K–4K output up to 16,777,216 pixels. Confirm key availability via GET /v1/models first.
Official List Prices & Specs: Seedream 5.0 Pro / Flash vs 5.5 (Plus 5.0 Lite & 4.5)
All five ByteDance Seedream image models share a single Seedream group on HopBase, but they split cleanly across pixel ceilings, per-reference input charges, and specialized editing features. Here is the verified side-by-side comparison at official list prices:
| Model & Public ID | Size Tiers | Custom Total Pixels | Output List Price (≤ 2.61 MP / > 2.61 MP) | Max References & Input Fee | Formats & Exclusive Capabilities |
|---|---|---|---|---|---|
Seedream 5.5seedream-5-5 |
1K / 1.5K / 2K |
921,600 – 4,624,220 | $0.02 / $0.035 per image | Up to 10 · $0.008 / ref | png / jpeg; background: transparent; standard prompt mode |
Seedream 5.0 Proseedream-5-0-pro |
1K / 1.5K / 2K |
921,600 – 4,624,220 | $0.045 / $0.09 per image | Up to 10 · $0.003 / ref | png / jpeg; exclusive layer_decomposition ($0.0225 / $0.045 per layer) & fast prompt mode |
Seedream 5.0 Flashseedream-5-0-flash |
1K / 1.5K / 2K |
921,600 – 4,624,220 | $0.018 / $0.018 per image | Up to 10 · Free ($0) | png / jpeg; background: transparent; lowest-cost multi-ref 2K edits |
Seedream 5.0 Liteseedream-5-0-lite |
2K / 3K / 4K |
3,686,400 – 16,777,216 | $0.035 / $0.035 per image | Up to 14 · Free ($0) | png / jpeg; 4K output, group generation (≤ 15 images) & SSE stream |
Seedream 4.5seedream-4-5 |
2K / 4K |
3,686,400 – 16,777,216 | $0.04 / $0.04 per image | Up to 14 · Free ($0) | jpeg only; 4K output, group generation & SSE stream |
Billing & reconciliation notes: all figures above are ByteDance's official per-image list prices (published on the HopBase pricing page). Every successful synchronous response includes usage.cost_usd (exact USD deducted from your balance) and usage.cost (CNY equivalent, usage.currency: "CNY") in the JSON body alongside the X-HopBase-Cost-USD header. Parameter validation errors (HTTP 400) and content-safety rejections are never billed. Enterprise teams can request tailored volume quotes via the pricing page.
Custom Pixel Resolution Bounds & Unit Economics: Making the 2.61 MP Threshold Work for You
Understanding ByteDance's 2,610,000-pixel (2.61 MP) billing boundary and reference-image pricing unlocks immediate unit-cost wins across creative and e-commerce workloads:
- Always prefer
1.5Kover1Konseedream-5-5:1.5Kresolves to1536×1536 = 2,359,296pixels—comfortably inside the ≤ 2.61 MP tier. You pay the exact same $0.02 list price as1K(1024×1024) while getting 2.25× more pixels, saving 55.6% compared withseedream-5-0-pro($0.045). Stepping up to2K(2048×2048 = 4,194,304pixels) costs $0.035—61.1% belowseedream-5-0-pro's $0.09 2K tier. - When
seedream-5-0-flashbeatsseedream-5-5on multi-reference edits:seedream-5-5bills $0.008 on every input reference image, whereasseedream-5-0-flashcharges a flat $0.018 at 1K/1.5K/2K with zero per-reference fee. For a 2K composition combining 5 product and style references,seedream-5-5lists at$0.035 + 5 × $0.008 = $0.075(ideal for hero key visuals requiring 5.5's latest aesthetics and typography), whereas high-volume catalog variations onseedream-5-0-flashcost just $0.018 total. - Exact custom
WIDTHxHEIGHTbounds: Onseedream-5-5,seedream-5-0-pro, andseedream-5-0-flash, customWIDTHxHEIGHTstrings must total between 921,600 and 4,624,220 pixels (for example2560x1440 = 3,686,400or1920x1080 = 2,073,600; sending"4K"or"auto"returns HTTP 400). For3Kor4Koutput between 3,686,400 and 16,777,216 pixels, route toseedream-5-0-lite($0.035/image; note that Lite rejects1Kand1.5K). Every Seedream model accepts aspect ratios from1:16through16:1. - Keep
seedream-5-0-profor layer decomposition: Onlyseedream-5-0-prosupports"layer_decomposition": true(splitting one input image into a base canvas plus up to 16 transparent PNG layers withbounding_boxcoordinates).seedream-5-5returns HTTP 400 forlayer_decomposition,sequential_image_generation, andstream.
Multi-Reference Image Editing Contract: POST /v1/images/generations & /v1/images/edits
Seedream runs synchronously on HopBase (Prefer: respond-async is ignored—do not poll /v1/images/tasks) and exposes two OpenAI-compatible entry points:
- Canonical JSON endpoint —
POST /v1/images/generations: Omitimagefor text-to-image, or passimage(a single public HTTP(S) URL / base64 Data URL string, or an array of up to 10 strings onseedream-5-5) for single-image edits, style transfer, and multi-image composition. Each input image can be up to 30 MiB / 36 MP in JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, or HEIF. - OpenAI multipart/JSON adapter —
POST /v1/images/edits: Accepts standardmultipart/form-datafile uploads (imageor repeatableimage[]) or JSON payloads with at least one reference image, so existingclient.images.edit(...)code connects without rewriting transport logic. - No binary
mask(evennullreturns 400) & transparent background rules: Seedream performs spatial/local edits via visual prompt grounding rather than alpha masks—passingmaskortoolsreturns HTTP 400 before generation. To edit a local region, draw a bounding box, arrow, or highlight on a reference image and reference it inprompt. Keepnat1(default). For alpha cutouts onseedream-5-5, pass"background": "transparent"with exactly one alpha-capable input image (such as PNG) andoutput_format: "png".
Python (OpenAI SDK) & cURL Code Examples
Create an API key that includes the Seedream group in the HopBase console and verify seedream-5-5 in GET /v1/models:
curl https://api.hop-base.com/v1/models \
-H "Authorization: Bearer $HOPBASE_API_KEY"
1. cURL on POST /v1/images/generations (1.5K Text-to-Image at $0.02 + Multi-Reference JSON Composition):
# Text-to-image at 1.5K (1536x1536 = 2.36 MP ≤ 2.61 MP): bills at the $0.02 tier!
curl https://api.hop-base.com/v1/images/generations \
-H "Authorization: Bearer $HOPBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-5",
"prompt": "Minimalist frosted glass skincare bottle standing on wet black basalt stone, dappled morning sunlight through botanical leaves, crisp serif label reading LUMINA, commercial studio photography",
"size": "1.5K",
"output_format": "png",
"response_format": "url"
}'
# Multi-reference image editing (JSON): fuse subject + environment references at 2K
curl https://api.hop-base.com/v1/images/generations \
-H "Authorization: Bearer $HOPBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-5",
"prompt": "Keep the exact silhouette and colorway of the sneaker in image 1 and place it on the rain-slicked neon rooftop from image 2 with matching low-angle wide perspective",
"image": [
"https://example.com/sneaker-subject.png",
"https://example.com/rooftop-style.png"
],
"size": "2K",
"output_format": "png",
"response_format": "url"
}'
2. cURL Multipart Upload on POST /v1/images/edits (Custom WIDTHxHEIGHT Banner):
curl https://api.hop-base.com/v1/images/edits \
-H "Authorization: Bearer $HOPBASE_API_KEY" \
-F "model=seedream-5-5" \
-F "prompt=Combine the product bottle in image 1 with the warm golden editorial set in image 2 into a widescreen hero banner" \
-F "image[]=@./product.png" \
-F "image[]=@./moodboard.png" \
-F "size=2560x1440" \
-F "output_format=png"
3. Python OpenAI SDK Integration (client.images.generate + client.images.edit). Signed image links in data[0].url remain valid for 24 hours (expiring permanently afterward), so download generated files immediately or request response_format="b64_json":
import os
import urllib.request
from openai import OpenAI
client = OpenAI(
base_url="https://api.hop-base.com/v1",
api_key=os.environ["HOPBASE_API_KEY"],
)
# 1) Custom pixel size generation (2560x1440 = 3,686,400 px, within 921,600–4,624,220)
gen_resp = client.images.generate(
model="seedream-5-5",
prompt="A sunlit Scandinavian coffee bar interior with clean oak counters, architectural photography",
size="2560x1440",
response_format="url",
extra_body={"output_format": "png"},
)
urllib.request.urlretrieve(gen_resp.data[0].url, "seedream_5_5_banner.png")
# 2) Multi-file reference edit via /v1/images/edits
with open("product.png", "rb") as img_a, open("moodboard.png", "rb") as img_b:
edit_resp = client.images.edit(
model="seedream-5-5",
prompt="Place the bottle from image 1 onto the stone podium from image 2 while preserving label typography",
image=[img_a, img_b],
size="1.5K",
response_format="url",
)
urllib.request.urlretrieve(edit_resp.data[0].url, "seedream_5_5_edited.png")
For complete parameter tables, SSE group streaming on Lite, and Pillow layer-recomposition snippets, read the Seedream API documentation (/docs/media/seedream), Seedream 5.5 model card, Seedream 5.0 Pro model card, Seedream 5.0 Flash model card, and the HopBase model catalog.
FAQ
When should I pick seedream-5-5 over seedream-5-0-pro or seedream-5-0-flash?
Use seedream-5-5 as your default flagship for text-to-image, typography, and high-fidelity key visuals: at $0.02 (1K/1.5K) and $0.035 (2K), its base output rate is 55.6%–61.1% below seedream-5-0-pro ($0.045 / $0.09). Switch to seedream-5-0-flash ($0.018 flat up to 2K with up to 10 free reference images) when running high-volume multi-reference catalog edits where seedream-5-5's $0.008 per-reference fee adds up, and reserve seedream-5-0-pro for layer_decomposition: true or optimize_prompt_options.mode: "fast".
Why does seedream-5-5 return HTTP 400 when I pass size: "4K", mask, or stream: true?
HopBase validates model-specific capabilities strictly rather than silently ignoring unsupported fields. seedream-5-5 caps total output pixels at 4,624,220 (1K, 1.5K, 2K) and does not support streaming or group generation—use seedream-5-0-lite for 3K/4K output (up to 16,777,216 pixels) or SSE streaming. Likewise, no Seedream model accepts a binary mask (even null returns 400); annotate target regions directly on a reference image and describe the change in prompt.
Why does 1.5K cost the same $0.02 as 1K on seedream-5-5, and how long do output URLs last?
ByteDance sets the lower price tier at 2,610,000 total pixels (2.61 MP). Because 1.5K (1536×1536 = 2,359,296 pixels) sits below 2.61 MP, it bills at the exact same $0.02 official rate as 1K while delivering 2.25× the pixel area. Signed image URLs returned by response_format: "url" expire 24 hours after generation and cannot be retrieved again once expired, so download them immediately or pass response_format: "b64_json".