# Generate Lyrics

**What**：Generate lyrics text only (no song).

**When**：Use for lyric ideas or to write words before music.

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

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| task | string | Yes | Fixed value: lyrics |
| prompt | string | Yes | Lyric theme description |

## 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":"lyrics", "prompt":"A happy song about a girl and a boy." }'
# -> { "code":200, "data":"<taskId>" }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "ff501471da4649848314f29a5da3bb1e",
    "taskType": "lyrics",
    "status": "succeeded",
    "errorMsg": "",
    "param": {
      "task": "lyrics",
      "prompt": "A happy song about a girl and a boy."
    },
    "result": [
      {
        "tags": ["upbeat, pop, tropical, male vocals", "happy"],
        "text": "[Verse] Summer kisses Strawberry limeade … （完整歌词已省略）",
        "title": "Summer Kisses",
        "status": "complete",
        "error_message": ""
      },
      {
        "tags": ["pop, fun, male vocals", "happy"],
        "text": "[Verse] Baby blue skies I see you and I … （完整歌词已省略）",
        "title": "True",
        "status": "complete",
        "error_message": ""
      }
    ],
    "createTime": "2026-07-08 17:14:49",
    "completeTime": "2026-07-08 17:14:59"
  }
}
```

## 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 "lyrics" |
| data.status | string | Status: pending / succeeded / failed |
| data.param | object | Echo of the request params you submitted |
| data.result | array | ⚠ An array, but each item is a lyrics object (no audio/clip); usually 2 candidates |
| data.result[].title | string | AI-generated song title |
| data.result[].text | string | Lyrics body (with [Verse]/[Chorus] section tags) |
| data.result[].tags | string[] | Suggested style tags (can be fed to create’s tags) |
| data.result[].status | string | Per-item status; "complete" = usable |
| data.result[].error_message | string | Per-item failure reason; empty on success |
| data.createTime / completeTime | string | Task submit time / completion time |

## OpenAI-style call
This task is also available via `POST /v1/audio/generations` (add `task: "lyrics"` 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": "lyrics",
  "prompt": "A happy song about a girl and a boy."
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
