Seedream-5-5 API

Seedream image generation and layer decomposition

Provider

BytePlus

Billing

Provider cost

ScalingTensor price

Provider cost USD 0.008 / input image; USD 0.020 / 0.035 / 0.079 per output image by pixels

Playground

Try Seedream-5-5

Edit the params, add your API key and run the model here. The result plays on this page when the job completes.

Input

Used for this request only and never stored. Get a key

Running a request charges your wallet: Provider cost USD 0.008 / input image; USD 0.020 / 0.035 / 0.079 per output image by pixels.

Output

preview

Request summary

Endpoint
POST /api/media/generate
Model ID
dola-seedream-5-5-261028
size
2K
prompt
A small cat in a sunlit garden, watercolor illustration.
watermark
false
response_format
url

Need job lookups or the raw response? Open the full playground.

Pricing

Seedream-5-5 API pricing

Prices come from the live catalog. There is no subscription; each request is charged to your prepaid wallet.

ScalingTensor price

Provider cost

Live catalog price

Provider cost

USD 0.008 / input image; USD 0.020 / 0.035 / 0.079 per output image by pixels

Compare all model prices

Shared balance

Add credits

Top up

One wallet and one API key for every model in the catalog. Top-ups start at $10 and are paid through Stripe.

Parameters

Input parameters

These parameters belong inside the request body's params object.

Input parameters
nametyperequireddescription
promptstringconditionalGeneration or editing instructions; no more than 300 Chinese characters or 600 English words is recommended. Required for generation; optional for layer decomposition. Place parameters in params and use the slug from the model table for the top-level model field.
imagestring | string[]conditionalA public URL or data:image/...;base64,...; up to 10 reference images, each no larger than 30MB, with a total pixel count of 196-36000000 and an aspect ratio of 1/16-16. Required for layer decomposition, which accepts exactly one PNG/JPEG image of at least 512x512 pixels.
layer_decompositionbooleanfalseDefaults to false; true decomposes the image into a base image and up to 99 layers. If any layer fails, the entire request fails.
sizestringfalseDefaults to 2K for generation; supports 1K, 1.5K, 2K, or WIDTHxHEIGHT. Custom dimensions must have a total pixel count of 921600-8294400 and an aspect ratio of 1/16-16. Defaults to auto for decomposition; supports auto, 1K, 1.5K, and 2K.
optimize_prompt_optionsobjectfalsePrompt optimization settings.
optimize_prompt_options.modestringfalseDefaults to standard; only standard is supported.
output_formatstringfalseDefaults to png; supports png and jpeg. For decomposition, this controls only the base image; layers are always PNG.
backgroundstringfalseDefaults to auto; supports auto, transparent, and opaque. Supports generating RGBA images from text-only input or reference images. This field is not supported for decomposition; transparent cannot be used with jpeg.
response_formatstringfalseDefaults to url; supports url and b64_json. Image URLs are valid for 24 hours.
watermarkbooleanfalseDefaults to true; specifies whether to add an image watermark.
safety_identifierstringfalseA unique end-user identifier; using a hash of the user identifier is recommended.
layer_decomposition_optionsobjectfalseLayer decomposition settings supported only by Seedream 5.5.
layer_decomposition_options.max_imagesintegerfalseDefaults to 30; range: 2-100. The maximum number of output images, including the base image.
layer_decomposition_options.text_recognitionbooleanfalseDefaults to false; true returns rich-text OCR results for regular text layers. Decorative lettering and handwriting are not supported.

Output fields

Output fields
nametypedescription
modelstringThe ID of the model actually used.
createdintegerCreation time as a Unix timestamp in seconds.
dataobject[]Output images; for decomposition, each item is a base image or a layer, billed according to its actual dimensions.
data[].urlstringReturned when response_format=url; valid for 24 hours.
data[].b64_jsonstringBase64 data returned when response_format=b64_json.
data[].sizestringActual image dimensions in WIDTHxHEIGHT format.
data[].output_formatstringActual image format.
data[].backgroundstringActual background transparency type.
data[].z_indexintegerLayer stacking order for decomposition.
data[].namestringLayer name.
data[].descriptionstringLayer description.
data[].bounding_boxobjectLayer position.
data[].bounding_box.absolutearrayAbsolute coordinates.
data[].bounding_box.normalizedarrayNormalized coordinates.
errorobjectRequest-level error information.
error.codestringError code.
error.messagestringError description.
safety_identifierstringEnd-user identifier.
usageobjectActual generation usage.
usage.generated_imagesintegerNumber of successfully generated images; images that fail moderation are not billed.
usage.input_imagesintegerActual number of input images.
usage.output_tokensintegerThe total pixel count of output images divided by 256, rounded down.
usage.total_tokensintegerCurrently equal to output_tokens; not used as the basis for per-image pricing.
data[].text_recognitionobjectOCR results for regular text layers.
data[].text_recognition.textstringFull text.
data[].text_recognition.linesobject[]Text lines.
data[].text_recognition.lines[].bounding_boxobjectText line coordinates, including absolute and normalized.
data[].text_recognition.lines[].runsobject[]Styled text runs.
data[].text_recognition.lines[].runs[].textstringText of the run.
data[].text_recognition.lines[].runs[].styleobjectStyle settings, including similar_font_family, foreground_color, and the boolean fields bold, italic, underline, strikethrough, shadow, and translucent.

API

Call Seedream-5-5 from your code

Create a key in the console and call the API from your server using the apiKey header. Save data.jobId and poll GET /api/media/result?jobId=... with the same key; a code of 0 means success.

POST /api/media/generate
curl --request POST 'https://restapi.scalingtensor.com/api/media/generate' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "model": "dola-seedream-5-5-261028",
  "params": {
    "size": "2K",
    "prompt": "A small cat in a sunlit garden, watercolor illustration.",
    "watermark": false,
    "response_format": "url"
  }
}'
const response = await fetch("https://restapi.scalingtensor.com/api/media/generate", {
  method: "POST",
  headers: {
    apiKey: process.env.SCALINGTENSOR_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "dola-seedream-5-5-261028",
    "params": {
      "size": "2K",
      "prompt": "A small cat in a sunlit garden, watercolor illustration.",
      "watermark": false,
      "response_format": "url"
    }
  }),
});

const result = await response.json();
if (!response.ok || result.code !== 0) {
  throw new Error(result.msg || `Request failed: ${response.status}`);
}
console.log(result.data); // Save data.jobId to query /api/media/result
import os
import requests

payload = {
    "model": "dola-seedream-5-5-261028",
    "params": {
        "size": "2K",
        "prompt": "A small cat in a sunlit garden, watercolor illustration.",
        "watermark": False,
        "response_format": "url",
    },
}

response = requests.post(
    "https://restapi.scalingtensor.com/api/media/generate",
    headers={"apiKey": os.environ["SCALINGTENSOR_API_KEY"]},
    json=payload,
    timeout=60,
)
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
print(result["data"])  # Save data["jobId"] to query /api/media/result

API documentation · This page as Markdown · Markdown API reference

Related models

Seedream-5-5 API FAQ

How much does the Seedream-5-5 API cost?

Seedream-5-5 is billed at the provider's actual cost for each job (USD 0.008 / input image; USD 0.020 / 0.035 / 0.079 per output image by pixels). The charge is deducted from your prepaid ScalingTensor wallet.

How do I call the Seedream-5-5 API?

Send POST /api/media/generate with "model": "dola-seedream-5-5-261028" and the parameters in a params object, using your apiKey header. The call returns a jobId. Poll GET /api/media/result?jobId=... until the status is completed, then read the output URL from the result.

Which parameters does Seedream-5-5 accept?

No parameter is strictly required. Optional: prompt, image, layer_decomposition, size, optimize_prompt_options, output_format, background, response_format, watermark and safety_identifier and 1 more. The parameter table on this page describes each one.

Do I need a BytePlus account to use Seedream-5-5?

No. You call Seedream-5-5 with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.