Skip to content

Seedream 5.0 Pro Layers

Changes or combines images by instruction.

Model ID seedream-5.0-pro-layers
Task edit-image
Output image
Family Seedream
Status Active

Prices are live, so this page does not show them. GET /v1/models/seedream-5.0-pro-layers returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/seedream-5.0-pro-layers.

Name Type Default Allowed Required Description
prompt string Up to 4000 characters No Optional. Name the parts to put on their own layers, or mark one with x1 y1 x2 y2 (0 to 999 across and down). Leave it empty to separate every main element.
size string auto auto, 1K, 1.5K, 2K No Size of the base image and layers. Match keeps the source’s own size between 1K and 2K.
count integer 17 17 to 17 No A base image and up to 16 layers. The price covers 17 images; you are charged only for the ones made.
prompt_mode string standard standard, fast No Standard gives the best quality; Fast is quicker and may lose a little detail.

Each media input takes an asset ID (asset_…), a generation ID (gen_…, its first output), a public HTTPS URL or a small data: URI. URLs and data URIs are imported into the project first; see Uploading media.

Name Accepts How many Required Notes
reference image 1 Yes

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "seedream-5.0-pro-layers",
"input": {
"prompt": "Make the background a sunny beach",
"reference": "https://docs.halationlab.ai/media/sample-image.png"
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "seedream-5.0-pro-layers",
"input": {
"prompt": "Make the background a sunny beach",
"reference": "https://docs.halationlab.ai/media/sample-image.png"
},
"max_cost": $MAX_COST
}
JSON

The media URLs point at small sample files on this site. Replace them with your own asset IDs, generation IDs or URLs.