# Upload audio

> 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**：Submit your audio to the system and get back an audio ID that “Generate from audio ID” and similar endpoints can reuse.

**When**：Upload first when the same audio will be used several times. When the task completes, take the audio ID from the “Get upload result” response.

## Endpoints
- Submit task: POST `/api/cqt/suno/v1/uploadTask`
- Query the result (with the returned taskId): GET `/api/cqt/suno/v1/getUploadTask?taskId={taskId}`

> After submitting, poll with the taskId — every 5–10 seconds is enough, no need to hit it every second.

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| audioFilePath | string | — | Audio file path. Same field as audio_file_path in two spellings; fill either one. |
| audio_file_path | string | — | Audio file path (snake_case spelling). |
| fileExt | string | — | File extension, e.g. mp3. Same field as file_ext in two spellings. |
| file_ext | string | — | File extension (snake_case spelling). |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/uploadTask \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"audioFilePath":"<AUDIO_FILE_PATH>","fileExt":"mp3"}'
# -> { "code":200, "msg":"success", "data":{ "taskId":1234567890 } }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": 1234567890
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| code | number | Business code: 200 = success; see the error notes for the rest. The HTTP status is normally 200. |
| msg | string | Message: success on success, the reason on failure. |
| data.taskId | number | Task ID (a number). Use it with the query endpoint to fetch the result. |
