Tokenify
Get API keyConsole
Menu

Seedream API — 5.0 Pro, 5.0 Lite and 5.0 Flash

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.

  • Pro$0.036/ $0.072 above 2.61 megapixels
  • Lite$0.028
  • Flash$0.018
  • API key in 60 seconds
  • Billed per image, not per token
  • No watermark unless you ask
  • Links kept 7 days, or base64
  • Pay by card or USDT/USDC
Get API key
Use in your agent

Connect the Tokenify MCP server

Paste this into the agent’s chat:

Claude Code

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.

Codex

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.

In a terminal instead
Claude Code
claude mcp add --transport http tokenify https://api.tokenify.dev/mcp
Codex
codex mcp add tokenify --url https://api.tokenify.dev/mcp
codex mcp login tokenify
No MCP in your client? Paste a prompt instead

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.

Read the API docs

What each model costs

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.

ModelPer imageLarger imagesImage you sendSizes
Seedream 5.0 Pro20% off
bytedance/seedream-5.0-pro
$0.045$0.036$0.090$0.072
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
$0.035$0.028same pricefree2K, 3K, 4K
or any size 3.69 megapixels–16.78 megapixels
Seedream 5.0 Flash
bytedance/seedream-5.0-flash
$0.018same pricefree1K, 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.

What a request costs

A request with no size gets the model’s default, which can be the dearer tier.

Which one to use

A call that runs as written

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))

Each model in detail

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.

Three ways to call the same models

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",
)

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.

Sizes and shapes

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.

ModelTiersAny size betweenReference images
Seedream 5.0 Pro1K, 1.5K, 2K0.92 megapixels – 4.62 megapixels10
Seedream 5.0 Lite2K, 3K, 4K3.69 megapixels – 16.78 megapixels14
Seedream 5.0 Flash1K, 1.5K, 2K0.92 megapixels – 4.62 megapixels10

A tier and an aspect ratio together give one exact size. For Seedream 5.0 Pro:

Ratio1K1.5K2K
1:11024x10241536x15362048x2048
4:31152x8641792x13442368x1776
3:4864x11521344x17921776x2368
16:91424x8002048x11522816x1584
9:16800x14241152x20481584x2816
3:21248x8321872x12482496x1664
2:3832x12481248x18721664x2496
21:91568x6722352x10083136x1344

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.

Layer decomposition

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 →

Questions people ask before signing up

What does the Seedream API cost here?

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.

Do I have to change my code?

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.

Where does this differ from the official API?

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.

Can it edit an image I already have?

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.

What sizes can I ask for?

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.

How do I get the image back?

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.

Is there a rate limit?

60 images a minute per key by default, counted in images rather than tokens. Sets count as the number of images they produce.

What is 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, 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.

More on these models

Last updated 2026-11-24. Prices come from the live catalogue at the time this page was built.