This guide walks you through the full Whisul workflow: signing up, submitting a text prompt to generate a song, polling for the result, and accessing your audio file and cover art. By the end, you will have made two API calls and received a workingDocumentation Index
Fetch the complete documentation index at: https://docs.whisul.com/llms.txt
Use this file to discover all available pages before exploring further.
song_url.
Sign up and get your API key
Go to whisul.com and create an account. Once you are logged in, open your dashboard and copy your API key.You will include this key in every request as a Bearer token. See Authentication for details on how to use it securely.
Submit a composition request
Send a A successful request returns HTTP Save the
POST request to /generate with your text prompt in the request body. The API accepts the prompt and immediately returns a job_id — music generation happens asynchronously in the background.202 and a response like this:job_id — you will use it in the next step to check whether your song is ready.The
poll_url field contains the exact path you need to call in the next step.Poll for your result
Send a While the job is still processing, the response looks like this:Once generation finishes,
GET request to /jobs/{job_id} using the job_id from the previous step. Repeat this request every few seconds until status changes from "running" to "completed".status becomes "completed" and the result object is populated:If
status is "failed", check the error field for details. You can submit a new request with the same or a revised prompt.Use your song and cover art
Once the job is complete, you can use the URLs directly from the
result object:song_url— link to the generated audio file. Use this to play or download the track.image_url— link to the generated cover art. Use this alongside the track in your project.
title, bpm, duration, and tags to display metadata or filter tracks in your application.