Skip to main content
GET
/
api
/
v1
/
client
/
job
/
TaskInfo
Query the status and results of Suno music generation tasks.
curl --request GET \
  --url https://api.crun.ai/api/v1/client/job/TaskInfo \
  --header 'x-api-key: <api-key>'
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "d6956973-2f17-43d4-8514-af6cc3a2f55d",
    "provider": "Suno",
    "model_version": "sunov5",
    "status": "running",
    "param": {
      "model": "suno/music-generate",
      "callback_url": null,
      "input": {
        "mode": "custom",
        "model": "v5",
        "instrumental": false,
        "title": "Midnight Addiction",
        "tags": "Western R&B, female vocal, dark, sensual",
        "lyrics": "[Verse 1] I still taste your words in the dark..."
      }
    },
    "create_at": 1768900378,
    "result": null,
    "duration_s": null,
    "complete_at": null,
    "source": "api"
  }
}

API Endpoint

GET https://api.crun.ai/api/v1/client/job/TaskInfo
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

task_id
string
required
The unique task identifier returned when you created the task.Example: task_12345678

Request Example

curl -X GET "https://api.crun.ai/api/v1/client/job/TaskInfo?task_id=task_12345678" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json"

{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "d6956973-2f17-43d4-8514-af6cc3a2f55d",
    "provider": "Suno",
    "model_version": "sunov5",
    "status": "running",
    "param": {
      "model": "suno/music-generate",
      "callback_url": null,
      "input": {
        "mode": "custom",
        "model": "v5",
        "instrumental": false,
        "title": "Midnight Addiction",
        "tags": "Western R&B, female vocal, dark, sensual",
        "lyrics": "[Verse 1] I still taste your words in the dark..."
      }
    },
    "create_at": 1768900378,
    "result": null,
    "duration_s": null,
    "complete_at": null,
    "source": "api"
  }
}

Response Format

code
integer
Response status code. 200 indicates the request was successfully processed (the task was found and returned, regardless of execution result).
message
string
Response message. Typically "success".
data
object
The task data object containing all task information.

SunoMusicItem Object

suno_id
string
Suno Music ID
title
string
Music title
prompt
string
Lyrics or prompt used to generate the music.
tags
string
Music style tags
suno_audio_url
string
Suno original audio URL
suno_image_url
string
Music cover image URL
suno_image_large_url
string
High-resolution cover image URL
suno_model_name
string
Suno model name, mapping relationship:
  • chirp-fenix: v5.5
  • chirp-crow: v5
  • chirp-auk-turbo: v4.5all
  • chirp-bluejay: v4.5plus
  • chirp-auk: v4.5
  • chirp-v4: v4
  • chirp-v3-5: v3.5
  • chirp-v3: v3
duration
number
Audio duration in seconds
created_at
integer
Creation timestamp

Task Status Enum

StatusDescriptionAction
pendingTask is queued and waiting to be processedContinue polling
runningTask is currently being processedContinue polling
successTask successfully completedAccess result.suno_data to get the Suno music items or result.media_url to get the result
failedTask failedAccess result object to view error code and message.

Get Task Result Best Practices

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
Recommended method
When status is success:
  1. Retrieve the task result from the result field in the response
  2. Extract Suno music items from result.suno_data
  3. Download audio from each item’s suno_audio_url
  4. Persist result metadata to your storage or database
Important: Generated media URLs(no suno original URL) are typically permanently deleted after 14 days

Common Error Codes

CodeDescriptionSolution
401Unauthorized - Invalid or missing API keyCheck your API key
404Task not foundVerify the task_id is correct
429Exceeding the request rate limitReduce request frequency
500Internal server errorRetry after a few minutes
501Generation failedView 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

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

x-api-key
string
header
required

All APIs require authentication via API Key.

Get API Key:

  1. 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
string
required

Task ID used to retrieve task result.

Required string length: 36
Example:

"task_1234567"

Response

Task information retrieved successfully or task not found.

code
integer
required

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
message
string
required

Response message

data
object

Task record and result information.