APIMart
Image

Seedream 4.0 API

Seedream 4.0 is ByteDance's image model that generates and edits in one architecture, at 1K, 2K or 4K. On APIMart you call it as seedream-4.0 for text to image, reference-based editing and batches of up to 15 images, billed per image.

1K / 2K / 4KText to ImageImage EditingBatch up to 15Reference Images

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
143 characters
Output
Generated 1

Image link valid for 72 hours

Seedream 4.0 API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
seedream-4-01K/2K/4K0.195Credits(~$0.0195)/pic0.1853Credits(~$0.0185)/pic0.1755Credits(~$0.0176)/pic0.2438Credits(~$0.0244)/pic20%

* Actual costs are subject to final output.

Seedream 4.0 API for 4K Text to Image, Image Editing and Batch Output

Seedream 4.0 (also written Seedream 4 or Seedream v4) is the ByteDance image model that put generation and editing into a single model. Through one APIMart key you can turn a prompt into a 1K, 2K or 4K image, edit a photo with a sentence, or send reference images and get up to 15 consistent variations back in one task. Every resolution costs the same per image.

50K+

Active Users

99.9%

Uptime

2x

Faster

20%

Cost Savings

Seedream 4.0 API Example: Text to Image and Image Editing

Call seedream-4.0 on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint to get the image URLs.

  1. 1

    Authenticate Seedream 4.0 API requests

    Save the key you created above in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Seedream 4.0 task

    POST /v1/images/generations with model seedream-4.0, your prompt, size and resolution. Add image_urls to edit images or to generate a batch. The response returns a task_id.

  3. 3

    Get the Seedream 4.0 result

    Send GET /v1/tasks/{task_id} every few seconds until the task is completed, then read the image URLs from result.images[0].url. Results are kept for 72 hours, so download the files you want to keep.

    See the Seedream 4.0 API reference for the full pixel table and every parameter.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-4.0",
    "prompt": "A retro jazz festival poster with the title \"BLUE NOTE NIGHTS\" and the date \"10.01–10.07\" in bold serif letters, saxophone silhouette, warm orange and navy palette",
    "size": "16:9",
    "resolution": "2K"
  }'

Seedream 4.0 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: seedream-4.0Model ID. seedream-4.0, seedream-4-0 and Seedream-4.0 are all accepted.
promptstringRequiredDefault: —Text description of the image or the edit, up to 1,000 characters.
sizestringOptionalDefault: 1:1Aspect ratio: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 2:1, 1:2, 21:9, 9:21, or auto to match the reference image (requires image_urls).
resolutionstringOptionalDefault: 2K1K, 2K or 4K. All three cost the same per image.
nintegerOptionalDefault: 1Number of images, 1–15. Values above 1 need at least one reference image, and references plus n must total 15 or fewer.
image_urlsarrayOptionalDefault: —Reference images as public URLs or base64 data URIs, JPEG or PNG, up to 10 MB each. Adding them switches to image editing or reference-based generation.
optimize_prompt_optionsstringOptionalDefault: standardstandard for higher quality, or fast for quicker results with regular quality.
sequential_image_generationstringOptionalDefault: disabledSet to auto with sequential_image_generation_options.max_images (1–15) to generate a related set. Becomes auto automatically when n is above 1.
watermarkbooleanOptionalDefault: falseAdd a watermark to the generated images.
nsfw_checkbooleanOptionalDefault: falseModerate the prompt and input images before the task is submitted.

Seedream API Model Family

Compare every Seedream model on APIMart. One API key calls all of them through the same endpoint, billed per image.

ModelBest forResolution
Seedream 5.0 Pro APIQuality-first single images with dense text, up to 10 references, point and box edits and layer splitting1K / 1.5K / 2K
Seedream 5.0 Flash APIThe Seedream 5.0 Pro feature set at one lower price for every size, with no reference surcharge1K / 1.5K / 2K
Seedream 5.0 Lite API2K to 4K output, PNG or JPEG, and batches of up to 15 images per request2K / 3K / 4K
Seedream 4.5 API2K or 4K posters with stronger typography and reference fidelity, batches of up to 152K / 4K
Seedream 4.0 APIThis page1K, 2K and 4K at one price, image editing and batches of up to 15 with references1K / 2K / 4K
All Seedream API models on one page →