Whisul’s AI music generation API turns plain-text prompts into original songs. You describe the music you want — a genre, a mood, or stems — and Whisul generates a full audio track along with cover art, BPM, duration, and tags. Whether you are a content creator looking for background music or an artist prototyping new ideas, Whisul gives you a simple two-endpoint API to generate music programmatically.Documentation Index
Fetch the complete documentation index at: https://docs.whisul.com/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Make your first API call and get a generated song URL in under 5 minutes.
Authentication
Learn how to obtain your API key and authenticate every request.
Submit a composition
POST a text prompt to
/generate to kick off an async music generation job.Poll for results
GET
/jobs/{job_id} to check job status and retrieve your audio URL.How it works
Whisul uses an asynchronous job model. When you submit a prompt, the API immediately returns ajob_id — generation runs in the background. You then poll the job status endpoint until the job completes, at which point the response includes everything you need to use the track.
What you get back
A completed job returns the following in theresult object:
song_url— a direct link to the generated audio fileimage_url— AI-generated cover art for the trackbpm— tempo of the generated songduration— length of the track in secondstitle— an auto-generated titletags— descriptive tags for the track
The two endpoints
| Endpoint | Purpose |
|---|---|
POST /generate | Submit a text prompt and receive a job_id |
GET /jobs/{job_id} | Check job status and retrieve the result when complete |
Who it’s for
Whisul is designed for:- Content creators who need royalty-free background music for videos, podcasts, or social content
- Artists and producers who want to quickly prototype musical ideas from text descriptions
- Developers building games, apps or platforms that require generated audio
Ready to generate your first track? Head to the quickstart to make your first API call.