# 标签增强

**这是什么**：把你给的简单风格标签扩展成更丰富的描述。

**什么时候用**：不知道怎么描述风格、想要更专业的标签时用。

## 接口地址
- POST `/api/cqt/generator/suno` (task: `upsample_tags`)
- GET `/api/cqt/info/suno?id={taskId}`

## 请求参数
| 参数 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| task | string | 是 | 固定填 upsample_tags |
| prompt | string | 是 | 待增强的风格标签/描述 |

## 请求示例
```bash
curl -X POST https://api.novapi.ai/api/cqt/generator/suno \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "task":"upsample_tags", "prompt":"lofi chill beats" }'
# -> { "code":200, "data":"<taskId>" }
```

## 响应示例
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "3c571bf96d6b45188a502c20207a64bc",
    "taskType": "upsample_tags",
    "status": "succeeded",
    "errorMsg": "",
    "param": {
      "task": "upsample_tags",
      "prompt": "lofi chill beats"
    },
    "result": {
      "upsampled_tags": "Dusty lo-fi chill beats at 78 BPM with soft boom-bap kick, brushed snare, and off-grid hi-hats. Warm Rhodes chords through tape saturation, vinyl crackle, mellow sub-bass, and filtered guitar plucks with long delay tails. Gentle sidechain, wide room ambience, and understated swing create a suspended, weightless groove.",
      "request_id": "072792ff-eb35-4325-9820-fc8b9c403289"
    },
    "createTime": "2026-07-08 17:16:08",
    "completeTime": "2026-07-08 17:16:12"
  }
}
```

## 响应字段说明
| 字段 | 类型 | 说明 |
| --- | --- | --- |
| code | number | 状态码，200 表示成功 |
| msg | string | 提示信息 |
| data.id | string | 任务 ID（= 提交时拿到的 taskId） |
| data.taskType | string | 任务类型，恒为 upsample_tags |
| data.status | string | 任务状态：pending 处理中 / succeeded 成功 / failed 失败 |
| data.param | object | 原样回显你提交的请求参数 |
| data.result | object | ⚠ 对象（非数组），结果在下面两个字段 |
| data.result.upsampled_tags | string | 扩写后的丰富风格描述（可直接喂给 create 的 tags/prompt） |
| data.result.request_id | string | 本次扩写的请求 ID（排查用） |
| data.createTime / completeTime | string | 任务提交时间 / 完成时间 |

## OpenAI 协议写法
同一个 task 也可用 `POST /v1/audio/generations` 调用（body 加 `task: "upsample_tags"`，model 写成 suno-v6 形式），用 `GET /v1/audio/generations/{id}` 轮询，非音频类结果在 `result` 字段。

```bash
curl -X POST https://api.novapi.ai/v1/audio/generations \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "suno",
  "task": "upsample_tags",
  "prompt": "lofi chill beats"
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
