bytedance/seedream-4.0/text-to-imageFrom 5 credits per image· Create Image

Seedream 4.0 is the generation of ByteDance's Seedream image model that came before 5.0, published here as two endpoints: text-to-image, and image editing that reads one to ten references. Output is chosen from sixteen width*height presets between 1024*1024 and 4096*2304, billed per image at the same rate for every size.

Call it with the model name bytedance/seedream-4.0/text-to-image on POST /jobs/createTask, from 5 credits per image ($0.05). New accounts get 30 free credits to try it in the Playground first.

  • Create Image
  • Edit Image
  • Up to 10 reference images

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
sizeNoOutput image size in pixels, written as width*height. 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 the image to generate: subject, composition, style, and lighting.

Pricing

Prices are in credits, the same credits you use on the website (1 credit = $0.01). The hold is taken when the task is accepted and settled to the actual charge when it finishes; failed tasks are refunded.

OptionCredits per image≈ USD
Standard4.5$0.045

Each task is rounded up to whole credits, so one run at the lowest tier costs 5 credits per image ($0.05).

For an exact number before you run, send the same body to POST /jobs/quote.

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- and use the same credits as the website.
  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.

Seedream 4.0 API questions

How much does the Seedream 4.0 API cost?

Seedream 4.0 starts at 5 credits ($0.05) per image with Create Image, its cheapest task. Credits are the same as on the website (1 credit = $0.01), new accounts get 30 free credits, and failed tasks are refunded.

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.

How is Seedream 4.0 different from 5.0 Lite?

4.0 is the earlier generation. 5.0 Lite adds a jpeg or png choice but offers only eight presets, all at the 2K tier; 4.0 keeps sixteen presets from a 1024*1024 square up to 4096*2304, and its own rendering style. Pick 4.0 when you need the larger frames or are matching work already made with it.

How many reference images can an edit take?

Up to ten. Name each one's role in the prompt — unnamed references get blended — and remember that size still applies to the result.

Is there a seed for reproducible results?

No. Neither endpoint exposes one, so identical requests return different frames. Keep the prompt stored alongside any image you plan to reuse.

Can I choose JPEG or PNG?

No. This model has no file-format field, so the image comes back in the format the model delivers. Convert it downstream if your pipeline needs a specific format.

Can I try Seedream 4.0 without writing code?

Yes. The Playground runs Seedream 4.0 on your PopNow credits, needs no API key, and shows the matching code for every run.

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