Query the status and results of Suno music generation tasks.
Suno Task
Suno API Task Info
Query the status and results of Suno music generation tasks.
GET
Query the status and results of Suno music generation tasks.
API Endpoint
This endpoint is used to query the execution status and retrieve the results of Suno music tasks created via the
/api/v1/client/job/CreateTask API.It shares the same endpoint, parameters, and task status enum as the common task query, but adds a Suno-specific suno_data array in the task result when the task is successful.Query Parameters
The unique task identifier returned when you created the task.Example:
task_12345678Request Example
Response Format
Response status code. 200 indicates the request was successfully processed (the task was found and returned, regardless of execution result).
Response message. Typically
"success".The task data object containing all task information.
SunoMusicItem Object
Suno Music ID
Music title
Lyrics or prompt used to generate the music.
Music style tags
Suno original audio URL
Music cover image URL
High-resolution cover image URL
Suno model name, mapping relationship:
chirp-fenix:v5.5chirp-crow:v5chirp-auk-turbo:v4.5allchirp-bluejay:v4.5pluschirp-auk:v4.5chirp-v4:v4chirp-v3-5:v3.5chirp-v3:v3
Audio duration in seconds
Creation timestamp
Task Status Enum
| Status | Description | Action |
|---|---|---|
pending | Task is queued and waiting to be processed | Continue polling |
running | Task is currently being processed | Continue polling |
success | Task successfully completed | Access result.suno_data to get the Suno music items or result.media_url to get the result |
failed | Task failed | Access result object to view error code and message. |
Get Task Result Best Practices
Recommended Polling Intervals
Recommended Polling Intervals
- Polling Interval: Use a polling interval between 15 and 30 seconds
- Interval Dynamically: For long-running audio generation tasks, consider increasing the polling interval dynamically
- Delayed Polling: Wait at least one polling interval before the first status check to reduce unnecessary requests
- Maximum polling duration: Stop after 15-20 minutes and investigate
Using Callbacks Instead of Polling
Using Callbacks Instead of Polling
For production applications, we strongly recommend using the
callback_url parameter when creating tasks:- No polling needed: Your server receives notifications automatically
- Lower API costs: Eliminates continuous polling requests
- Better performance: Immediate notifications when tasks complete
- Reduced latency: No delay between completion and notification
Handling Completed Tasks
Handling Completed Tasks
When
status is success:- Retrieve the task result from the
resultfield in the response - Extract Suno music items from
result.suno_data - Download audio from each item’s
suno_audio_url - Persist result metadata to your storage or database
Common Error Codes
| Code | Description | Solution |
|---|---|---|
401 | Unauthorized - Invalid or missing API key | Check your API key |
404 | Task not found | Verify the task_id is correct |
429 | Exceeding the request rate limit | Reduce request frequency |
500 | Internal server error | Retry after a few minutes |
501 | Generation failed | View the result object to get the error code and message. |
Rate Limits
- Maximum query rate: 15 requests per second, per account limit
- Recommended interval: 15-30 seconds between polls
Related Resources
Suno Quickstart
Learn how to call Suno models
Generate Music
Create songs from text prompts with diverse styles.
Extend Music
Continue and expand existing music seamlessly.
Music Cover
Recreate songs in new styles or voices.
Authorizations
All APIs require authentication via API Key.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header:
x-api-key: YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Query Parameters
Task ID used to retrieve task result.
Required string length:
36Example:
"task_1234567"
Response
Task information retrieved successfully or task not found.
Response status code
- 200: Success - Request has been processed successfully
- 401: Unauthorized - Authentication credentials are missing or invalid
- 402: Insufficient Credits - Account does not have enough credits to perform the operation
- 404: Not Found - The requested resource or endpoint does not exist
- 422: Validation Error - The request parameters failed validation checks
- 429: Rate Limited - Request limit has been exceeded for this resource
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
- 501: Generation Failed - Content generation task failed
- 505: Feature Disabled - The requested feature is currently disabled
Response message
Task record and result information.
