Seedream 5 API (2026): Pro vs Lite, Pricing and Code
Unicorn API Team · · 10 min read
The Seedream 5 API gives you programmatic access to ByteDance’s fifth-generation Seedream image models: you send a prompt (and optionally reference images), and you get back a finished image URL. On Unicorn API there are three models in the family, each with a different job, a different resolution range and a different price. This guide covers what each one does, exactly what an image costs, working code you can paste into a terminal, and the mistakes that quietly waste credits.
What is the Seedream 5 API?
Seedream is ByteDance’s text-to-image model line. A text-to-image model takes a natural-language description and produces an image that matches it; most modern ones, Seedream included, can also take reference images so the output keeps a product, a face or a style consistent. “Seedream 5 API” usually means calling those models over HTTP instead of through a chat app or web playground.
ByteDance shipped Seedream 5 in stages, which explains why searches for the Seedream 5 release date turn up several different answers:
- Seedream 5 Lite, released 2026-02-25: fast everyday generation at 2K or 3K, with up to 14 reference images.
- Seedream 5 Pro, released 2026-07-08: the top Seedream tier for polished illustration and product shots at 1K or 2K, with up to 10 reference images.
- Seedream 5 Pro Layer Decomposition, released 2026-11-11: takes an existing image plus a prompt; as the name says, it is built for breaking an image into layers.
All three run through the same asynchronous job flow on Unicorn API. You create a job, the model works in the background, and you poll until the result is ready. That design matters for images: generation takes seconds, not milliseconds, and an async job means your HTTP request never has to sit open waiting for pixels.
Seedream 5 Pro vs Seedream 5 Lite vs Layer Decomposition
The names suggest a simple “good, cheaper, special” ladder, but the trade-offs are more interesting than that. Lite actually goes to a higher resolution than Pro, and accepts more reference images. Pro is the one to reach for when finish quality matters more than pixel count.
| Seedream 5 Pro | Seedream 5 Lite | Pro Layer Decomposition | |
|---|---|---|---|
| Model id | seedream-5-pro | seedream-5-lite | seedream-5-pro-layer-decomposition |
| Best for | Polished illustration, product shots | Fast everyday generation, volume | Splitting an existing image into layers |
| Output size | 1K or 2K (resolution) | 2K or 3K (size) | 1K, 1.5K, 2K or auto (size) |
| Reference images | Up to 10 | Up to 14 | One source image (image_url) |
| Aspect ratios | 16:9, 1:1, 9:16, 21:9, 4:3, 3:4, 3:2, 2:3 | 16:9, 1:1, 9:16, 21:9, 4:3, 3:2, 2:3 | Follows the source image |
Multiple outputs (n) | Yes | Yes | No n field |
| Released | 2026-07-08 | 2026-02-25 | 2026-11-11 |
Two details in that table trip people up. First, Pro uses a field called resolution while Lite and Layer Decomposition use size. Sending the wrong field name will not get you the resolution you expected. Second, Lite has no 3:4 aspect ratio, so a portrait workflow built on Pro at 3:4 needs adjusting (2:3 is the closest option) if you move it to Lite.
If you are coming from the previous generation and searching “Seedream 4.5 vs 5”, the honest answer is to run your own prompts through both. Our Seedream 4.5 vs Nano Banana Pro comparison covers the older model in detail; the same job flow below works for any model in the model catalog, so a side-by-side test is a one-line change.

Seedream 5 API pricing: what each image costs
Unicorn API prices everything in credits. Monthly plans give you credits at $0.01 each (Starter $25, Creator $50, Studio $100, Pro $200 per month). Top-up credits cost $0.015 each and never expire. Prices are per output image, multiplied by n when you ask for several, and rounded up to whole credits.
| Model and setting | Credits per image | On a monthly plan | With top-up credits |
|---|---|---|---|
| Seedream 5 Pro, 1K | 7 | $0.07 | $0.105 |
| Seedream 5 Pro, 2K | 14 | $0.14 | $0.21 |
| Seedream 5 Lite, 2K or 3K | 5.5 (rounded up per request) | about $0.055 to $0.06 | about $0.083 to $0.09 |
| Layer Decomposition, 1K or 1.5K | 7 | $0.07 | $0.105 |
| Layer Decomposition, 2K | 14 | $0.14 | $0.21 |
The Lite figure needs a word of explanation. The list price is 5.5 credits per image, and the request total is rounded up to whole credits, so a single Lite image lands on 6 credits while a batch of two lands on 11. If you generate Lite images in bulk, asking for an even n wastes less to rounding. Lite also prices 2K and 3K the same, which makes 3K the obvious default unless you have a reason to keep files small.
With Pro the opposite holds: 2K costs exactly double 1K. A sensible pattern is to explore prompts at 1K, then rerun the winners at 2K. You never have to guess a bill: send the same model and input to POST /v1/models/price before running a job and you get the exact credit cost back. The API documentation covers the request in detail, and the pricing page lists the plans.
To put the numbers in budget terms: a Starter plan’s 2,500 credits covers about 357 Seedream 5 Pro images at 1K, 178 at 2K, or roughly 416 single Lite images.
How to call the Seedream 5 API (curl and Python)
You need an API key first. Create one on the keys page and export it in your shell:
export UNICORN_API_KEY="your-key-here"
The two-request flow in curl
Every Seedream 5 API call is two steps: create a job, then poll it. Here is the smallest valid Seedream 5 Pro request, with a 2K resolution and a widescreen ratio added:
curl -X POST https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro",
"input": {
"prompt": "A red fox resting in a snowy forest at dawn, soft light, highly detailed",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}'
The response includes a job id. Poll it until status is "succeeded":
curl https://api.unicornapi.net/v1/jobs/JOB_ID \
-H "Authorization: Bearer $UNICORN_API_KEY"
When it succeeds, the image URL is in outputs[0].url. Download it promptly and store it yourself rather than hot-linking the result URL from your app.
A reusable Python helper
In real code you want one function that submits, polls with a timeout, and returns the finished job. This works for every model on the platform, not just the Seedream 5 family:
import os
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}
def run_job(model, input_, timeout=300, interval=2):
"""Submit a job and wait for it to finish. Returns the finished job."""
resp = requests.post(
f"{API}/v1/jobs",
headers=HEADERS,
json={"model": model, "input": input_},
timeout=30,
)
resp.raise_for_status()
job = resp.json()
deadline = time.time() + timeout
while job.get("status") != "succeeded":
if job.get("status") == "failed":
raise RuntimeError(f"Job {job['id']} failed: {job}")
if time.time() > deadline:
raise TimeoutError(f"Job {job['id']} still running after {timeout}s")
time.sleep(interval)
poll = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS, timeout=30)
poll.raise_for_status()
job = poll.json()
return job
def download(url, path):
img = requests.get(url, timeout=60)
img.raise_for_status()
with open(path, "wb") as f:
f.write(img.content)
if __name__ == "__main__":
# Explore cheaply with Lite, four variations in one request
job = run_job("seedream-5-lite", {
"prompt": "Minimalist ceramic coffee mug on a linen tablecloth, morning window light",
"aspect_ratio": "4:3",
"n": 4,
})
for i, out in enumerate(job["outputs"]):
download(out["url"], f"mug_lite_{i}.png")
# Final hero shot with Pro at 2K
job = run_job("seedream-5-pro", {
"prompt": "Minimalist ceramic coffee mug on a linen tablecloth, morning window light",
"resolution": "2K",
"aspect_ratio": "16:9",
})
download(job["outputs"][0]["url"], "mug_pro_2k.png")
That script is a realistic workflow in miniature: four Lite variations to find a composition you like, then one Pro render at 2K for the final asset. At plan prices the whole run costs 22 credits for the Lite batch plus 14 for the Pro image. If you prefer clicking before coding, the same models are in the browser playground.
Reference images: edits and consistency with Seedream 5
Pure text prompts are fine for one-off images. Product catalogues, characters and brand work need consistency, and that is what ref_images is for. You pass image URLs alongside the prompt, and the model uses them as visual anchors: the same bottle, the same mascot, the same colour palette. Pass a single source image and describe a change (“same jacket, now in forest green, studio background”) and you have a reference-guided edit.
Seedream 5 Pro accepts up to 10 reference images and Seedream 5 Lite up to 14. More is not automatically better: each extra reference is another signal the model has to reconcile. For a single product, two or three clean shots from different angles usually beat ten cluttered ones.
Here is a Node.js version (Node 18 or later, which has fetch built in) that sends reference images to Seedream 5 Pro:
const API = "https://api.unicornapi.net";
const headers = {
Authorization: `Bearer ${process.env.UNICORN_API_KEY}`,
"Content-Type": "application/json",
};
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function runJob(model, input, timeoutMs = 300_000) {
const res = await fetch(`${API}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify({ model, input }),
});
if (!res.ok) throw new Error(`Submit failed: ${res.status} ${await res.text()}`);
let job = await res.json();
const deadline = Date.now() + timeoutMs;
while (job.status !== "succeeded") {
if (job.status === "failed") throw new Error(`Job ${job.id} failed`);
if (Date.now() > deadline) throw new Error(`Job ${job.id} timed out`);
await sleep(2000);
const poll = await fetch(`${API}/v1/jobs/${job.id}`, { headers });
if (!poll.ok) throw new Error(`Poll failed: ${poll.status}`);
job = await poll.json();
}
return job;
}
const job = await runJob("seedream-5-pro", {
prompt:
"The same water bottle from the reference photos, standing on a wet rock " +
"beside a mountain stream, product photography, shallow depth of field",
ref_images: [
"https://example.com/bottle-front.png",
"https://example.com/bottle-side.png",
],
resolution: "2K",
aspect_ratio: "3:4",
});
console.log(job.outputs[0].url);
Save it as bottle.mjs so top-level await works, then run node bottle.mjs. The reference URLs must be publicly reachable; a URL behind a login or a signed link that expires in seconds will fail or be ignored.

Layer decomposition: working with an existing image
The newest model in the family works differently from the other two. Instead of creating an image from scratch, Seedream 5 Pro Layer Decomposition takes a source image through image_url, plus a prompt, and its name describes the job: separating an image into layers. That is useful wherever a flat image is a dead end, such as handing a design to someone who needs to move the foreground subject, swap a background, or animate parts independently.
Its input fields are size, prompt, image_url and output_format. The minimal request uses "size": "auto":
curl -X POST https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro-layer-decomposition",
"input": {
"size": "auto",
"prompt": "A red fox resting in a snowy forest at dawn, soft light, highly detailed",
"image_url": "https://example.com/image.png"
}
}'
Pricing is per output: 7 credits at 1K or 1.5K and 14 at 2K. Because a decomposition can return more than one output, loop over the whole outputs array in your code instead of reading only the first entry, and check the price endpoint before running large batches so the per-output billing does not surprise you. The model page has the current details.
When another model beats the Seedream 5 API
Seedream 5 is strong at polished, photographic and illustrative work, but it is not the answer to every request. Because every model on Unicorn API uses the same job flow and the same key, swapping is a change to the model string, not a new integration.
| You need | Consider | Why | Credits per image |
|---|---|---|---|
| Native 4K output | GPT Image 2.5 Flare | 1K, 2K or 4K, up to 16 reference images, faster variant | 6 / 10 / 16 |
| 4K with tighter control | GPT Image 2.5 Sunburst | More polished output than Flare, slower, same price | 6 / 10 / 16 |
| Legible text, transparent background | GPT Image 1.5 | Reliable prompt adherence and text, optional transparent background | 3 low / 4 medium / 22 high |
| Cheapest quick drafts | Nano Banana 2 Lite | Fast 1K images and edits, up to 10 reference images | 4 |
The 4K question comes up often, because some hosts advertise Seedream 5 editing at up to 4K. On Unicorn API, Seedream 5 Pro tops out at 2K and Seedream 5 Lite at 3K. If a print job or large display genuinely needs 4K pixels from the model itself, the GPT Image 2.5 variants are the direct route. If 3K is enough, Lite at 3K is cheaper per image than either of them at 2K.
Seedream models are also available on other platforms, Replicate among them, each with its own signup and billing. The reason to use the Seedream 5 API through Unicorn API is practical: one key, one credit balance and one request shape across ByteDance, OpenAI and Google models. You can also call it from coding agents such as Cursor or Claude Code through MCP; the agents page explains the setup.
Common mistakes with the Seedream 5 API
Most failed or overpriced Seedream 5 API runs come from a short list of avoidable errors:
- Mixing up
resolutionandsize. Pro takesresolution(1K or 2K). Lite and Layer Decomposition takesize. Copying a Pro request to Lite without renaming the field means you do not get the size you intended. - Exploring at full price. Iterating on prompts with Pro at 2K costs twice what 1K does. Explore at 1K or with Lite, then render finals at 2K.
- Forgetting that
nmultiplies the bill. Four outputs cost four times one output. That is often worth it for variety, but setnon purpose, not by habit. - Odd batch sizes on Lite. At 5.5 credits per image with rounding up, a single image bills as 6. Batches of two or four waste less.
- Polling too fast or forever. Polling every 100 ms adds load without making the image arrive sooner; every second or two is plenty. Always set a timeout so a stuck job does not hang a worker.
- Reading only
outputs[0]. Withnabove one, or with layer decomposition, there are several outputs. Iterate the array. - Private reference URLs. The model fetches
ref_imagesandimage_urlitself, so they must be publicly reachable for the duration of the job. - Unsupported aspect ratios. Lite has no 3:4. Pick from each model’s list rather than assuming every ratio works everywhere.
- Not checking the price first. For any batch job, call
POST /v1/models/pricewith the planned input. It returns the exact cost, so there is no reason to find out from your balance.
Get those right and the Seedream 5 API is one of the simpler image integrations you will build: one POST, a polling loop, and a URL at the end. Start with the Lite model page for cheap experiments, move finished prompts to Seedream 5 Pro when quality matters, and keep the docs open for the field details.
Frequently asked questions
Does Seedream 5 have an API?
Yes. ByteDance's Seedream 5 models are available over HTTP from several hosts. On Unicorn API you call Seedream 5 Pro, Seedream 5 Lite and Seedream 5 Pro Layer Decomposition with one API key: send a job to POST /v1/jobs with the model id and an input object, poll GET /v1/jobs/{id} until the status is succeeded, then download the image from outputs[0].url.
When was Seedream 5 released?
The Seedream 5 family arrived in stages. Seedream 5 Lite was released on 2026-02-25, Seedream 5 Pro followed on 2026-07-08, and Seedream 5 Pro Layer Decomposition was released on 2026-11-11. All three are ByteDance image models and are callable through the same Unicorn API endpoint, so you can switch between them by changing a single model id.
Should I use Seedream 5 Pro or Seedream 5 Lite?
Use Seedream 5 Lite for fast, everyday generation at 2K or 3K and when you need many reference images (up to 14). Use Seedream 5 Pro for polished illustration and product shots at 1K or 2K, with up to 10 reference images. Lite is listed at 5.5 credits per image; Pro costs 7 credits at 1K and 14 at 2K. Test both on the same prompt before committing.
Can Seedream 5 generate 4K images?
Not on Unicorn API. Seedream 5 Pro outputs 1K or 2K, and Seedream 5 Lite outputs 2K or 3K, so 3K from Lite is the largest Seedream 5 option. If you need native 4K, GPT Image 2.5 Flare and GPT Image 2.5 Sunburst both offer a 4K resolution at 16 credits per image, through the same API key and job flow.
How much does the Seedream 5 API cost per image?
On Unicorn API, Seedream 5 Pro costs 7 credits at 1K and 14 credits at 2K. Seedream 5 Lite is listed at 5.5 credits per image, with totals rounded up to whole credits. Layer Decomposition costs 7 credits at 1K or 1.5K and 14 at 2K. Plan credits cost $0.01 each, so a 2K Pro image is $0.14 on a monthly plan.
Is Seedream 5 on Replicate?
Seedream models are offered by several hosting platforms, Replicate among them, each with its own account, key and billing. The practical difference with Unicorn API is that Seedream 5 sits next to OpenAI and Google image models under one key and one credit balance, so you can compare or swap models without signing up for another provider.