docs.api.box
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. Generate Music
  • API.box Documentation
  • Quick Start
  • Generate Music
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Upload and Cover Audio Callbacks
    • Upload and Extend Audio Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental
      POST
    • Add Vocals
      POST
    • Get Music Generation Details
      GET
    • Recovery Audio
      POST
    • Get Recovery Audio Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Replace Music Section
      POST
    • Get Music Cover Details
      GET
    • Generate Persona
      POST
    • Generate Mashup
      POST
  • Suno Voice
    • Suno Voice Validation Phrase Callbacks
    • Suno Voice Generation Callbacks
    • Suno Voice Regenerate Phrase Callbacks
    • Suno Voice Generate Verification Phrase
      POST
    • Suno Voice Get Verification Phrase
      GET
    • Suno Voice Create Custom Voice
      POST
    • Suno Voice Get Custom Voice Record
      GET
    • Suno Voice Regenerate Verification Phrase
      POST
    • Suno Voice Check Availability
      POST
  • Lyrics Generation
    • Lyrics Generation Callbacks
    • Generate Lyrics
    • Get Lyrics Generation Details
  • Generate Sounds
    • Generate Sounds
  • WAV Conversion
    • WAV Format Conversion Callbacks
    • Convert to WAV Format
    • Get WAV Conversion Details
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal and Instrument Separation
    • Get Audio Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Generate Speech
    • Generate Speech
  1. Generate Music

Extend Music

POST
/api/v1/generate/extend
Extend or modify existing music tracks.

Model Versions#

Current models: V6 (default), V6_WILD, V6_MINI
Deprecated models: V5_5, V5, V4_5PLUS, V4_5ALL, V4_5, V4
Deprecated values remain available only for backward compatibility. New integrations should use a V6-series model.

Parameter Usage Guide#

This endpoint always uses custom parameters. Simple mode is not available.
Source audio (audioId) is enough to generate. lyrics, prompt, style, and title are optional.
model (string, required): V6, V6_WILD, V6_MINI. Deprecated: V4_5ALL, V4, V4_5, V4_5PLUS, V5, V5_5.
instrumental (boolean, optional) determines whether to extend the track as instrumental music and defaults to false.
If instrumental is false or omitted: use lyrics as the lyrics when provided; otherwise use prompt. Both are optional.
If instrumental is true: do not provide prompt, lyrics, or vocalGender
prompt is optional and is treated as lyrics. When lyrics is also provided, lyrics takes priority and prompt is not used as lyrics.
lyrics is optional. It takes priority over prompt as the lyrics. If lyrics is omitted, prompt is used as the lyrics.
continueAt: the time point in seconds from which to start extending (must be greater than 0 and less than the source audio duration). Required.
taskId is optional and can be provided to identify the original generation task
Character limits by model:
V4 (Deprecated): prompt max 3000, style max 200, title max 80
V4_5ALL (Deprecated): prompt max 5000, style max 1000, title max 80
V4_5, V4_5PLUS, V5, V5_5 (Deprecated): prompt max 5000, style max 1000, title max 100
V6, V6_WILD & V6_MINI: prompt and lyrics max 5000, style max 1000, title max 100

Optional parameters#

The following fields are optional controls available for this endpoint:
lyrics (string): Lyrics for the extension. Optional. Takes priority over prompt. If omitted, prompt is used as the lyrics. For V6, V6_WILD, and V6_MINI: maximum 5000 characters.
taskId (string): Unique identifier of the original music generation task that produced the source audio. Can be a taskId returned from Generate Music or a previous Extend Music request.
instrumental (boolean): Whether to extend the track as instrumental music. Defaults to false. When true, prompt, lyrics, and vocalGender must not be provided.
vocalGender (string): Preferred vocal gender. Allowed values: m (male), f (female). Must not be provided when instrumental is true.
styleWeight (number): Style adherence weight in range 0–1 (recommended two decimals)
weirdnessConstraint (number): Creativity/novelty constraint in range 0–1 (recommended two decimals)
audioWeight (number): Relative weight of audio consistency in range 0–1 (recommended two decimals)
variety (integer): Diversity of generated results. Integer from 0–4, default 1. 0 off, 1 normal (default), 2 high, 3 extra, 4 max.
personaId (string): Persona ID or Suno Voice voiceId to apply to the generated music. If you use a Voice-generated ID, set personaModel to voice_persona.
personaModel (string): Persona type. Use style_persona for Generate Persona IDs, or voice_persona for Suno Voice IDs.
Request Example
JSON body
{
  "instrumental": false,
  "audioId": "e231****-****-****-****-****8cadc7dc",
  "taskId": "5c79****be8e",
  "lyrics": "[Chorus] Brighter lights, we keep going on",
  "prompt": "[Verse] City hums under neon rain",
  "style": "Indie Pop",
  "title": "Evening Sky (Extended)",
  "continueAt": 60,
  "model": "V6",
  "callBackUrl": "https://example.com/callback",
  "vocalGender": "m",
  "styleWeight": 0.61,
  "weirdnessConstraint": 0.72,
  "audioWeight": 0.65,
  "variety": 1
}

Developer Notes#

1.
Generated files are retained for 15 days
2.
Model version must be consistent with the source music
3.
This feature is ideal for creating longer compositions by extending existing tracks

Callbacks

audioExtend

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Request successful
Bodyapplication/json

🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://apibox.erweima.ai/api/v1/generate/extend' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "instrumental": false,
    "audioId": "e231****-****-****-****-****8cadc7dc",
    "taskId": "5c79****be8e",
    "prompt": "[Verse] City hums under neon rain",
    "lyrics": "[Chorus] Brighter lights, we keep going on",
    "style": "Classical",
    "title": "Peaceful Piano Extended",
    "continueAt": 60,
    "personaId": "persona_123",
    "personaModel": "style_persona",
    "model": "V6",
    "negativeTags": "Relaxing Piano",
    "callBackUrl": "https://api.example.com/callback",
    "vocalGender": "m",
    "styleWeight": 0.65,
    "weirdnessConstraint": 0.65,
    "audioWeight": 0.65,
    "variety": 1
}'
Response Response Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "5c79****be8e"
    }
}
Previous
Generate Music
Next
Upload And Cover Audio
Built with