# Create music (compatible form)

> 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**：Another field spelling of “Create music”, for callers used to the prompt / style / customMode / instrumental naming.

**When**：With customMode true, prompt is treated as lyrics; otherwise as the music description. Everything else is identical to “Create music”, and results come from sunoInfo.

## Endpoints
- Submit task: POST `/api/cqt/suno/v1/generate`
- Query the result (with the returned taskId): GET `/api/cqt/suno/v1/sunoInfo?taskId={taskId}`

> Credits use the separate key “generate:model”, independent of the pricing rule of “Create music”.
> 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 | — | Main prompt: lyrics when customMode is true, otherwise the music description. |
| style | string | — | Style tags (maps to tags of Create music), comma-separated English words recommended. |
| title | string | — | Song title. |
| customMode | boolean | — | Whether to use custom mode. Fill either this or custom_mode. |
| custom_mode | boolean | — | snake_case spelling of customMode. |
| instrumental | boolean | — | Whether to make it instrumental (maps to make_instrumental). |
| model | string | — | Model version, e.g. suno_v45 / suno_v45_lite / suno_v40; suno_v35 is automatically changed to suno_v45_lite. Fill either this or modelVersion; if both are set, model wins. Credits are looked up by "endpoint:model", and an unconfigured value returns "积分规则未配置或禁用", so in practice you must send it. |
| style_weight | number | — | How strongly to follow the style, range 0–1, two decimals, e.g. 0.65. |
| audio_weight | number | — | Audio-element weight, range 0–1, two decimals, e.g. 0.65. |
| weirdness_constraint | number | — | Creativity / weirdness, range 0–1, two decimals, e.g. 0.65. |
| vocal_gender | string | — | Vocal gender preference: m = male, f = female. |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/generate \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"a catchy upbeat pop song about summer","style":"pop, upbeat","title":"Summer Vibes","customMode":false,"instrumental":false,"model":"suno_v45"}'
# -> { "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. |
