
Stability AI text-to-audio model for music and sound effects, 44.1 kHz stereo clips up to 380 seconds, with length, step and seed controls.
Stability AI text-to-audio model for music and sound effects, 44.1 kHz stereo clips up to 380 seconds, with length, step and seed controls.
Also known as Stability AI Stable Audio 3 Medium
stable-audio-3-medium/v1/audio/generationsstabilityai/stable-audio-3-mediumLive pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.
Stable Audio 3 Medium runs through POST /v1/audio/generations. The request returns a job_id right away; poll GET /v1/jobs/{job_id} until the job completes and read the output URLs from the result. Get an API key from the EmpirioLabs dashboard.
curl https://api.empiriolabs.ai/v1/audio/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "stable-audio-3-medium",
"prompt": "Describe what you want Stable Audio 3 Medium to generate."
}'curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY"import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/audio/generations",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "stable-audio-3-medium",
"prompt": "Describe what you want Stable Audio 3 Medium to generate.",
},
)
job = response.json()
# Generation runs as an async job. Poll until it completes.
import time
while True:
status = requests.get(
f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
).json()
if status.get("status") in ("completed", "failed"):
print(status)
break
time.sleep(5)Request parameters supported by the Stable Audio 3 Medium API on EmpirioLabs. Defaults apply when a field is omitted.
| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
| prompt | string | - | - | The music or sound to generate. |
| audio_duration | number | 30 | 1 to 380 | Clip length in seconds, from 1 to 380. |
| num_inference_steps | number | 8 | 4 to 8 | Sampling steps, from 4 to 8. |
| seed | number | - | 0 to 2147483647 | Random seed. Leave unset for a random one. |
| format | enum | mp3 | mp3, wav, flac, ogg | Audio file format of the generated clip. |
| response_format | enum | url | url, b64_json | Return a signed media URL by default, or base64 JSON when requested. |
| return_base64 | boolean | false | - | Compatibility alias for response_format=b64_json. |
Generates music and sound effects from text: 44.1 kHz stereo, from 1 to 380 seconds per clip. Powered by Stability AI.
On EmpirioLabs, Stable Audio 3 Medium is billed pay as you go. The live rate card on this page always matches what the API charges.
Stable Audio 3 Medium is served through POST /v1/audio/generations on api.empiriolabs.ai with standard bearer-token authentication.
Yes. The EmpirioLabs playground runs Stable Audio 3 Medium in the browser with the same parameters the API exposes, so you can test prompts before writing code.
Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.
Check out our pricing or reach out if you want your own model deployed on our stack.