POST /generate endpoint accepts a text prompt describing the music you want and enqueues a generation job. Because music generation is asynchronous, the response does not include the finished song — it returns a job_id and a poll_url you use to check progress. When the job completes, the result contains a song_url, cover art, BPM, duration, and descriptive tags.
Base URL: https://whisul.com/api
Request
Authentication
Every request must include your API key as a Bearer token in theAuthorization header.
Request body
Send a JSON body with the following field:string
required
A plain-language description of the song you want to generate. Describe the genre, mood, instruments, tempo, or any other characteristics — for example,
"an upbeat trap beat with 808s and a dark synth melody".Example request
Response
202 Accepted
The request was accepted and the generation job is queued. The response body contains the job identifier and a polling URL.string
A human-readable confirmation that the task was received.
string
The unique identifier for this generation job. Store this value — you need it to poll for status and retrieve the result.
string
The relative path to the job status endpoint for this job. Append this to the base URL to construct the full polling URL:
https://whisul.com/api + poll_url.