Skip to content

Mage API · Image model

Seedream API

Seedream, with a strict filter

POST https://api.mage.space/v1/seedream/generate

At 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_idNameDefault
seedream-4.0Seedream 4.0
seedream-4.5Seedream 4.5
seedream-5.0-liteSeedream 5.0 Lite
seedream-5.0-proSeedream 5.0 Pro
seedream-5.0-flashSeedream 5.0 Flash
seedream-5.5Seedream 5.5Yes

Options

Seedream parameters

Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.

FieldValues
aspect_ratio21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21
resolution1K, 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.

FieldRole
imageThe reference image.
additional_imagesAdditional reference images.

More image models

Other image generation APIs on Mage

FAQ

Frequently asked questions

How much does the Seedream API cost?
A Seedream request at the default settings (Seedream 5.5) costs 42 Gems, about $0.042. Other resolutions, durations, and variants change the price; the response reports the exact charge. A generation that fails is refunded; one Mage's content policy blocks is not.
What is the Seedream API endpoint?
POST https://api.mage.space/v1/seedream/generate with an Authorization: Bearer header carrying your Mage API key. The response includes a status_url to poll for the result.
Which Seedream models can I call?
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). The default is Seedream 5.5.
Does Seedream support reference images or characters?
Seedream accepts image, additional_images. Seedream takes saved characters, references by @handle in the prompt.
Can I use Seedream from Claude or ChatGPT?
Yes. Connect the Mage MCP server to Claude, ChatGPT, Claude Code, Grok, or Cursor and ask for Seedream by name. Your assistant reads its options with get_model and quotes the price before it generates.
How long are Seedream results kept?
Results and inputs are kept for 30 days. Download anything you want to keep to your own storage.

Start building with Mage

One account, one Gems balance, every model. Pay only for what you generate.