Text-to-Music
POST /api/v1/music/text2music
Generate complete musical compositions with vocals from text prompts and lyrics.
- Python
- Node.js
- cURL
Response:
MusicGenerationResponse with job object and message.
Instrumental Generation
POST /api/v1/music/prompt2instrumental
Create instrumental tracks without vocals from text prompts.
- Python
- Node.js
- cURL
Rap Generation
POST /api/v1/music/text2rap
Generate rap music with custom lyrics and beats.
- Python
- Node.js
- cURL
Vocals Generation
POST /api/v1/music/lyric2vocals
Generate vocal tracks from lyrics without full instrumental backing.
- Python
- cURL
Sample Generation
POST /api/v1/music/text2samples
Create audio loops, one-shots, and samples for music production.
- Python
- cURL
Note: Maximum duration for samples is 120 seconds.
Simple Mode
POST /api/v1/music/simple
The easiest way to generate music. Describe what you want in natural language and AudioMusic V2 automatically generates the caption, lyrics, BPM, key, time signature, and duration.
- Python
- Node.js
- cURL
How Simple Mode Works:
AudioMusic V2 uses Chain-of-Thought reasoning to automatically:
- Generate a detailed caption/tags from your natural language query
- Write lyrics (unless instrumental)
- Determine optimal BPM, musical key, and time signature
- Estimate appropriate duration
Response Format
All generation endpoints return the same response structure:GET /api/v1/music/jobs/{id}/status):
