Stable Audio API

stable-audio
Stable Audio generates high-quality audio from text prompts with innovative features like audio transformation and extensive creative control.
Output
$0.000156 / step (variable)
Released
Dec 5, 2025

Overview

Stable Audio Description

Basic Information

  • Model Name: Stable Audio
  • Developer/Creator: Stability AI
  • Release Date: September 2023
  • Version: 1.0
  • Model Type: Audio Generation Model
Overview:

Stable Audio is an advanced audio generation model designed to create high-quality audio tracks from textual prompts.

Key Features:

  • High-Quality Output: Generates audio at 44.1 kHz stereo, providing professional-grade sound quality.
  • Length Flexibility: Capable of producing tracks with coherent musical structures including intros, developments, and outros.
  • Diverse Sound Creation: Generates melodies, sound effects, and various audio styles, catering to musicians and sound designers.
Intended Use:

The model is intended for musicians, sound designers, and developers looking to create music, sound effects, or ambient sounds for various applications such as games, films, or interactive media.

Language Support:

Stable Audio primarily supports English for text prompts but can process multilingual inputs depending on the context of the prompt.

Technical Details

Architecture:

Stable Audio employs a latent diffusion model architecture optimized for audio generation. It uses a combination of a highly compressed autoencoder for efficient representation of audio waveforms and a diffusion transformer (DiT) that excels in manipulating data over long sequences.

Training Data:

The model was trained on a diverse dataset sourced from the AudioSparx music library, which includes over 800,000 audio files encompassing music, sound effects, and single-instrument stems.

  • Data Source and Size: The dataset is large and varied, ensuring a comprehensive understanding of different audio elements and styles.
  • Diversity and Bias: The training data was curated to respect creator rights with an opt-out option for artists. This approach helps minimize bias while ensuring diverse representation in the generated outputs.
Performance Metrics:

Stable Audio has demonstrated impressive performance metrics:

                                                                                                                                                                               
MetricScore
Quality IndexHigh
Length of Generated Tracksup to 47s
Sampling Rate44.1 kHz

Usage

Code Samples

The model is available on the AI/ML API platform as "Stable Audio" .

To get the generated audio
API Documentation

Detailed API Documentation is available here.

API Pricing

  • $0.000156 per step

Ethical Guidelines

Stability AI emphasizes ethical considerations in AI development by promoting transparency regarding the model's capabilities and limitations. The organization ensures that all training data respects copyright laws and provides options for artists to opt out of data usage.

Licensing

Stable Audio is available under a commercial license that allows both research and commercial usage rights while ensuring compliance with ethical standards regarding creator rights.

Get Stable Audio API here.

Uptime and performance

  • End-to-end latency (24h median): 72.1s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Music Production & Sound Design: Generate loops, textures, SFX
  • Audio Prototyping: Quickly mock audio-only concepts for apps or games
  • Ambient & Foley Creation: Generate atmosphere or environmental sounds
  • Research & Academic Projects: Fine-tune open model for sound-related tasks
  • Accessibility Tools: Produce audio cues for interfaces or assistive tech

‍

How to use Stable Audio API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to stable-audio.
import requests, time

headers = {"Authorization": "Bearer " + AIMLAPI_KEY}
job = requests.post(
    "https://api.aimlapi.com/v2/generate/audio",
    headers=headers,
    json={
      "model": "stable-audio",
      "prompt": "Upbeat lofi background music"
    },
).json()
gid = job["generation_id"]

while True:
    res = requests.get(f"https://api.aimlapi.com/v2/generate/audio?generation_id={gid}", headers=headers).json()
    if res.get("status") in ("completed", "error", "failed"):
        break
    time.sleep(3)
print(res)
const headers = {
  Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
  "Content-Type": "application/json",
};
const job = await (await fetch("https://api.aimlapi.com/v2/generate/audio", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "model": "stable-audio",
    "prompt": "Upbeat lofi background music"
  }),
})).json();

let res;
do {
  await new Promise((r) => setTimeout(r, 3000));
  res = await (await fetch(`https://api.aimlapi.com/v2/generate/audio?generation_id=${job.generation_id}`, { headers })).json();
} while (!["completed", "error", "failed"].includes(res.status));
console.log(res);
# submit the job — the response contains "generation_id"
curl -X POST https://api.aimlapi.com/v2/generate/audio \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"stable-audio","prompt":"Upbeat lofi background music"}'

# then poll for the result until it is ready
curl "https://api.aimlapi.com/v2/generate/audio?generation_id={generation_id}" -H "Authorization: Bearer $AIMLAPI_KEY"

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Stable Audio API Pricing

TypePrice
Output
$0.000156 / step (variable)

Stable Audio vs other models

ModelInputOutputContextBest for
Stable Audio
This page
$0.000156 / step (variable)
Audio generation
$130 / 1M characters
$130 / 1M
Speech synthesis
$130 / 1M characters
$0.13 / 1M tokens
Speech synthesis
$78 / 1M characters
$0.078 / 1M tokens
Speech synthesis
$13 / 1M characters
$0.013 / 1M tokens
Speech synthesis

Frequently asked questions

Stable Audio takes audio, text as input and returns audio.

Stable Audio is priced at output $0.000156 / step (variable).

Stable Audio was built by Stability AI.

Send a request to v2/generate/audio with stable-audio as the model id.

Yes. Stable Audio is served through AI/ML API, so the same key and endpoint format used for other models applies.

Stable Audio includes audio transformation features and gives users extensive creative control over the generated output.

Start building with Stable Audio

Get API Key
1000+ models, one API.