Extend or modify existing music by creating a continuation based on a source audio track.
defaultParamFlag: true):
prompt, style, title and continueAt are requiredprompt 3000 characters, style 200 characters, title 80 charactersprompt 5000 characters, style 1000 characters, title 100 charactersprompt 5000 characters, style 1000 characters, title 80 charactersprompt 5000 characters, style 1000 characters, title 100 charactersdefaultParamFlag: false):
audioId is requiredvocalGender (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.All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
Controls parameter source for extension.
true: Use custom parameters specified in this request. Requires continueAt, prompt, style, and title.false: Use original audio parameters. Only audioId is required, other parameters are inherited.true
Unique identifier of the audio track to extend. Required for all extension requests.
"e231****-****-****-****-****8cadc7dc"
Description of the desired audio extension content.
defaultParamFlag is true."Extend the music with more relaxing notes and a gentle bridge section"
The AI model version to use for generation.
V5: Superior musical expression, faster generation.V4_5PLUS: V4.5+ delivers richer sound, new ways to create, max 8 min.V4_5: V4.5 enables smarter prompts, faster generations, max 8 min.V4_5ALL: V4.5ALL enables smarter prompts, faster generations, max 8 min.V4: V4 improves vocal quality, max 4 min.V4, V4_5, V4_5PLUS, V4_5ALL, V5 "V4"
The URL to receive music extension task completion updates. Required for all music extension requests.
text (text generation), first (first track complete), complete (all tracks complete)"https://api.example.com/callback"
Music style specification for the extended audio.
defaultParamFlag is true."Classical"
Title for the extended music track.
defaultParamFlag is true."Peaceful Piano Extended"
The time point (in seconds) from which to start extending the music.
defaultParamFlag is true.60
Music styles or traits to exclude from the extended audio. Optional. Use to avoid specific undesired characteristics.
"Heavy Metal, Upbeat Drums"
Vocal gender preference for the singing voice. Optional. Use 'm' for male and 'f' for female. Based on practice, this parameter can only increase the probability but cannot guarantee adherence to male/female voice instructions.
m, f "m"
Strength of adherence to the specified style. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Controls experimental/creative deviation. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Balance weight for audio features vs. other factors. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Only available when Custom Mode (customMode: true) is enabled. Persona ID to apply to the generated music. Optional. Use this to apply a specific persona style to your music generation.
To generate a persona ID, use the endpoint to create a personalized music Persona based on generated music.
"persona_123"
Request successful
Response status code
200, 401, 402, 404, 409, 422, 429, 451, 455, 500 Error message when code != 200
"success"