Back to Suno Model
Extend Music
Extend existing music tracks by adding new content to the end. Choose between inheriting original parameters or using custom settings.
Endpoint Overview
POST
/api/v1/audio/music/extendTwo Extension Modes:
- Inherit Mode (
custom_mode: false): Automatically inherits ALL parameters from the original task (prompt, style, title, model, etc.) - no additional parameters needed for seamless continuation. - Custom Mode (
custom_mode: true): Override original parameters with new prompt, style, title, and starting time for creative transformation.
Credits: 5–12 credits per generation (depending on model tier).
Parameters
Required Parameters
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
origin_task_id | string | Erforderlich | The task_id from your original music generation request. |
extend_audio_index | number | Erforderlich | Which audio to extend: 0 for the first audio variation, 1 for the second audio. |
Optional Parameters
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
custom_mode | boolean | Optional | Extension mode. Set to false to inherit parameters, true to use custom parameters. (Standard: false) |
callback_url | string | Optional | Optional webhook URL to receive real-time results via POST. |
Custom Mode Parameters
Use these when custom_mode is set to true.
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
prompt | string | Erforderlich | New lyrics or description for the extension. Required if custom_mode is true. |
style | string | Optional | Musical style/genre for the extension. |
title | string | Optional | Title for the extended track. |
extensionStartTime | number | Optional | Start time in seconds for the extension. Must be > 0 and < original audio duration. |
tags | string | Optional | Additional tags for the extension. |
Example Request
cURL (Inherit Mode)
bash
curl -X POST "https://apiin.one/api/v1/audio/music/extend" \
-H "Authorization: Bearer aio_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"origin_task_id": "gen20e094aeaadfe494ea33a5c80ee596083bksv",
"extend_audio_index": 0,
"custom_mode": false
}'cURL (Custom Mode)
bash
curl -X POST "https://apiin.one/api/v1/audio/music/extend" \
-H "Authorization: Bearer aio_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"origin_task_id": "gen20e094aeaadfe494ea33a5c80ee596083bksv",
"extend_audio_index": 0,
"custom_mode": true,
"prompt": "Change the music style to be calm and lyrical.",
"style": "lyrical",
"title": "lyrical song",
"extensionStartTime": 150
}'Example Response
Returns an extension task ID. Poll the Feed endpoint to get the final audio URLs.
json
{
"task_id": "ext2e31202d4f629447fa75f603ae2470565bksv",
"status": "pending",
"model": "suno-v4-5",
"created_at": "2026-02-24T12:00:00Z"
}Error Handling
| Status Code | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
400 | invalid_request | Optional | Missing extend_audio_index, origin_task_id is invalid, or original audio is not completed yet. |
401 | authentication_error | Optional | Invalid or missing API key. |
402 | insufficient_credits | Optional | Insufficient balance. |