KIE.AI
Old Model
  • All Model
  • Old Model
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Old Model
  • All Model
  • Old Model
Old Model
  • All Model
  • Old Model
Suno API
4o Image APIVeo3.1 APIRunway APIFlux Kontext API
Suno API
4o Image APIVeo3.1 APIRunway APIFlux Kontext API
  1. Music Generation
  • Suno API Quickstart
  • Music Generation
    • Music Cover Generation Callbacks
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Audio Upload and Cover Callbacks
    • Audio Upload and Extension Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental to Music
      POST
    • Add Vocals to Music
      POST
    • Get Music Task Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Get Cover Generation Details
      GET
    • Replace Music Section
      POST
    • Generate Persona
      POST
    • Generate Mashup Music
      POST
    • Recovery Audio
      POST
  • Lyrics Generation
    • Lyrics Generation Callbacks
    • Generate Lyrics
      POST
    • Get Lyrics Task Details
      GET
  • WAV Conversion
    • Convert to WAV Callbacks
    • Convert to WAV Format
    • Get WAV Conversion Details
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal & Instrument Stem Separation
    • Get Vocal Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Sounds Generation
    • Generate sounds
  • voice
    • Suno Voice Generation Callback
    • Suno Voice Validation Phrase Callback
    • Suno Voice Generate Verification Phrase API
    • Suno Voice Get Verification Phrase API
    • Suno Voice Create Custom Voice API
    • Suno Voice Get Custom Voice Records
    • Suno Voice Regenerate Verification Phrase
    • Suno Voice Check Availability API
  1. Music Generation

Generate Mashup Music

POST
/api/v1/generate/mashup
Create remix music using AI models by combining multiple audio tracks.

Usage Guide#

This interface creates remix music from uploaded audio files.
It combines elements from multiple tracks into a coherent new piece.
uploadUrlList must contain 2 audio URLs. Upstream uses only the first 2.

Parameter Details#

Always required: uploadUrlList, callBackUrl, model, style, title
lyrics is optional and takes priority over prompt as lyrics. If lyrics is omitted, prompt is used as lyrics when provided
Character limits by model:
Modellyrics / promptstyletitle
V4 (Discontinued)300020080
V4_5 / V4_5PLUS (Discontinued)5000100080
V4_5ALL (Discontinued)5000100080
V5 / V5_5 (Discontinued)5000100080
V6 / V6_WILD / V6_MINI5000100080

Developer Notes#

Generated files will be retained for 14 days.
The callback process has three stages: text (text generation), first (first track complete), complete (all complete).
Uploaded audio files must have publicly accessible URLs.
uploadUrlList must contain 2 audio file URLs. Upstream uses only the first 2.

Optional Parameters#

ParameterTypeDescription
lyricsstringLyrics for the mashup. Optional. V6 maximum 5000 characters. Takes priority over prompt as lyrics.
promptstringUsed as lyrics only when lyrics is not provided. Optional. V6 maximum 5000 characters.
vocalGenderstringVocal gender preference. m for male, f for female. In practice, this parameter only increases the probability but does not guarantee adherence to the specified vocal gender.
styleWeightnumberStrength of adherence to style. Range is 0–1, with two decimal places. Example: 0.61.
weirdnessConstraintnumberCreativity/discreteness level. Range is 0–1, with two decimal places. Example: 0.72.
audioWeightnumberWeight of audio elements. Range is 0–1, with two decimal places. Example: 0.65.
varietyintegerDiversity of generated results. Integer from 0–4, default 1. 0 off, 1 normal, 2 high, 3 extra, 4 max.
personaIdstringPersona ID or Voice ID to apply to the generated music.
personaModelstringPersona model. style_persona or voice_persona. Default: style_persona.
durationnumberAudio duration in seconds. Range 10–360, default 20. Valid when model is V5_5, V6, V6_MINI, or V6_WILD.

Callbacks

audioGenerated

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Request successful
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.kie.ai/api/v1/generate/mashup' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "uploadUrlList": [
    "https://example.com/audio1.mp3",
    "https://example.com/audio2.mp3"
  ],
  "model": "V4",
  "callBackUrl": "https://example.com/callback",
  "prompt": "A calm and relaxing piano track with soft melodies",
  "style": "Jazz",
  "title": "Relaxing Piano",
  "vocalGender": "m",
  "styleWeight": 0.61,
  "weirdnessConstraint": 0.72,
  "audioWeight": 0.65,
  "lyrics": "[Verse]\nKeep the melody flowing\nInto a gentle bridge\n[Chorus]\nLet the piano rise and fall",
  "variety": 1,
  "personaId": "persona_123",
  "personaModel": "style_persona",
  "duration": 20
}'
Response Response Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "5c79****be8e"
    }
}
Previous
Generate Persona
Next
Recovery Audio
Built with