Endpoints
Get Task
Retrieve the status and output of a task
GET
Get Task
Get Task
Retrieve the current status, input, and output of a previously created task. If the task is still in progress, sunor will live-poll the upstream provider and return the latest status.Request
Path parameters
The task ID returned from the Create Task endpoint.
Headers
Your API key.
Response
HTTP status code (
200 on success).The unique task identifier.
The model used (e.g.,
"suno").The task type (
"music", "lyrics", "upload", or "concat").Current task status. One of:
"pending", "running", "success", "failure", "timeout".Credits charged (or frozen) for this task.
The original input parameters submitted with the task.
The task output.
null while the task is still processing. Contains model-specific results on completion.Error message if the task failed.
null otherwise.ISO 8601 timestamp of task creation.
ISO 8601 timestamp of task completion.
null if not yet completed.Status values
Output format
Theoutput field structure depends on the task type. All outputs share a common wrapper:
The task type (
"music", "lyrics", "upload", or "concat").Internal processing status:
"queued", "processing", "completed", or "failed".Processing progress (e.g.,
"50%", "100%").Reason for failure, if any.
The task-specific result. Shape varies by task type (see below).
Output by task type
- Music
- Lyrics
- Upload
- Concat
result is an array of clip objects. Each music generation typically returns one or more clip variations.Example responses
Task in progress
200
Task completed (music)
200
Task failed
200
Polling strategy
Tasks typically take 30 seconds to 5 minutes to complete, depending on the task type and upstream provider load.Polling example
Errors
Get Task