MuseSpark
MuseSpark
Models & toolsImage models

Seedream 5.0 Lite API guide

Seedream 5.0 Lite API: Generate images from text or edit image references with Seedream 5.0 Lite. Use image_urls for references and configure the declared output resolution and aspect ratio.

Model overview

Generate images from text or edit image references with Seedream 5.0 Lite. Use image_urls for references and configure the declared output resolution and aspect ratio.

API integration

DocumentationValue
API invocation identifierseedream-5.0-lite
IntegrationAsync 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.

promptstringNon-nullRequired

Describe the image to generate.

Length: minimum 1.

image_urlsarray<string>Non-nullConditional

Required for Image Editing.

Additional requirements depend on other values. See model rules.

Up to 14 JPEG or PNG reference images, supplied as public HTTP(S) URLs or complete Data URIs. Each image must be at most 10 MB, wider and taller than 14 px, with width/height between 1/3 and 3 and at most 6000 x 6000 total pixels.

Item count: maximum 14.

Media types: image/jpeg, image/png.

resolutionstringNon-nullOptional

Output image resolution.

Allowed values: "2K", "3K", "4K".

Studio preset: "2K".

aspect_ratiostringNon-nullOptional

Output image aspect ratio. Auto requires at least one reference image and follows its aspect ratio.

Allowed values (11)

Allowed values: "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "2:1", "1:2", "21:9", "auto".

Studio preset: "1:1".

batch_sizeintegerNon-nullOptional

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.

watermarkbooleanNon-nullOptional

Add a watermark to generated images.

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.

ModeRequired inputs
Text to ImageNo reference media required
Image Editingimage_urls
  • When aspect_ratio is "auto", provide image_urls; keep image_urls, when supplied, at least 1 items.
  • When image_urls is omitted, use 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 2:1, 1:2, 21:9 for aspect_ratio.

Parameter meaning

  • Seedream 5 Lite supports higher-resolution output tiers rather than a 1K tier. Follow this item's enum instead of borrowing another image model's defaults.
  • Grouped-image generation constrains reference count together with the per-generation output count. MuseSpark batch_size controls repeated executions and is a separate setting.

Dependencies

  • Automatic aspect-ratio matching requires a reference image. With text-only input, choose an explicit ratio from the allowed values.

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-lite",
  "parameters": {
    "watermark": false,
    "batch_size": 1,
    "resolution": "2K",
    "aspect_ratio": "1:1",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: watermark · batch_size · resolution · aspect_ratio · prompt.

Image Editing

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-lite",
  "parameters": {
    "watermark": false,
    "batch_size": 1,
    "resolution": "2K",
    "aspect_ratio": "1:1",
    "prompt": "A paper city under soft morning light",
    "image_urls": [
      "https://example.com/input-1.png"
    ]
  }
}'

Parameters used: watermark · batch_size · resolution · aspect_ratio · prompt · image_urls.

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.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.