# Generate lyrics

> 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**：Write lyrics from a one-line description.

**When**：Use it when you only want lyrics and no song yet. Fetch the result with “Get lyrics result”.

## Endpoints
- Submit task: POST `/api/cqt/suno/v1/generateLyricsTask`
- Query the result (with the returned taskId): GET `/api/cqt/suno/v1/getLyricsTask?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 |
| --- | --- | --- | --- |
| prompt | string | Yes | Lyrics description (topic and mood you want). |
| lyrics_model | string | — | Lyrics model; defaults to remi-v1 when omitted. |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/generateLyricsTask \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"a nostalgic song about the first snow"}'
# -> { "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. |
