Stable Audio 2.5 API

Up-to-3-minute audio from text with text-to-audio, audio-to-audio, and audio inpainting for music production, sound design, and remixing.

Stability AIAudio GenerationProprietary Endpoint

About Stable Audio 2.5

Up-to-3-minute audio from text with text-to-audio, audio-to-audio, and audio inpainting for music production, sound design, and remixing.

Also known as Stable Audio, Stable-Audio-2.5

Stable Audio 2.5 specs

Model ID
stable-audio-2-5
Provider
Stability AI
Category
Audio Generation
Input
text
Output
audio
Endpoints
POST /v1/audio/generations

Stable Audio 2.5 API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Generation
per generation
$0.68
Compare on the full pricing page

How to call the Stable Audio 2.5 API

Stable Audio 2.5 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: submit the job
curl https://api.empiriolabs.ai/v1/audio/generations \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "stable-audio-2-5",
    "prompt": "Describe what you want Stable Audio 2.5 to generate."
  }'
cURL: poll for the result
curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/audio/generations",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "stable-audio-2-5",
        "prompt": "Describe what you want Stable Audio 2.5 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)
Full Stable Audio 2.5 API reference

Stable Audio 2.5 API parameters

Request parameters supported by the Stable Audio 2.5 API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
promptstring--What to generate.
modeenumtext-to-audiotext-to-audio, audio-to-audio, audio-inpaintaudio-inpaint regenerates a [mask_start, mask_end] window of an existing clip while keeping the rest.
output_formatenummp3mp3, wavOutput media file format (mp3, wav, mp4, png, jpg, etc., depending on the endpoint).
durationnumber1901 to 190Seconds. Up to 3 minutes 10 seconds.
stepsnumber84 to 8Diffusion steps. The 2.5 turbo model is tuned for very low step counts.
cfg_scalenumber11 to 25Classifier-free guidance. The turbo model uses small CFG by default.
strengthnumber0.50.01 to 1Audio-to-audio only. 0.01 = ignore reference, 1 = stay close to reference.
mask_startnumber-0 to 190Inpaint window start (seconds). Required for audio-inpaint.
mask_endnumber-0 to 190Inpaint window end (seconds). Required for audio-inpaint.
random_seedbooleantrue-If true, use a random seed each call.
seednumber--Reproducibility seed. Only used when random_seed=false.
audio_urlstring--Reference audio URL for audio-to-audio / inpaint.

Good to know

Adds audio-inpaint mode (regenerate a time window) on top of Stable Audio 2.0.

Mode requirements

  • Audio-to-audio and audio-inpaint both require BOTH a prompt and an uploaded audio file
  • Audio-to-audio uses the reference audio for style/conditioning, NOT for voice cloning

Stable Audio 2.5 API: common questions

How much does the Stable Audio 2.5 API cost?

On EmpirioLabs, Stable Audio 2.5 is billed pay as you go: Generation $0.68 per generation. The live rate card on this page always matches what the API charges.

Which endpoint does Stable Audio 2.5 use?

Stable Audio 2.5 is served through POST /v1/audio/generations on api.empiriolabs.ai with standard bearer-token authentication.

Can I try Stable Audio 2.5 in the browser before integrating?

Yes. The EmpirioLabs playground runs Stable Audio 2.5 in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Stable Audio 2.5 API key?

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.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.