by ByteDance

Exact sizes up to 4096×2304 and ten-reference edits

bytedance/seedream-4.0/text-to-image
Seedream 4.0 AI Image Generator online
  • Up to 10 reference images
  • Create Image
  • Edit Image

About Seedream 4.0

The Seedream 4.0 API frames output through a size field with sixteen presets up to 4096 by 2304, and bills one flat price regardless of size. Text to image typically takes about 20 seconds and edits about 40, which makes large-format output unusually cheap and quick.

Call it with the model name bytedance/seedream-4.0/text-to-image on POST /jobs/createTask, from $0.031.

Introduction

Seedream 4.0 Text-to-Image turns a written art-direction brief into a new image. Use it when composition, subject hierarchy and visual style are still open creative decisions rather than properties inherited from a source image.

Choose a Seedream 4.0 mode by starting material

Starting materialMode
A written art direction or design briefSeedream 4.0 Text to Image
An approved source image to reviseSeedream 4.0 Image Editing

Key features

Image creation and source-led revision

Seedream 4.0 supports both starting from a written visual brief and revising supplied imagery. Keep those jobs separate: creation establishes a new composition, while editing is judged against the source elements it should retain.

Design work needs a reviewable hierarchy

For a graphic or campaign concept, provide checked copy and define the visual hierarchy before styling details. Review legibility, placement and factual accuracy at the intended delivery format.

A visual result is not a factual source

Use generated imagery to discuss a design direction. Do not treat an attractive result as proof of product details, dimensions or real-world claims that were not independently verified.

Request parameters

ParameterRequiredDescription
sizeNoExact size of the result, in pixels. 2048*2048 · 1024*1024 · 2304*1728 · 1728*2304 · 2848*1600 · 1600*2848 · 2496*1664 · 1664*2496 · 3136*1344 · 3072*3072 · 3456*2592 · 2592*3456 · 4096*2304 · 2304*4096 · 2496*3744 · 3744*2496 · Default: 2048*2048
promptYesDescribe what you want to make.

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
Standard$0.031

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Start from a written brief

Seedream 4.0 Text to Image renders a brief into a single image at a size you name. Pick one of the sixteen presets, from 1024*1024 up to 4096*2304, before you write, then describe the subject, composition and light for that shape.

Consistent characters from references

Send a face reference, a wardrobe reference and a background plate to the editing endpoint, name what each contributes, and get one frame back at the preset you chose.

Continuing work started on 4.0

Campaigns and character sets first made with Seedream 4.0 can stay on the same model instead of switching generations halfway and re-matching the style.

Prompt guide & pro tips

Write the brief, or name the references

For text-to-image, describe subject, wardrobe, setting and light in one prompt. For editing, send one to ten image URLs and say what each one contributes and what must stay.

Poll the task and keep the brief

There is no seed, so store the prompt with any frame you want to extend into a series.

Adapt the included example

Start with the published example using size: 2048*2048. Replace the subject and creative direction while keeping the input contract for this mode intact.

Check the result before iterating

size is the whole framing control: there is no aspect ratio field, no seed and no file-format switch. The sixteen presets are the complete list, and anything outside them is rejected before the request leaves the platform. A portrait brief forced into a wide preset comes back with dead space.

API quick start

Call the Seedream 4.0 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model bytedance/seedream-4.0/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "bytedance/seedream-4.0/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "size": "2048*2048"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the Seedream 4.0 API

  • Wallpaper and large-display generators at 4K widths.
  • Character continuity via ten-reference edits.
  • Comic and graphic-novel restyles of photos.

Seedream 4.0 parameter notes

  • size takes one of sixteen width*height presets.
  • No aspect_ratio, seed or output_format fields.
  • image_urls on edit takes up to ten references.
  • Name each reference's role in the prompt.

How Seedream 4.0 API pricing adds up

One flat price per image at every size for both endpoints, so request the delivery size directly.

  • Create Image: $0.031 per run, $3.10 for 100 runs

Async jobs, webhooks and rate limits

Every Seedream 4.0 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for bytedance/seedream-4.0/text-to-image never runs or bills twice.

Common Seedream 4.0 API errors

errorCodeWhat it usually means and how to fix it
invalid_requestA size that is not one of the presets.
invalid_assetA reference that cannot be fetched.
content_rejectedA refused prompt or reference.

Seedream 4.0 API questions

How much does the Seedream 4.0 API cost?

Seedream 4.0 starts at $0.031 per image with Create Image, its lowest-priced task. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for Seedream 4.0 in the API?

Put bytedance/seedream-4.0/text-to-image for Create Image; bytedance/seedream-4.0/edit for Edit Image in the model field of POST /jobs/createTask.

Does Seedream 4.0 charge more for 4096 px?

No, every size is billed as one image at the same price.

How fast is Seedream 4.0?

About 20 seconds for text to image and 42 for edits.

Can I choose PNG?

No file format switch is offered.

Can I try Seedream 4.0 without writing code?

Run Seedream 4.0 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Seedream models

Seedream 5.0 Pro and Lite are the newer generation with finer material detail; 4.0 keeps its own look and the largest sizes.

More about Seedream 4.0