Skip to main content

Text-to-Music

POST /api/v1/music/text2music

Generate complete musical compositions with vocals from text prompts and lyrics.
Request Parameters: Response: MusicGenerationResponse with job object and message.

Instrumental Generation

POST /api/v1/music/prompt2instrumental

Create instrumental tracks without vocals from text prompts.
Request Parameters:

Rap Generation

POST /api/v1/music/text2rap

Generate rap music with custom lyrics and beats.
Request Parameters: Same as Text-to-Music. Lyrics are recommended for best results.

Vocals Generation

POST /api/v1/music/lyric2vocals

Generate vocal tracks from lyrics without full instrumental backing.

Sample Generation

POST /api/v1/music/text2samples

Create audio loops, one-shots, and samples for music production.
Additional Parameters: 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.
Request Parameters: How Simple Mode Works: AudioMusic V2 uses Chain-of-Thought reasoning to automatically:
  1. Generate a detailed caption/tags from your natural language query
  2. Write lyrics (unless instrumental)
  3. Determine optimal BPM, musical key, and time signature
  4. Estimate appropriate duration
This makes Simple Mode ideal for non-musicians who want to quickly generate high-quality music.

Response Format

All generation endpoints return the same response structure:
Completed Job (poll GET /api/v1/music/jobs/{id}/status):