Generate Original Music from Text Descriptions
The ModelsLab AI Music API generates original music compositions from natural language descriptions. Describe the genre, mood, tempo, instrumentation, and duration — the API returns an audio file in about 15 seconds (the median in October 2026). Generated tracks are original compositions, not samples or loops, and ModelsLab’s terms of service let you use them commercially.
The API supports text-to-music generation for full tracks and text-to-SFX for sound effects. Both endpoints accept detailed text prompts and return downloadable audio files in WAV, MP3 or FLAC.
- Text-to-music: generate full compositions from natural language prompts
- Text-to-SFX: create custom sound effects from text descriptions
- Multiple genres — electronic, classical, ambient, hip-hop, jazz, cinematic, rock
- Parameters: prompt, duration (30–480 seconds), output_format, bitrate, and init_audio to follow a melody — write BPM, key and instruments into the prompt
- Royalty-free output — commercial use included, no licensing required
- Audio output in WAV (default), MP3 or FLAC






















