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
| Status | Description |
|---|---|
pending | Task has been submitted and is waiting to be processed |
running | Task is actively being processed by the upstream provider |
success | Task completed successfully. Output is available |
failure | Task failed. Check the error field for details. Credits are refunded |
timeout | Task timed out. Credits are refunded |
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.| Field | Type | Description |
|---|---|---|
id | string | Unique clip identifier. Use this for continuation or concat tasks |
audio_url | string | URL to the generated audio file (MP3) |
image_url | string | URL to the generated cover art |
title | string | Generated or provided song title |
metadata | object | Additional info: duration (seconds), tags, prompt, etc. |
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
| Status | Description |
|---|---|
401 | Missing or invalid API key |
404 | Task not found (invalid ID or task belongs to another user) |
429 | Rate limit exceeded |
500 | Internal server error |
Get Task