Create mashup music by combining multiple audio tracks using AI models.
uploadUrlList is required and must contain exactly 2 audio file URLs
customMode: true):
prompt 3000 characters, style 200 charactersprompt 5000 characters, style 1000 charactersprompt 5000 characters, style 1000 charactersprompt 5000 characters, style 1000 characterstitle length limit: 80 characters (all models)customMode: false):
prompt length limit: 500 charactersinstrumental: whether to generate instrumental musiccustomMode: false for simpler usagetext (text generation), first (first track complete), complete (all tracks complete)uploadUrlList must contain exactly 2 audio file URLs for mashup generationvocalGender (string): Vocal gender preference. Use m for male, f for female. Note: This parameter only takes effect when customMode is true. Based on practice, this parameter can only increase the probability but cannot guarantee adherence to male/female voice instructions.styleWeight (number): Strength of adherence to style. Note: This parameter only takes effect when customMode is true. Range 0–1, up to 2 decimals. Example: 0.61.weirdnessConstraint (number): Controls creative deviation. Note: This parameter only takes effect when customMode is true. Range 0–1, up to 2 decimals. Example: 0.72.audioWeight (number): Balance weight for audio features. Note: This parameter only takes effect when customMode is true. Range 0–1, up to 2 decimals. Example: 0.65.All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
Array of audio file URLs to mashup. Must contain exactly 2 URLs. Each URL must be publicly accessible.
2 elements[
"https://example.com/audio1.mp3",
"https://example.com/audio2.mp3"
]Determines if advanced parameter customization is enabled.
true: Allows detailed control with specific requirements for style and title fields.false: Simplified mode where only prompt is required and other parameters are ignored.true
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 generation task completion updates. Required for all music generation requests.
text (text generation), first (first track complete), complete (all tracks complete)text and first stages and return complete directly"https://example.com/callback"
A description of the desired audio content.
customMode: true): Required if instrumental is false. The prompt will be strictly used as the lyrics and sung in the generated track. Character limits by model:
customMode: false): Always required. The prompt serves as the core idea, and lyrics will be automatically generated based on it (not strictly matching the input). Maximum 500 characters."A calm and relaxing piano track with soft melodies"
Music style specification for the generated audio.
customMode: true). Defines the genre, mood, or artistic direction."Jazz"
Title for the generated music track.
customMode: true)."Relaxing Piano"
Determines if the audio should be instrumental (no lyrics).
customMode: true):
true: Only style and title are required.false: style, title, and prompt are required (with prompt used as the exact lyrics).customMode: false): No impact on required fields (prompt only).true
Vocal gender preference for the singing voice.
customMode: true). 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.
customMode: true). Optional. Range 0–1, up to 2 decimal places.0 <= x <= 1Must be a multiple of 0.010.61
Controls experimental/creative deviation.
customMode: true). Optional. Range 0–1, up to 2 decimal places.0 <= x <= 1Must be a multiple of 0.010.72
Balance weight for audio features vs. other factors.
customMode: true). Optional. Range 0–1, up to 2 decimal places.0 <= x <= 1Must be a multiple of 0.010.65
Request successful
Response Status Codes
200, 401, 402, 404, 409, 422, 429, 451, 455, 500 Error message when code != 200
"success"