Overview
Seedream 5.0 Pro is a ByteDance image generation model for high-quality text-to-image creation, reference-guided image generation, and layer decomposition from a single source image. It supports1K and 2K generation tiers, flexible aspect ratios for generation and editing, optional explicit pixel sizes, and jpeg or png output.
Endpoint and authentication
Base URL:
All requests require your APIXO API key:
Copy-paste async quickstart
This minimal request submits a text-to-image task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
Request body
Text-to-image
Image-to-image
Explicit size
Layer decomposition
layer-decomposition, the model returns a base image plus extracted layer images. To guide the region to decompose, include a text tag such as <bbox>x1 y1 x2 y2</bbox> inside prompt. Do not send a separate bbox request field.
Parameters
string
default:"async"
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.string
Required when
request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.object
required
Seedream 5.0 Pro input parameters.
layer-decomposition, do not send resolution, aspect_ratio, max_images, num_images, or n. The number of decomposition outputs is controlled by the model.
Size presets from resolution + aspect_ratio
When resolution or aspect_ratio is provided, Seedream 5.0 Pro maps the effective resolution + aspect_ratio pair to these output dimensions:
Response format
Submit task response
POST /generateTask/seedream-5-0-pro returns a task ID when the task is accepted:
integer
API status code.
200 means the task was accepted.Layer decomposition result
Formode=layer-decomposition, data.resultJson remains a compatibility JSON string containing only the resultUrls array. Read data.layerDecomposition for file-level decomposition details:
string
Human-readable status message.
string
Task identifier used for later polling or webhook matching.
Latency and polling
Seedream 5.0 Pro tasks are asynchronous.
For production systems, prefer
callback_url instead of tight polling loops.
Billing
Seedream 5.0 Pro uses output-image billing.text-to-image and image-to-image return one output image. layer-decomposition is quoted and charged as 4 expected output images because it returns a base image plus layer images.
Billing behavior:
layer-decomposition, the request must contain exactly one input image, so the input reference add-on is $0. The default size=auto quote uses the 2K tier:
size=1K or size=1.5K uses the $0.045 output-image tier. Explicit size=2K uses the $0.09 output-image tier.
Failed generations are refunded.
Practical notes
- Image-count fields are intentionally omitted from this public contract for generation and editing; Seedream 5.0 Pro returns exactly one generated image for
text-to-imageandimage-to-image. 3Kand4Kare not supported by this endpoint.2K + 21:9maps to3024x1296, which preserves the21:9ratio while staying within the4,194,304pixel limit.- If
resolutionoraspect_ratiois provided together withsize, the effectiveresolution + aspect_ratiopreset decides the output dimensions. - If you only provide
size, APIXO uses that explicit pixel size or preset token. - For
layer-decomposition, region control is text-based: write<bbox>x1 y1 x2 y2</bbox>inprompt; do not add a top-level or input-levelbboxfield.