Guide

How to use the Seedream API: Seedream 5.5 in Python and curl, and the price per image

Prices checked Nov 26, 2026 · 3 min read

How to use the Seedream API: a request returning an edited image

To use the Seedream API, send one POST /v1/tasks with model set to seedream-5-5 and a prompt inside input. Then poll GET /v1/tasks/{id} or pass a callback_url, and read the image from output.urls. On TapModels, Seedream 5.5 costs $0.018 per image at 1K and $0.0315 at 2K, the lowest 1K image price in our catalog. A failed task costs nothing.

The request

Image generation runs as an asynchronous task. The base URL is https://api.tapmodels.com/v1 and auth is Authorization: Bearer sk_live_....

{
  "model": "seedream-5-5",
  "input": {
    "prompt": "A walnut desk by a window, a ceramic cup and a closed notebook, soft morning light",
    "aspect_ratio": "4:3",
    "resolution": "2K",
    "output_format": "jpg"
  },
  "callback_url": "https://your.app/hooks/tapmodels"
}

The reply is 202 { "id": "task_...", "status": "queued", "estimated_credits": 3.15 }.

Parameters and valid values

FieldRequiredValid valuesDefault
promptyesText describing the image or the editnone
image_inputnoUp to 6 reference images, for edits or combiningnone
aspect_rationo1:1, 4:3, 3:4, 16:9, 9:16, 21:91:1
resolutionno1K, 2K1K
output_formatnojpg, pngjpg

Seedream 5.5 does not offer 4K on our API. A request for 4K returns 422 invalid_input and names the field. The live schema is at GET /v1/models/seedream-5-5.

Python example

import os, time, requests

BASE = "https://api.tapmodels.com/v1"
H = {"Authorization": f"Bearer {os.environ['TAPMODELS_API_KEY']}"}

r = requests.post(f"{BASE}/tasks", headers=H, json={
    "model": "seedream-5-5",
    "input": {"prompt": "A walnut desk by a window, a ceramic cup and a closed notebook",
              "aspect_ratio": "4:3", "resolution": "2K"},
})
r.raise_for_status()
task = r.json()

while task["status"] in ("queued", "running"):
    time.sleep(2)
    task = requests.get(f"{BASE}/tasks/{task['id']}", headers=H).json()

print(task["status"], task["output"], task["credits_charged"])

Curl example

curl https://api.tapmodels.com/v1/tasks \
  -H "Authorization: Bearer $TAPMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"seedream-5-5","input":{"prompt":"A walnut desk by a window, a ceramic cup and a closed notebook","resolution":"2K"}}'

curl https://api.tapmodels.com/v1/tasks/task_123 \
  -H "Authorization: Bearer $TAPMODELS_API_KEY"

Editing with reference images

Seedream 5.5 is built for editing, and the catalog allows up to 6 reference images. Upload each with POST /v1/files (multipart, up to 30 MB), then pass the returned URLs in image_input with a prompt that names the one change you want.

up = requests.post(f"{BASE}/files", headers=H, files={"file": open("desk.jpg", "rb")}).json()
body = {"model": "seedream-5-5",
        "input": {"prompt": "Change the cup to dark blue, leave everything else as is",
                  "image_input": [up["url"]], "resolution": "1K"}}

Each edit is one request. Ten rounds of editing at 1K cost 10 x $0.018 = $0.18, and a round is billed only if it succeeds. Uploaded and output files are kept for 14 days.

Seedream API cost per image

List price is the provider's published rate as recorded in our catalog on 2026-11-26. Credits are 100 per dollar.

ResolutionTapModelsList priceLower by1,000 images
1K$0.018$0.0210%$18.00
2K$0.0315$0.03510%$31.50

Worked example: an online shop makes 3 backgrounds for each of 400 products.

  • 1,200 images at 1K: 1,200 x $0.018 = $21.60 (2,160 credits)
  • The same at 2K: 1,200 x $0.0315 = $37.80
  • Draft all at 1K and finish 400 winners at 2K: $21.60 + 400 x $0.0315 = $21.60 + $12.60 = $34.20

Going from 1K to 2K adds $0.0135 per image, a 75% increase. If the image is shown small on a product page, 1K saves nearly half. Compare other image models in Nano Banana vs Seedream and Seedream vs GPT Image.

Common errors

HTTPCodeWhat to do
401unauthorizedCheck the key is present and not revoked
402insufficient_creditsBalance minus held credits is below the estimate
402key_limit_reachedThe key's spend limit would be exceeded
403model_not_allowedThe key's allowed_models excludes seedream-5-5
422invalid_inputA field is outside the valid values above, for example 4K
429rate_limitedWait for Retry-After, then retry
task failedupstream_errorResubmit: 0 credits were charged

Credits are held at submit and charged only on success. The default limit is 20 new tasks per 10 seconds per account, so the 1,200-image job above needs at least 1,200 / 20 = 60 windows of 10 seconds. That is about 10 minutes just to submit.

Next step: see all rates on the Seedream pricing page.

Frequently asked questions

How do I use the Seedream API?

Send POST /v1/tasks with model seedream-5-5 and an input object with a prompt, an aspect_ratio and a resolution of 1K or 2K. Poll GET /v1/tasks/{id} or pass a callback_url. When the status is succeeded, output.urls holds the image.

How much does the Seedream API cost?

Seedream 5.5 on TapModels costs $0.018 per image at 1K and $0.0315 at 2K. List prices recorded in our catalog are $0.02 and $0.035. A thousand 1K images cost $18.00 and a thousand 2K images cost $31.50.

Is there a Seedream 4 API?

Our catalog lists Seedream 5.5, model id seedream-5-5, and no Seedream 4 model. If you built on Seedream 4 elsewhere, switch the model id and recheck the fields on this page. Confirm the current list at GET /v1/models.

Can the Seedream API edit an image?

Yes. Seedream 5.5 is listed for text to image and image editing. Upload the picture with POST /v1/files, pass its URL in image_input and describe the change in the prompt. Up to 6 reference images are allowed per request, and the price is set by resolution.

Sources