MuseSpark
MuseSpark
Async task integration

Async task integration

A standard request lifecycle for image, video, audio, and 3D generation.

The task API accepts a model's inputs, returns a task ID, and lets your application retrieve the result when processing finishes.

Integration flow

  1. Create an API key with task access.
  2. Choose an authorized model and read its detailed input requirements.
  3. Submit one task with a stable idempotency key.
  4. Poll the returned task ID until it reaches a terminal state.
  5. Save the returned results in your application.

Start building

GuideWhat you will learn
QuickstartCreate a task and retrieve its output with curl, Python, or JavaScript.
AuthenticationConfigure API keys, products, and scopes.
Task lifecycleInterpret progress, terminal states, result fields, and expiry.
Model selectionResolve a public model identifier and find its detailed documentation.
Errors and retriesRecover from failures without accidentally submitting duplicate work.
API referenceLook up the exact task, status, and model-list operations.

Public endpoints

Use https://api.musespark.ai as the API origin. Task endpoints begin with /api/v1/openapi. Successful responses use the JSON envelope {"code":200,"msg":"success","data":{...}}.

The native LLM gateway has a separate protocol integration module.