Seedream 5.0 Pro API
Image generation and precise image editing. Reads text and images, writes images.
$0.036 per image up to 2.61 megapixels, and $0.072 above it. Billed per image, not per token. 20% below the model vendor's published rate.
Generate one image
Three request shapes reach this model — the OpenAI Images API, the model maker’s own, and google-genai’s generateContent — on our base URL and your existing code. The OpenAI reply is base64 in b64_json, or ask for response_format: "url" and get a link of ours, kept for 7 days.
These are request formats, not providers: Tokenify is not affiliated with OpenAI or Google and does not serve their models on these endpoints. The SDK names in the samples are the packages you install to call this model.
import base64
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.tokenify.dev/v1",
api_key=os.environ["TOKENIFY_API_KEY"],
)
res = client.images.generate(
model="bytedance/seedream-5.0-pro",
prompt="A still life of three pears, soft window light",
size="1024x1024",
)
open("out.jpg", "wb").write(base64.b64decode(res.data[0].b64_json))import os
from volcenginesdkarkruntime import Ark
client = Ark(
base_url="https://api.tokenify.dev/api/v3",
api_key=os.environ["TOKENIFY_API_KEY"],
)
res = client.images.generate(
model="bytedance/seedream-5.0-pro",
prompt="A still life of three pears, soft window light",
size="1024x1024",
)
print(res.data[0].url)import os
from google import genai
from google.genai import types
client = genai.Client(
api_key=os.environ["TOKENIFY_API_KEY"],
# their SDK defaults to v1; this endpoint answers on v1beta, as theirs does
http_options=types.HttpOptions(base_url="https://api.tokenify.dev", api_version="v1beta"),
)
res = client.models.generate_content(
model="seedream-5.0-pro",
contents="A still life of three pears, soft window light",
config=types.GenerateContentConfig(
response_modalities=["IMAGE"],
image_config=types.ImageConfig(image_size="1K"),
),
)
for part in res.candidates[0].content.parts:
if part.inline_data:
open("out.jpg", "wb").write(part.inline_data.data)curl https://api.tokenify.dev/v1/images/generations \
-H "Authorization: Bearer $TOKENIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedream-5.0-pro",
"prompt": "A still life of three pears, soft window light",
"size": "1024x1024"
}' | jq -r '.data[0].b64_json' | base64 -d > out.jpgWhat it costs
A hundred images cost $3.60 at the smaller sizes. There is no subscription, no minimum and no per-request fee; a request that produces nothing is not charged.
- Image to 2.61 megapixels
$0.045$0.036- above 2.61 megapixels
$0.090$0.072- Image you send
- $0.0024first one free
20% offoff the model vendor’s published price per image. The discount is the same at every size we accept.
The size you ask for decides which price applies: above 2.61 megapixels it is the dearer one, and at or below it the cheaper one. Any size inside the range is accepted now, so a size landing exactly on the boundary is possible — and it is charged the cheaper rate, which is where the boundary belongs.
Sizes it accepts
A tier (1K, 1.5K, 2K), or any width by height between 0.92 megapixels and 4.62 megapixels at an aspect ratio within 1:16 to 16:1. A tier lets the model pick the shape from your prompt; a tier and a ratio together give one exact size, from the table below.
Omitting size gives 2K, which is the model’s own default — and it is above the pixel boundary above, so it is charged $0.072 rather than $0.036. Send a size if you want the cheaper rate.
| Ratio | 1K | 1.5K | 2K |
|---|---|---|---|
1:1 | 1024x1024 | 1536x1536 | 2048x2048 |
4:3 | 1152x864 | 1792x1344 | 2368x1776 |
3:4 | 864x1152 | 1344x1792 | 1776x2368 |
16:9 | 1424x800 | 2048x1152 | 2816x1584 |
9:16 | 800x1424 | 1152x2048 | 1584x2816 |
3:2 | 1248x832 | 1872x1248 | 2496x1664 |
2:3 | 832x1248 | 1248x1872 | 1664x2496 |
21:9 | 1568x672 | 2352x1008 | 3136x1344 |
Any other ratio is computed from the tier’s own area and clamped into the range, so it works without being in the table. How a size resolves.
Layer decomposition
Send one picture and get the background with its objects removed, plus each object as its own transparent PNG with the box it came from. Sort by z_index, draw each layer into its box, and you have the original back with every piece movable.
Billed per output — the base image and each layer — at $0.018 each up to 2.61 megapixels and $0.036 above it, which is cheaper than generating an image of the same size. Credit is held for the worst case — 17 outputs — and the difference is refunded when the model says how many layers it found.
How to call it, and how to put the image back together →The image models, side by side
| Model | Per image | Larger images | Image you send | Sizes |
|---|---|---|---|---|
Seedream 5.0 Pro20% off bytedance/seedream-5.0-pro | from 2.61 megapixels | $0.0024 first one free | 1K, 1.5K, 2K or any size 0.92 megapixels–4.62 megapixels | |
Seedream 5.0 Lite20% off bytedance/seedream-5.0-lite | same price | free | 2K, 3K, 4K or any size 3.69 megapixels–16.78 megapixels | |
Seedream 5.0 Flash bytedance/seedream-5.0-flash | $0.018 | same price | free | 1K, 1.5K, 2K or any size 0.92 megapixels–4.62 megapixels |
From the live catalogue. All models · the full rate card · the endpoint.
Questions about this model
How is Seedream 5.0 Pro billed?
Per image. Seedream 5.0 Pro costs $0.036 an image, and $0.072 above 2.61 megapixels. There is no per-token price and no context window: the token counts the model vendor reports are metering, not the basis of the charge. Credit is reserved at the price of the image you asked for before the request is sent, so the charge is known in advance.
Which sizes can I ask for?
1K, 1.5K, 2K, or any width by height between 0.92 megapixels and 4.62 megapixels, at an aspect ratio up to 16:1 either way. A tier lets the model pick the shape from your prompt; an exact size gives you exactly that. Anything outside the range is a 400 that states the range, rather than being silently rounded to something you did not ask for.
Can I generate several images in one request?
Yes, up to 4 with n. Each one is generated and charged separately, and if some of them fail you get the ones that worked and pay for those. Reference images are charged once per image generated, because each image is made from all of them. Beyond that, make requests in parallel up to your key's 60 images a minute.
Can it edit an image I already have?
Yes. Call /v1/images/edits with the file, which is what the OpenAI SDK’s images.edit does, or send it alongside the prompt as base64 or a data URL on /v1/images/generations. It edits that rather than starting from nothing. The first image of each request is free and the rest cost $0.0024, and usage.input_images on the reply says how many were counted.
How much cheaper is this than the vendor’s own price?
20% below their published price per image, at every size. The list price is in the table on this page beside ours, so the comparison is a subtraction rather than a claim.
Where does the image come back?
Base64 in data[0].b64_json by default, or a link in data[0].url if you send response_format: "url". Every link is on img.tokenify.dev and the image is kept 7 days; the reply carries expires_at so you know when. We hold the bytes ourselves rather than pointing you somewhere else, so the address does not change and does not expire before expires_at says it will.
Do I need a subscription?
No. Billing is per image from prepaid credit, with no subscription, no seats and no minimum. Credit does not expire.
Last updated 2026-11-24. Prices come from the live catalogue at the time this page was built.