Mage API · Image model
Seedream API
Seedream, with a strict filter
POST https://api.mage.space/v1/seedream/generateAt a glance
The Seedream API runs Seedream 5.5 and 5 other variants through Mage at POST https://api.mage.space/v1/seedream/generate. A request at the default settings costs 42 Gems (about $0.042), with no subscription. Seedream takes saved characters, references by @handle in the prompt.
- ImageOutput
- 6Variants
- 42Gems per image, default
- $0.042About, in USD
Overview
What the Seedream API does
ByteDance's Seedream, from Seedream 5.0 Flash for drafts to Seedream 5.5, the newest and the default, with detailed scenes, readable text, and edits from up to 10 references or Characters, up to 4K on Seedream 4.5. Strict Filter: prompts and first images are checked before each run.
ByteDance's Seedream image family, for detailed scenes, readable text, and edits from up to 10 references or Characters: Seedream 5.5 (`seedream-5.5`), the newest and the default, with more realistic images, clearer small text, and steadier repeated edits; Seedream 5.0 Pro (`seedream-5.0-pro`), the previous flagship; Seedream 5.0 Flash (`seedream-5.0-flash`), one flat price with input images included, the lowest at 2K or with input images (Seedream 5.5 costs less for a 1K prompt alone); Seedream 5.0 Lite (`seedream-5.0-lite`), up to 3K; Seedream 4.5 (`seedream-4.5`), up to 4K; and Seedream 4.0 (`seedream-4.0`). Strict Filter: Mage checks the prompt and the first image before the run; a request it refuses fails with `content_blocked` and a reason, and is refunded.
It accepts image, additional_images as inputs.
Quick start
Call the Seedream API
Set MAGE_API_KEY, submit to /seedream/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/seedream/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "seedream-5.5"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('seedream', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: 'seedream-5.5',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("seedream", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "seedream-5.5",
})
print(request["result"]["url"])Models
Seedream model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| seedream-4.0 | Seedream 4.0 | |
| seedream-4.5 | Seedream 4.5 | |
| seedream-5.0-lite | Seedream 5.0 Lite | |
| seedream-5.0-pro | Seedream 5.0 Pro | |
| seedream-5.0-flash | Seedream 5.0 Flash | |
| seedream-5.5 | Seedream 5.5 | Yes |
Options
Seedream parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 1K, 2K, 3K, 4K |
Inputs
Media inputs Seedream accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| image | The reference image. |
| additional_images | Additional reference images. |
More image models
Other image generation APIs on Mage
Stable Diffusion v1.5 API
The classic, on a budget
Stable Diffusion v3.5 Large API
The Stable Diffusion that listens best
Stable Diffusion XL API
Photoreal-tuned SDXL
Z-Image API
The fastest image model on Mage
Anima API
Purpose-built for anime
Chroma API
Open-weights, built on Flux
FAQ
Frequently asked questions
How much does the Seedream API cost?
What is the Seedream API endpoint?
Which Seedream models can I call?
Does Seedream support reference images or characters?
Can I use Seedream from Claude or ChatGPT?
How long are Seedream results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.