# Custom Model

**What**：Train a dedicated style model from audio you provide.

**When**：Use to teach AI your unique style/voice (needs multiple training clips).

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

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| task | string | Yes | Fixed value: customModel |
| audioUrl | array(string) | Yes | Array of training audio URLs (>=6 downloadable links) |
| name | string | Yes | Custom model name |

## 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":"customModel", "audioUrl":["https://...1.mp3","https://...2.mp3","https://...3.mp3","https://...4.mp3","https://...5.mp3","https://...6.mp3"], "name":"My Style" }'
# -> { "code":200, "data":"<taskId>" }
```

## OpenAI-style call
This task is also available via `POST /v1/audio/generations` (add `task: "customModel"` 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": "customModel",
  "audioUrl": [
    "https://...1.mp3",
    "https://...2.mp3",
    "https://...3.mp3",
    "https://...4.mp3",
    "https://...5.mp3",
    "https://...6.mp3"
  ],
  "name": "My Style"
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
