Skip to content
此页面尚未提供您所用语言的版本,因此当前显示为英文。

Upload and Extend Audio

Upload a public audio URL and extend the song from a specified point with Suno V6

全部文档
POST/v1/music/generations/uploadExtend

Note

This endpoint extends a public audio URL directly, so you do not need to call uploadTask first. It always uses custom mode; do not send custom, instrumental, or gpt_description.

请求示例

curl --request POST \
  --url https://api.apisea.ai/v1/music/generations/uploadExtend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "suno",
    "version": "v6-mini",
    "audio_url": "https://example.com/reference.wav",
    "continue_at": 30,
    "prompt": "[Outro]\nthe next journey, let's walk together",
    "tags": "acoustic pop",
    "duration_s": 60,
    "max_mode": true,
    "audio_format": "mp3"
  }'

Authorizations

Authorizationstringrequired

Bearer Token. Obtain API Key from the API Key Management page.

Body

modelstringdefault: suno

Always use suno.

audio_urlstringrequired

A publicly accessible direct HTTP(S) audio URL. Keep the source audio under 8 minutes. Local paths and blob: URLs are not supported.

continue_atnumberrequired

Extension start time. Must be at least 1 second and strictly less than the source audio's actual duration.

versionstringdefault: v6

Public version: v6 / v6-wild / v6-mini. Defaults to v6; omit this field when using custom_model_id.

custom_model_idstring

The full UUID returned by the model-creation task. Mutually exclusive with version and persona_id.

promptstring

Lyrics for the extension, up to 5,000 characters. If omitted, the extension is treated as instrumental.

tagsstring

Style description, up to 1,000 characters.

titlestring

Title, up to 80 characters.

negative_tagsstring

Styles to exclude.

style_weightnumber

Style weight, from 0 to 1.

weirdnessnumber

Creativity weight, from 0 to 1.

audio_weightnumber

Audio weight, range 0–1.

auto_lyricsboolean

Whether to create a second version of the input lyrics.

vocal_genderstring

Gender of voice: Male or Female.

persona_idstring

Persona ID, mutually exclusive with custom_model_id.

duration_sinteger

Target generation duration, from 10 to 360 seconds. The actual duration is determined by the task result.

varietystring

Style variation: off / normal / high / extra / max.

max_modebooleandefault: false

Enables Max mode and is billed at twice the standard price.

audio_format string Output format: mp3 / m4a / wav..

Response

codeinteger

Response Status Codes.

dataarray

Submission result. Read from data[0].task_id and poll the task query interface.

响应

{
  "code": 200,
  "data": [
    {"status": "submitted", "task_id": "task_01M24YMN4EV04M84R5QYM77R1E"}
  ]
}

发现文档中的问题?请发送邮件至 support@apisea.ai。