v1
latestOpenAPI 3.0.02026-07-26355125.0 KBMusic Generation
Generate Mashup
Create a mashup by blending two audio files together to generate new music.
Usage Guide
- Use this endpoint to create mashups by combining two audio files
- Requires exactly 2 audio file URLs in the uploadUrlList array
- Supports both custom and non-custom modes for different generation styles
- Generated mashups can be used to create Personas for subsequent music generation
post/api/v1/generate/mashup
Request body
Example request
{
"uploadUrlList": [
"https://storage.example.com/audio1.mp3",
"https://storage.example.com/audio2.mp3"
],
"customMode": true,
"prompt": "A calm and relaxing piano track with soft melodies",
"style": "Classical",
"title": "Peaceful Piano Meditation",
"instrumental": true,
"model": "V4_5ALL",
"vocalGender": "m",
"styleWeight": 0.65,
"weirdnessConstraint": 0.65,
"audioWeight": 0.65,
"duration": 20,
"callBackUrl": "https://api.example.com/callback"
}Response
Request successful
Example response
{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}