# Generate from Inspiration

**What**：Generate new music matching an "inspiration playlist". First get a playlistId via playlist_create (the old playlist_clip_ids shortcut is deprecated).

**When**：Use playlist_create first to build a playlist from reference songs, then batch-produce same-style music.

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

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| task | string | Yes | Fixed value: inspiration |
| model | string | Yes | Model version (v6 recommended) |
| playlistId | string | Yes | Inspiration playlist ID (from playlist_create) |
| prompt | string | — | Optional extra style description |
| personaId | string | — | Vox Persona mode (optional): with artistClipId + personaStyle="vox" to sing with a voice persona |
| styleWeight | number(0~1) | — | Style weight; higher sticks closer to tags |
| audioWeight | number(0~1) | — | Original-audio influence weight (for audio-based tasks) |
| weirdnessConstraint | number(0~1) | — | Creativity / weirdness; higher is bolder |
| personaId | string | — | Voice persona ID (sing with a persona) |
| artistClipId | string | — | Reference clip ID for style |

## 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":"inspiration", "model":"v6", "playlistId":"119573ff-8e48-..." }'
# -> { "code":200, "data":"<taskId>" }
```

## OpenAI-style call
This task is also available via `POST /v1/audio/generations` (add `task: "inspiration"` 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-v6",
  "task": "inspiration",
  "playlistId": "119573ff-8e48-..."
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
