# Merge Two Lyrics

**What**：Merge two lyric texts into new lyrics — often a pre-step for mashup. Takes lyric text, not clip IDs.

**When**：Use before mashing up two songs, to first blend their lyrics.

## Endpoints
- POST `/api/cqt/generator/suno` (task: `mashupLyrics`)
- GET `/api/cqt/info/suno?id={taskId}`

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| task | string | Yes | Fixed value: mashupLyrics |
| lyricsA | string | Yes | First lyrics text |
| lyricsB | string | Yes | Second lyrics text |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/generator/suno \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "task":"mashupLyrics", "lyricsA":"[Verse] ...", "lyricsB":"[Verse] ..." }'
# -> { "code":200, "data":"<taskId>" }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "798210cab61c464e8863780463ecb60a",
    "taskType": "mashupLyrics",
    "status": "succeeded",
    "errorMsg": "",
    "param": {
      "task": "mashupLyrics",
      "lyricsA": "[Verse]\n夜空中最亮的星\n能否听清...",
      "lyricsB": "[Verse]\n海阔天空 在勇敢以后..."
    },
    "result": {
      "text": "[singer A]\n夜空中最亮的星\n能否听清...\n\n[transition]\n\n[singer B]\n海阔天空 在勇敢以后...",
      "title": "Lyrics Mashup"
    },
    "createTime": "2026-07-09 11:31:42",
    "completeTime": "2026-07-09 11:31:48"
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| code | number | Status code; 200 = success |
| msg | string | Message |
| data.id | string | Task ID (the taskId returned on submit) |
| data.taskType | string | Task type; always "mashupLyrics" |
| data.status | string | Status: pending / succeeded / failed |
| data.param | object | Echo of the lyricsA / lyricsB you submitted |
| data.result | object | ⚠ An object { text, title } (merged lyrics only; no audio/clip) |
| data.result.text | string | Merged lyrics, tagged with [singer A]/[transition]/[singer B] sections |
| data.result.title | string | AI-generated title (e.g. "Lyrics Mashup") |
| data.createTime / completeTime | string | Task submit time / completion time |

## OpenAI-style call
This task is also available via `POST /v1/audio/generations` (add `task: "mashupLyrics"` to the body, write model as suno-v6); poll `GET /v1/audio/generations/{id}`, non-audio results are in `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": "mashupLyrics",
  "lyricsA": "[Verse] ...",
  "lyricsB": "[Verse] ..."
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
