Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Music Detail endpoint.
instrumental explicitly controls vocal output. persona_model accepts style_persona or voice_persona with persona_id only when default_param_flag: true on V5/V5_5.

Usage Guide

  • This endpoint extends an existing audio track from a specified point
  • You can customize the extension with new style, prompt, and title, or inherit from the original track
  • Use default_param_flag to control whether to use custom parameters or original track settings

Parameter Details

  • In Custom Mode ( default_param_flag: true ):
    • style, title, and continue_at are required
    • prompt is required for vocal extensions. When instrumental: true, prompt is not sent.
    • continue_at specifies the timestamp (in seconds) where extension begins
    • 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
      • V5_5: prompt 5000 characters, style 1000 characters, title 100 characters
  • In Simple Mode ( default_param_flag: false ):
    • Only audio_id is required; the source track settings are inherited

Developer Notes

  • Ensure you have a valid audio_id from a previously generated track before using this endpoint
  • The extension will seamlessly continue from the specified continue_at timestamp

Optional parameters

  • negative_tags (string): Music styles or characteristics to exclude from the extension.
  • vocal_gender (string): Vocal gender preference. Use m for male, f for female. Note: This parameter increases the probability but cannot guarantee adherence.
  • style_weight (number): Strength of adherence to style. Range 0-1, up to 2 decimals.
  • weirdness_constraint (number): Controls creative deviation. Range 0-1, up to 2 decimals.
  • audio_weight (number): Balance weight for audio features. Range 0-1, up to 2 decimals.
  • persona_id (string): Persona ID to apply to the extended music. Only available when default_param_flag: true with V5/V5_5. How to generate persona_id, visit generate-persona.
  • persona_model (string): style_persona or voice_persona. Requires persona_id, default_param_flag: true, and V5/V5_5.

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

Body

application/json
model
enum<string>
required

API model identifier.

Must be extend-music for this endpoint.

Available options:
extend-music
Example:

"extend-music"

input
object
required

Input parameters for music extension

callback_url
string<uri>

Webhook callback URL for result notifications.

Endpoint that receives task completion updates.

Example:

"https://your-domain.com/callback"

Response

200 - application/json

Task submitted successfully

code
integer
required

HTTP status code

Example:

200

data
object
required