Seedream-5-0-flash API

Seedream image generation and layer decomposition

Provider

BytePlus

Billing

Provider cost

ScalingTensor price

Provider cost USD 0.018 / output image; input images free

Playground

Try Seedream-5-0-flash

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.018 / output image; input images free.

Output

preview

Request summary

Endpoint
POST /api/media/generate
Model ID
dola-seedream-5-0-flash-260915
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-0-flash 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.018 / output image; input images free

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 16 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-4624220 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 jpeg; supports png and jpeg. For decomposition, this controls only the base image; layers are always PNG.
backgroundstringfalseDefaults to opaque; supports opaque and transparent. Transparent mode accepts only a single input image with an existing alpha channel; generating transparent images from text-only input is not supported. 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.

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.

API

Call Seedream-5-0-flash 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-0-flash-260915",
  "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-0-flash-260915",
    "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-0-flash-260915",
    "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-0-flash API FAQ

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

Seedream-5-0-flash is billed at the provider's actual cost for each job (USD 0.018 / output image; input images free). The charge is deducted from your prepaid ScalingTensor wallet.

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

Send POST /api/media/generate with "model": "dola-seedream-5-0-flash-260915" 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-0-flash accept?

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

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

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