Seedream 5.0 Pro
bytedance/seedream-5.0-proImage generation and precise image editing. Reads text and images, writes images.
Seedream 5.0 Pro in detail →Connect the Tokenify MCP server
Paste this into the agent’s chat:
Add the Tokenify MCP server for all my projects by running: claude mcp add --transport http --scope user tokenify https://api.tokenify.dev/mcp — then tell me to start a new conversation, where you will ask me to sign in.
Add the Tokenify MCP server by running: codex mcp add tokenify --url https://api.tokenify.dev/mcp — then tell me to restart Codex and sign in with Authenticate next to tokenify in Settings > MCP servers (in a terminal: codex mcp login tokenify).
In Claude (claude.ai or the desktop app): open Connectors, choose Add custom connector and enter https://api.tokenify.dev/mcp. Claude opens Tokenify to sign in. On a Team or Enterprise plan an owner adds it for the organisation.
A browser opens to sign in and pick the project to spend from. The agent quotes each generation and, by default, asks you before one that costs $1 or more.
claude mcp add --transport http tokenify https://api.tokenify.dev/mcp
codex mcp add tokenify --url https://api.tokenify.dev/mcp codex mcp login tokenify
With a key in TOKENIFY_API_KEY
Read https://www.tokenify.dev/agents.md — it describes the Tokenify API, at https://api.tokenify.dev. Use it to generate images, video or text, with the key in my TOKENIFY_API_KEY environment variable. Tell me the price before each call, and ask me first if this task's total could reach $1 or more, or if you cannot work out what a call will cost. Save every result into this project: decode an image that comes back inline, and download anything returned as a link, because links expire after 7 days.
The Seedream API is 3 image models behind one key, billed per image with no plan, reached through the OpenAI Images API, the Seedream format or generateContent. From $0.018/image, prices as of 2026-11-29.
20% below the model vendor’s own published price on Pro and Lite, at every size. Change a base URL and a key and keep the client code you have.
Connect the Tokenify MCP server
Paste this into the agent’s chat:
Add the Tokenify MCP server for all my projects by running: claude mcp add --transport http --scope user tokenify https://api.tokenify.dev/mcp — then tell me to start a new conversation, where you will ask me to sign in.
Add the Tokenify MCP server by running: codex mcp add tokenify --url https://api.tokenify.dev/mcp — then tell me to restart Codex and sign in with Authenticate next to tokenify in Settings > MCP servers (in a terminal: codex mcp login tokenify).
In Claude (claude.ai or the desktop app): open Connectors, choose Add custom connector and enter https://api.tokenify.dev/mcp. Claude opens Tokenify to sign in. On a Team or Enterprise plan an owner adds it for the organisation.
A browser opens to sign in and pick the project to spend from. The agent quotes each generation and, by default, asks you before one that costs $1 or more.
claude mcp add --transport http tokenify https://api.tokenify.dev/mcp
codex mcp add tokenify --url https://api.tokenify.dev/mcp codex mcp login tokenify
With a key in TOKENIFY_API_KEY
Read https://www.tokenify.dev/agents.md — it describes the Tokenify API, at https://api.tokenify.dev. Use it to generate images with bytedance/seedream-5.0-flash, with the key in my TOKENIFY_API_KEY environment variable. Tell me the price before each call, and ask me first if this task's total could reach $1 or more, or if you cannot work out what a call will cost. Save every result into this project: decode an image that comes back inline, and download anything returned as a link, because links expire after 7 days.
Per image. Where a model charges two rates the size decides which applies, and the price of a size is never a surprise: every reply tells you the size it produced, and on the OpenAI shape usage.cost tells you what it cost. The list price beside ours is the model vendor’s own published rate.
| 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 |
Prices updated , from the catalogue the gateway bills from.
The “list” figure each price is compared against is the model vendor’s own published rate per image, checked 2026-10-13. The prices we charge come from the same catalogue the API bills from, so this table and your invoice cannot disagree.
A request with no size gets the model’s default, which can be the dearer tier.
import base64
from openai import OpenAI
# max_retries=0: a resent request after a dropped connection is a second,
# billed image.
client = OpenAI(base_url="https://api.tokenify.dev/v1", api_key="YOUR_TOKENIFY_KEY", max_retries=0)
res = client.images.generate(
model="bytedance/seedream-5.0-flash",
prompt="A still life of three pears, soft window light",
size="2K",
)
open("out.jpg", "wb").write(base64.b64decode(res.data[0].b64_json))from google import genai
from google.genai import types
client = genai.Client(
api_key="YOUR_TOKENIFY_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-flash",
contents="A still life of three pears, soft window light",
config=types.GenerateContentConfig(
response_modalities=["IMAGE"],
image_config=types.ImageConfig(image_size="2K"),
),
)
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-flash",
"prompt": "A still life of three pears, soft window light",
"size": "2K"
}'# 1. Add Tokenify to Claude Code; it signs in through your browser the first time.
claude mcp add --transport http tokenify https://api.tokenify.dev/mcp
# 2. Then ask Claude Code:
# "Make an image of a paper boat on a pond with bytedance/seedream-5.0-flash, and save it into this project."
# It quotes the price first and, by default, asks you before anything
# that costs $1 or more.
# No MCP in your client? Paste this prompt instead:
# Read https://www.tokenify.dev/agents.md — it describes the Tokenify API, at https://api.tokenify.dev. Use it to generate images with bytedance/seedream-5.0-flash, with the key in my TOKENIFY_API_KEY environment variable. Tell me the price before each call, and ask me first if this task's total could reach $1 or more, or if you cannot work out what a call will cost. Save every result into this project: decode an image that comes back inline, and download anything returned as a link, because links expire after 7 days.The three share the endpoint, the sizes and the request shape; they differ in price and in what they will do with an image you send. Each has a page of its own.
bytedance/seedream-5.0-proImage generation and precise image editing. Reads text and images, writes images.
Seedream 5.0 Pro in detail →bytedance/seedream-5.0-liteImage generation at one flat price per image, at 3.7 megapixels and above.
Seedream 5.0 Lite in detail →bytedance/seedream-5.0-flashThe fastest and cheapest of the three. Up to four images a request, around ten seconds each.
Seedream 5.0 Flash in detail →Pick whichever matches the code you already have. They reach the same models at the same prices; what differs is the request shape and the defaults, which are documented per format.
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="2K",
)curl https://api.tokenify.dev/api/v3/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": "2K"
}'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"]),
)Each format has its own page: what to change, every parameter, which ones are accepted and ignored, and where we answer differently from the API you are coming from. OpenAI · Seedream format · google-genai
Tokenify serves Seedream through these API formats. We are not affiliated with OpenAI or Google, and we do not serve their models through these endpoints.
Ask for a tier and the model picks the shape from your prompt; ask for an exact width and height and you get exactly that. Both are priced by the pixels produced.
Send no size and Seedream 5.0 Pro generates at 2K, which is above its 2.61 megapixels boundary and charged at $0.072 rather than $0.036. That is the model’s own default and we do not override it, because a service that quietly substituted a cheaper size would be answering a different request than the one you sent. Name a tier if you want the cheaper rate.
| Model | Tiers | Any size between | Reference images |
|---|---|---|---|
| Seedream 5.0 Pro | 1K, 1.5K, 2K | 0.92 megapixels – 4.62 megapixels | 10 |
| Seedream 5.0 Lite | 2K, 3K, 4K | 3.69 megapixels – 16.78 megapixels | 14 |
| Seedream 5.0 Flash | 1K, 1.5K, 2K | 0.92 megapixels – 4.62 megapixels | 10 |
A tier and an aspect ratio together give one exact size. For Seedream 5.0 Pro:
| 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. The other models’ tables, and how a size resolves, are on the docs page.
Send one picture to Seedream 5.0 Pro and get the background with its objects removed, plus each object as its own transparent PNG — with the box it came from, a name, a description and a z-index. Sort by z-index, draw each layer into its box, and you have the original back with every piece movable.
Billed per output at $0.018 each up to 2.61 megapixels and $0.036 above it — 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.
The request, the response and how to recompose it →response_format decides where the image lives, not what it costs. Base64 puts the bytes in the reply and stores nothing. A link puts them on a host of ours, served from the edge for 7 days and then deleted, with expires_at in the reply so you can plan around it. The link needs no API key, so it can go straight into an <img> tag.
Every link is ours, on img.tokenify.dev: the gateway takes the bytes and publishes its own address for them.
Per image, from $0.018 on Seedream 5.0 Flash. On Seedream 5.0 Pro and Seedream 5.0 Lite that is 20% below the model vendor's own published price per image, at every size; the others are sold at it. There is no subscription and no minimum: you add credit and each image is billed when it is generated.
Three request shapes reach the same models, so usually one line. The OpenAI Images API works with the official openai SDK, images.generate and images.edit both; the Seedream API format works with code written against that API; and generateContent works with the google-genai SDK. You change the base URL, the key and the model name.
Four places, all of them deliberate. A link we return is valid for 7 days rather than 24 hours, and it is on a host of ours. The watermark is off by default here and on by default there — send watermark: true to have it. Streaming is not available yet on any of the three shapes; the reply is one JSON document. And layer decomposition is offered on the model whose per-layer price the vendor publishes, not on all of them, because a rate we cannot read is a rate we will not guess at.
Yes. Send the image alongside the prompt and the model edits it instead of starting from nothing — as a file part to /v1/images/edits, which is what the OpenAI SDK sends, or as base64 in the JSON body. Several reference images are allowed, in the order you list them.
A tier name, which lets the model choose the shape from your prompt, or any width by height inside the model's range — 0.92 megapixels to 4.62 megapixels on Seedream 5.0 Pro. The old fixed list of five sizes is gone; anything inside the range works.
Base64 in the response, or a link on img.tokenify.dev that we serve for 7 days and then delete. The reply carries expires_at so you know when. Every link is on that host.
60 images a minute per key by default, counted in images rather than tokens. Sets count as the number of images they produce.
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, a name and a z-index — so you can move the pieces. On Seedream 5.0 Pro, billed per output at $0.018 each up to 2.61 megapixels, which is cheaper than generating an image of the same size.
Last updated 2026-11-24. Prices come from the live catalogue at the time this page was built.