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
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.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:
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:
Latency and polling
Seedream 5.0 Pro tasks are asynchronous.
For production systems, prefer
callback_url instead of tight polling loops.
Billing
New non-LLM requests use 1 credit =$0.001. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See credit conversion and rounding.
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.
MCP integration
The complete model schema declares result decoding inmcp.result and supported file bindings in mcp.attachments. These are client integration metadata, not generation input parameters. Attachment paths: image_urls. Preserve the user’s file order. Model parameter validation remains on the API.