V6 (default), V6_WILD, V6_MINIV5_5, V5, V4_5PLUS, V4_5ALL, V4_5, V4customMode, instrumental, modelcustomMode: true):title is optional, maximum 80 characters. Only available in this modeprompt is optional; when provided, it is used strictly as lyrics and sung in the generated track. If lyrics is also provided, lyrics takes prioritystyle, lyrics, or negativeTags must be provided; generation is rejected if all are emptyinstrumental: true: generate instrumental music (no vocals)instrumental: false: use lyrics as lyrics (fall back to prompt if lyrics is not provided)duration, negativeTags, vocalGender, styleWeight, weirdnessConstraint, audioWeight, variety, personaId, personaModelprompt 3000 characters, style 200 charactersprompt 5000 characters, style 1000 charactersstyle 1000 characters; lyrics 5000 characters; negativeTags 1000 characterstitle length limit: 80 characters (all models)customMode: false):prompt is optional; it serves as the core idea, and lyrics are generated automatically (not a strict match), maximum 3000 characterslyrics can be used as a lyrics attachment together with promptimageUrls, videoUrls, audioUrls, midiUrls, style, or lyrics must be provided; generation is rejected if all are emptyimageUrls, videoUrls, audioUrls, and midiUrls are only valid in this modetitle, negativeTags, duration, vocalGender, styleWeight, weirdnessConstraint, audioWeight, variety, personaId, personaModelstyle + lyrics + imageUrls + videoUrls + audioUrls + midiUrlsprompt as lyrics; in non-custom mode, can be used as a lyrics attachment together with prompt.customMode is false. Up to 5 images, each no more than 10 MB. Supported formats: jpeg, png, webp, bmp.customMode is false. Up to 1 file, each no more than 100 MB, duration no more than 241 seconds. Supported formats: mp4, mov, webm.customMode is false. Duration must be between 6 seconds and 30 minutes; each file no more than 500 MB.customMode is false. Currently up to 1 file, each no more than 256 KB, and must start with the standard MThd\x00\x00\x00\x06 header. Supported formats: mid, midi. Only supported by V6_WILD; other models will be switched to V6_WILD.customMode is true. Maximum 80 characters. Displayed in player interfaces and filenames.customMode is true. For V6, V6_MINI, and V6_WILD: maximum 1000 characters.m for male, f for female. Only available when customMode is true. In practice, this only increases probability and cannot guarantee the instruction is followed.customMode is true.customMode is true.customMode is true. Not supported when there are no vocals.customMode is true. 0 off (exact style), 1 normal (default, balanced), 2 high (distinct styles), 3 extra (bold exploration), 4 max (maximum variation).customMode is true. To generate a Persona ID, see Generate Persona.style_persona or voice_persona. Only available when customMode is true. Only available for V5 (Discontinued), V5_5 (Discontinued), V6, V6_MINI, and V6_WILD.customMode is true, and only valid when the model is V5_5, V6, V6_MINI, or V6_WILD.{
"customMode": false,
"instrumental": false,
"prompt": "A chill lo-fi beat with soft vocals",
"lyrics": "[Verse] Night city lights shining bright",
"style": "lo-fi, chill",
"imageUrls": [
"https://example.com/reference-image.png"
],
"videoUrls": [
"https://example.com/reference-video.mp4"
],
"audioUrls": [
"https://example.com/reference-audio.mp3"
],
"midiUrls": [
"https://example.com/midi/reference.mid"
],
"model": "V6",
"callBackUrl": "https://example.com/callback"
}customMode: false for simpler usagetext (text generation), first (first track complete), complete (all tracks complete)curl --location 'https://apibox.erweima.ai/api/v1/generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A calm and relaxing piano track with soft melodies",
"lyrics": "[Verse] Night city lights shining bright",
"imageUrls": [
"https://example.com/reference-image.png"
],
"videoUrls": [
"https://example.com/reference-video.mp4"
],
"audioUrls": [
"https://example.com/reference-audio.mp3"
],
"midiUrls": [
"https://example.com/midi/reference.mid"
],
"style": "Classical",
"title": "Peaceful Piano Meditation",
"customMode": true,
"instrumental": true,
"model": "V6",
"callBackUrl": "https://api.example.com/callback",
"negativeTags": "Heavy Metal, Upbeat Drums",
"vocalGender": "m",
"styleWeight": 0.65,
"weirdnessConstraint": 0.65,
"audioWeight": 0.65,
"variety": 1,
"personaId": "persona_123",
"personaModel": "style_persona",
"duration": 20
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}