Generate music with or without lyrics using AI models.
customMode: true):
instrumental: true: style and title are requiredinstrumental: false: style, prompt, and title are requiredprompt 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 is required regardless of instrumental settingprompt length limit: 500 characterscustomMode: false for simpler usagetext (text generation), first (first track complete), complete (all tracks complete)vocalGender (string): Vocal gender preference. Use m for male, f for female. Note: This parameter is only effective 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. 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.personaId (string): Persona ID to apply to the generated music. Use this to apply a specific persona style to your music generation. Only available when Custom Mode is enabled. To generate a persona ID, visit the Generate Persona endpoint.All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
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"
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
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
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://api.example.com/callback"
Music style specification for the generated audio.
customMode: true). Defines the genre, mood, or artistic direction."Classical"
Title for the generated music track.
customMode: true)."Peaceful Piano Meditation"
Music styles or traits to exclude from the generated audio. Optional. Use to avoid specific styles.
"Heavy Metal, Upbeat Drums"
Vocal gender preference for the singing voice. Optional. Use 'm' for male and 'f' for female. Note: This parameter is only effective when customMode is true. 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 <= 1Must be a multiple of 0.010.65
Controls experimental/creative deviation. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Balance weight for audio features vs. other factors. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Only available when Custom Mode (customMode: true) is enabled. Persona ID to apply to the generated music. Optional. Use this to apply a specific persona style to your music generation.
To generate a persona ID, use the Generate Persona endpoint to create a personalized music Persona based on generated music.
"persona_123"
Request successful
Response Status Codes
200, 401, 402, 404, 409, 422, 429, 451, 455, 500 Error message when code != 200
"success"