# Extend 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 “Extend music”: the audioId / continueAt / defaultParamFlag naming.

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

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

> Credits use the separate key “generate/extend:model”, independent of the pricing rule of “Extend 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 |
| --- | --- | --- | --- |
| audioId | string | — | ID of the clip to extend. Fill either this or audio_id (audio_id wins). |
| audio_id | string | — | snake_case spelling of audioId. |
| continueAt | number | — | Second to start extending from. Fill either this or continue_at (continue_at wins). |
| continue_at | number | — | snake_case spelling of continueAt. |
| defaultParamFlag | boolean | — | Whether to use custom mode: with true, prompt is lyrics. Fill either this or default_param_flag. |
| default_param_flag | boolean | — | snake_case spelling of defaultParamFlag. |
| prompt | string | — | Main prompt: lyrics when defaultParamFlag 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. |
| model | string | Yes | 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. |
| negativeTags | string | — | Accepted but currently not forwarded to the upstream (same for negative_tags). |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/generate/extend \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"audioId":"<clipId>","continueAt":60,"defaultParamFlag":false,"prompt":"extend with a softer bridge","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. |
