An AI music generation API composes audio from a text description of the style, mood, instruments and tempo, and on some models from lyrics, a reference recording or a video to score. You submit a job, poll until it finishes, and download the generated track.
A music generation API creates new audio from a description. A prompt names the genre, mood, instruments and tempo, for example lo-fi hip hop, mellow piano, 90 BPM, and the model returns a finished track. Depending on the model, it can do more:
[Verse] and [Chorus], and the model sings them. An instrumental setting produces a track without vocals.You send POST /v1/audio/generations with the model ID, the prompt and the settings the model accepts, such as lyrics, duration, seed and the output format (MP3, WAV, FLAC and others). Every request returns a job_id at once. Poll GET /v1/jobs/{job_id} until the status is completed, then download the track from the URL in the result. A model that scores a video can also return the finished video with its new soundtrack, through the video generation endpoint.
Side-by-side model comparisons show two models' capabilities and rates together.
Browse the audio models and generate a track in the Playground. To call a model from code, create an API key in the dashboard, submit the job to https://api.empiriolabs.ai/v1/audio/generations and poll the jobs endpoint. The music and sound generation reference describes the request and the job flow.
Pay as you go, or choose a plan with weekly allowances. Current rates are on the pricing page.
9 models, cheapest first where they share a billing unit. Each model's page has its full rate card, parameters and code.
Endpoints
/v1/audio/generationsPriced per second
| Model | Lowest rate | Applies to |
|---|---|---|
| ACE-Step 1.5 XL ACE-Step | $0.0003$0.00025 per generated second | Music generation |
| StepAudio 3 Music StepFun | $0.000667 per generated second | Text to music |
| MiniMax Music 3 MiniMax | $0.002$0.0018 per generated second | Music generation |
| Sonilo Sound Effects 1.0 Sonilo | $0.0036 per generated second | Text to sound effect |
| Sonilo v1.1 Sonilo | $0.0045 per generated second | Text to music |
Also available: Stable Audio 2.0, Stable Audio 2.5, Sonilo Video to Video, Stable Audio 3 Medium
Yes, on models that sing. You supply lyrics, usually marked with section tags such as [Verse] and [Chorus], and a prompt for the style. Other models generate instrumental music and sound only.
It depends on the model: limits range from short clips to several minutes per track. Some models let you set the duration, and others choose it themselves.
Yes. Some models take a video as input and generate a soundtrack that follows its cuts and pacing, or place sound effects on the action.
Many models bill per second of generated audio, so longer tracks cost more, while others bill a flat rate per track. On EmpirioLabs AI you can pay as you go or choose a plan with weekly allowances.
Check out our pricing or reach out if you want your own model deployed on our stack.