Parameter Usage Guide
- For model V5: style (max 1000 chars), title (max 100 chars), prompt (max 5000 chars)
- For models V4_5PLUS and V4_5: style (max 1000 chars), title (max 100 chars), prompt (max 5000 chars)
- For models V3_5 and V4: style (max 200 chars), title (max 80 chars), prompt (max 3000 chars)
- When defaultParamFlag is true (Custom Parameters):
- If instrumental is true: style, title, and uploadUrl are required
- If instrumental is false: style, prompt, title, and uploadUrl are required
- Character limits vary by model version (see note above)
- continueAt: the time point in seconds from which to start extending (must be greater than 0 and less than the uploaded audio duration)
- uploadUrl: specifies the upload location for audio files; ensure uploaded audio does not exceed 8 minutes.
- When defaultParamFlag is false (Default Parameters):
- Regardless of instrumental setting, only uploadUrl and prompt are required
- Other parameters will use the original audio’s parameters
Developer Notes
- Generated files will be retained for 14 days
- Model version must be consistent with the source music
- This feature is ideal for creating longer works by extending existing music
- uploadUrl parameter specifies the upload location for audio files; provide a valid URL.
Optional parameters
vocalGender
(string): Vocal gender preference. Usem
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
.
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Body
The URL for uploading audio files, required regardless of whether defaultParamFlag is true or false. Ensure the uploaded audio does not exceed 2 minutes in length.
"https://storage.example.com/upload"
Enable custom mode for advanced audio generation settings.
- Set to
true
to use custom parameter mode (requiresstyle
,title
, anduploadUrl
; ifinstrumental
isfalse
,uploadUrl
andprompt
are required). Ifinstrumental
isfalse
, the prompt will be strictly used as lyrics. - Set to
false
to use non-custom mode (onlyuploadUrl
required). Lyrics will be automatically generated based on the prompt.
true
Determines whether the audio is instrumental (without lyrics).
- In custom parameter mode (
defaultParamFlag: true
):- If
true
: onlystyle
,title
, anduploadUrl
are required. - If
false
:style
,title
,prompt
(prompt
will be used as exact lyrics), anduploadUrl
are required.
- If
- In non-custom parameter mode (
defaultParamFlag: false
): does not affect required fields (onlyuploadUrl
needed). Iffalse
, lyrics will be automatically generated.
true
The time point (in seconds) from which to start extending the music.
- Required when
defaultParamFlag
istrue
. - Value range: greater than 0 and less than the total duration of the uploaded audio.
- Specifies the position in the original track where the extension should begin.
60
The AI model version to use for generation.
- Required for all requests.
- Available options:
V5
: Superior musical expression, faster generation.V4_5PLUS
: V4.5+ is richer sound, new waysto create, max 8 min.V4_5
: V4.5 is smarter prompts, fastergenerations, max 8 min.V4
: V4 is improved vocal quality,max 4 min.V3_5
: V3.5 is better song structure,max 4 min.
V3_5
, V4
, V4_5
, V4_5PLUS
, V5
"V3_5"
The URL to receive audio extension task completion updates. Required for all audio extension requests.
- System will POST task status and results to this URL when audio extension completes
- Callback includes extended audio files that seamlessly continue the uploaded track's style
- Your callback endpoint should accept POST requests with JSON payload containing extended track results and audio URLs
- For detailed callback format and implementation guide, see Audio Extension Callbacks
- Alternatively, use the Get Music Details endpoint to poll task status
"https://api.example.com/callback"
Description of how the music should be extended. Required when defaultParamFlag is true. Character limits by model:
- V5: Maximum 5000 characters
- V4_5PLUS & V4_5: Maximum 5000 characters
- V3_5 & V4: Maximum 3000 characters
"Extend the music with more relaxing notes"
Music style, e.g., Jazz, Classical, Electronic. Character limits by model:
- V5: Maximum 1000 characters
- V4_5PLUS & V4_5: Maximum 1000 characters
- V3_5 & V4: Maximum 200 characters
"Classical"
Music title. Character limits by model:
- V5: Maximum 100 characters
- V4_5PLUS & V4_5: Maximum 100 characters
- V3_5 & V4: Maximum 80 characters
"Peaceful Piano Extended"
Music styles to exclude from generation
"Relaxing Piano"
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 <= 1
Must be a multiple of 0.01
0.65
Controls experimental/creative deviation. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1
Must be a multiple of 0.01
0.65
Balance weight for audio features vs. other factors. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1
Must be a multiple of 0.01
0.65
Response
Request successful
Response status code
- 200: Success - Request has been processed successfully
- 401: Unauthorized - Authentication credentials are missing or invalid
- 402: Insufficient Credits - Account does not have enough credits to perform the operation
- 404: Not Found - The requested resource or endpoint does not exist
- 409: Conflict - WAV record already exists
- 422: Validation Error - The request parameters failed validation checks
- 429: Rate Limited - Request limit has been exceeded for this resource
- 451: Unauthorized - Failed to fetch the image. Kindly verify any access limits set by you or your service provider.
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
200
, 401
, 402
, 404
, 409
, 422
, 429
, 451
, 455
, 500
Error message when code != 200
"success"