Image Upscaler API guide
Image Upscaler API: Upscale an image to a selected 2K, 4K, or 8K tier. Choose base or ultimate processing through the mode field.
Model overview
Upscale an image to a selected 2K, 4K, or 8K tier. Choose base or ultimate processing through the mode field.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | image-upscaler |
| 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
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
The URL of the image to upscale.
Media types: image/*.
Sets mode for this item.
Allowed values: "base", "ultimate".
Studio preset: "base".
The target resolution of the generated media.
Allowed values: "2k", "4k", "8k".
Studio preset: "4k".
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.
No parameters match. Clear the search or reset the filters.
Model rules
Parameter meaning
- Base mode: Choose the target resolution tier using the exact public values 2k, 4k, or 8k.
- Ultimate mode: Choose the target resolution tier using the exact public values 2k, 4k, or 8k.
Model behavior
- Base mode: The upscaler increases image resolution and reconstructs visual detail from the source image.
- Ultimate mode: The upscaler increases image resolution and reconstructs visual detail from the source image.
- mode chooses base or ultimate processing. batch_size repeats executions within the MuseSpark task; it is separate from the target resolution.
Integration notes
Use the following field formats and values in MuseSpark requests.
mode: Select base or ultimate using the mode field on this public 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.
Upscale an image to 4K
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": "image-upscaler",
"parameters": {
"mode": "base",
"batch_size": 1,
"target_resolution": "4k",
"image": "https://example.com/product-photo.jpg"
}
}'Parameters used: mode · batch_size · target_resolution · image.
Use ultimate processing at 8K
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": "image-upscaler",
"parameters": {
"mode": "ultimate",
"batch_size": 1,
"target_resolution": "8k",
"image": "https://example.com/detailed-landscape.jpg"
}
}'Parameters used: mode · batch_size · target_resolution · image.
Output
The output is an upscaled image at the selected resolution tier. A tier label alone does not define an exact width and height for every aspect ratio.
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
The resolution value is rejected. Use lowercase 2k, 4k, or 8k.
Upscaling does not recover the expected detail. Use the clearest original image available; the process reconstructs detail from the supplied image.
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.