About Seedream 4.0
Seedream 4.0 edit takes a prompt, up to ten image_urls and a size preset, typically in about 42 seconds.
Call it with the model name bytedance/seedream-4.0/edit on POST /jobs/createTask, from $0.031.
Introduction
Seedream 4.0 Image Editing revises supplied imagery with a written change request. Use it for controlled series work when character, composition or visual language should remain recognisable while one deliberate decision changes.
Choose a Seedream 4.0 mode by starting material
| Starting material | Mode |
|---|---|
| A written art direction or design brief | Seedream 4.0 Text to Image |
| An approved source image to revise | Seedream 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
| Parameter | Required | Description |
|---|---|---|
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
prompt | Yes | Describe what you want to make. |
size | No | Exact 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 |
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.
| Option | USD 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
Refine a supplied visual
Seedream 4.0 Image to Image takes one to ten reference images plus an instruction and returns a single frame at the size you name. That makes it useful for series work: the same character, restyled, delivered at the same pixel dimensions every time. Name what each reference contributes and what must stay, and pick the preset that matches the source's shape so nothing is recomposed.
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
Send one to ten image URLs in the order your prompt refers to them, and say what each contributes and what must stay.
Poll the task and keep the brief
There is no seed, so keep the references and the instruction together with any frame you want to build a series on.
Adapt the included example
Start with the published example using size: 1728*2304. Replace the subject and creative direction while keeping the input contract for this mode intact.
Keep the face, body and pose of the woman in Image 1 exactly as they are. Move her to a sunlit Mediterranean terrace with whitewashed walls and bougainvillea, relight her with warm late-afternoon sun from the left, and regrade the whole frame to soft golden tones.
One image in: the instruction protects face, body and pose, then replaces the location and the light. Name the short list that stays and the rest is open. Delivered at the tall 1728*2304 preset to keep the source's portrait shape.
Check the result before iterating
One to ten references, each needing a role named in the prompt; unnamed sources get blended. size still applies, so a reference of a different shape is recomposed into the preset you choose. Long edit chains drift, so go back to the original frame rather than re-editing an edit.
API quick start
Call the Seedream 4.0 API in three steps
- 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.
- Send the request. POST /jobs/createTask with model bytedance/seedream-4.0/edit and an input object that follows the parameter table. The response returns a task ID straight away.
- 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/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"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.
About the Seedream 4.0 Edit Image endpoint
Lead with what must stay (face, body, pose, or the composition) before the change.
Restyles such as photo to graphic-novel ink keep structure when the key elements are listed.
The size preset applies to edits too, so output can be as large as 4096 by 2304 at no extra cost.
Since every size costs the same, request the final delivery size directly rather than editing small and upscaling later.
There is no seed, so save the prompt and references for any edit you may want to repeat.
Seedream 4.0 API questions
How much does the Seedream 4.0 API cost?
Seedream 4.0 starts at $0.031 per image with Edit 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 are the limits of the Seedream 4.0 · Edit Image API?
Reference images: 10. Requests outside these limits are rejected before anything is charged.
More about Seedream 4.0
- Endpoints
- Seedream 4.0 · Create Image