Skip to main content

Extend Music

Extend or modify existing music by creating a continuation based on a source audio track.

Usage Guide

  • This endpoint allows you to extend existing music tracks
  • You can choose to use original parameters or set new custom parameters
  • Extended music will maintain style consistency with the source track

Parameter Details

  • With Custom Parameters (defaultParamFlag: true):
    • prompt, style, title and continueAt are required
    • Character limits vary by model:
      • V4: prompt 3000 characters, style 200 characters, title 80 characters
      • V4_5 & V4_5PLUS: prompt 5000 characters, style 1000 characters, title 100 characters
      • V4_5ALL: prompt 5000 characters, style 1000 characters, title 80 characters
      • V5: prompt 5000 characters, style 1000 characters, title 100 characters
  • With Original Parameters (defaultParamFlag: false):
    • Only audioId is required
    • Other parameters will be inherited from the source audio

Developer Notes

  • Generated files are retained for 14 days
  • Model version must match the source audio’s model version
  • Callback process follows the same pattern as the music generation endpoint

Optional parameters

  • vocalGender (string): Vocal gender preference. Use m for male, f for female.
  • styleWeight (number): Strength of adherence to style. Range 0–1, up to 2 decimals. Example: 0.65.
  • weirdnessConstraint (number): Controls creative deviation. Range 0–1, up to 2 decimals. Example: 0.65.
  • audioWeight (number): Balance weight for audio features. Range 0–1, up to 2 decimals. Example: 0.65.
  • personaId (string): Persona ID to apply to the generated music. Only available when Custom Mode is enabled. To create one, use Generate Persona.
Rate limits and quotas are enforced by Apikley and may differ from upstream providers.

OpenAPI

suno-api/suno-api.json post /api/v1/generate/extend

To find navigation and other pages in this documentation, fetch the llms.txt file at: https://docs.apikley.ru/llms.txt