# Get music result

> Suno v1 has its own task system, different from Suno v2: a submit returns a numeric taskId and results come from the v1 query endpoints; task IDs and result formats are not interchangeable between the two. For the OpenAI-style entry use /v1/audio/generations (model suno_v1).

**What**：Check the progress and the finished songs of create-type tasks (create / extend / replace / cover / merge / compatible forms and so on).

**When**：Call it every 5–10 seconds after submitting, until data.status is success and every clip’s status is complete; on failure code is 500. No credits are charged.

## Endpoints
- Call (synchronous): GET `/api/cqt/suno/v1/sunoInfo`

> This endpoint does not consume credits.
> The system refreshes a task from the upstream at most once every 10 seconds, so polling faster does not help.
> After a task succeeds, the audio_url of every song in data.data is replaced with a fresh link automatically; query again after it expires to get a new one.
> The automatic refund on failure happens the moment your query sees the failure, so make sure you poll until a final state.

## Query parameters
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| taskId | string | Yes | The taskId returned when you submitted the create task. |

## Request example
```bash
curl -G https://api.novapi.ai/api/cqt/suno/v1/sunoInfo \
  -H 'Authorization: Bearer <API_KEY>' \
  --data-urlencode 'taskId=1234567890'
# -> { "code":200, "msg":"success", "data":{ "status":"success", "data":[ …歌曲… ] } }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "status": "success",
    "taskId": 1234567890,
    "data": [
      {
        "id": "<clipId-1>",
        "status": "complete",
        "audio_url": "https://<cdn>/xxxx-1.mp3"
      },
      {
        "id": "<clipId-2>",
        "status": "complete",
        "audio_url": "https://<cdn>/xxxx-2.mp3"
      }
    ],
    "creatAt": "1767225600",
    "finishAt": "1767225660"
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| data.status | string | Overall task status: running (in progress) / success (the upstream produced songs) / failed (see failReason). Whether the songs are final is decided by each clip’s status being complete. |
| data.taskId | number | Task ID. |
| data.data | array | List of songs, normally two. Each has at least id, status and audio_url; other fields (title, duration, cover …) come from the upstream as is and may change. |
| data.data[].audio_url | string | Direct audio link of the song (swapped for a fresh link after success). |
| data.creatAt | string | Creation time (Unix seconds, as a string). The field name really is creatAt (one e short); null while the task has just been submitted. |
| data.finishAt | string | Completion time (Unix seconds, as a string), null until finished. |
| data.failReason | string | Failure reason (only when status is failed). Note that this endpoint still answers code 200 on failure; the reason is here, not in msg. |
| data.failCode | number | Failure code (only when status is failed), e.g. 100020 or 400. |

## Common errors
| msg | Meaning |
| --- | --- |
| no data error | No such taskId, or the task is still running but was not submitted by you (other people’s running tasks are answered as "not found"). |
| No available token | Example failure reason (data.failReason, failCode 100020): no generation capacity is available right now. The task ends as failed and the credits are refunded; try again later. |
| MERGE_MUSIC_FAILED [400] | Example failure reason (data.failReason): the merge request was rejected, usually because clip_id / edit_session_id do not belong to the same edit. |
