Seedream 5.0 Pro API guide
Seedream 5.0 Pro API: Generate images from text or edit reference images with Seedream 5.0 Pro. This MuseSpark item accepts up to 10 reference images and supports 1K, 1.5K, and 2K output tiers; transparent output requires one reference image with an alpha channel.
Model overview
Generate images from text or edit reference images with Seedream 5.0 Pro. This MuseSpark item accepts up to 10 reference images and supports 1K, 1.5K, and 2K output tiers; transparent output requires one reference image with an alpha channel.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | seedream-5-0-pro |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Describe the image to generate or how the reference images should be edited.
Length: minimum 1.
Required for Image to Image.
Additional requirements depend on other values. See model rules.
Up to 10 public HTTP(S) reference image URLs or complete image data URIs. JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, or HEIF; at most 30 MB and 36000000 pixels per image, each edge over 14 pixels, aspect ratio from 1:16 to 16:1. Transparent output requires exactly one image with an alpha channel.
Item count: minimum 1; maximum 10.
Output resolution tier. 1.5K provides more detail at the same price as 1K.
Allowed values: "1K", "1.5K", "2K".
Studio preset: "1K".
Output image aspect ratio. Auto lets the model choose from the prompt or reference images.
Allowed values (11)
Allowed values: "auto", "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "2:1", "1:2", "21:9".
Studio preset: "auto".
Transparent output requires one alpha-channel reference image.
Allowed values: "opaque", "transparent".
Studio preset: "opaque".
Standard quantity control field. The allowed range for this item is 1-15.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 15.
Studio preset: 1.
Enable pre-submission content moderation. The default is false.
Add an AI generated watermark in the lower-right corner.
Studio preset: false.
Prompt optimization options. The supported mode is standard.
Layer decomposition is currently unavailable.
Allowed values: false.
Studio preset: false.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Image | No reference media required |
| Image to Image | images |
- When
backgroundis "transparent", provideimages; keepimages, when supplied, at least 1 and at most 1 items. - Transparent output is an editing operation. Supply exactly one image that already has an alpha channel; an opaque reference or a text-only request is insufficient.
- This item only permits layer_decomposition=false. Layer decomposition is unavailable through this item.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Image
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "seedream-5-0-pro",
"parameters": {
"watermark": false,
"background": "opaque",
"batch_size": 1,
"resolution": "1K",
"aspect_ratio": "auto",
"layer_decomposition": false,
"prompt": "A paper city under soft morning light"
}
}'Parameters used: watermark · background · batch_size · resolution · aspect_ratio · layer_decomposition · prompt.
Edit an image while preserving transparency
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "seedream-5-0-pro",
"parameters": {
"watermark": false,
"background": "transparent",
"batch_size": 1,
"resolution": "1.5K",
"aspect_ratio": "auto",
"layer_decomposition": false,
"prompt": "Turn the existing isolated product into a paper sculpture, preserving the transparent background.",
"images": [
"https://example.com/source-with-alpha.png"
]
}
}'Parameters used: watermark · background · batch_size · resolution · aspect_ratio · layer_decomposition · prompt · images.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.