stabilityai / stable-audio-3-optimized

huggingface.co
Total runs: 10.3K
24-hour runs: 0
7-day runs: 5.7K
30-day runs: 9.9K
Model's Last Updated: August 14 2026
text-to-audio

Introduction of stable-audio-3-optimized

Model Details of stable-audio-3-optimized

Stable Audio 3 Optimized

Note: This repository contains experimental checkpoints optimised for acceleration on specific hardware. For standard checkpoints, please use Stable Audio 3 Medium instead.

Please note: For commercial use, please refer to https://stability.ai/license

Model Description

Stable Audio 3 is a family of fast latent diffusion models (small, medium, large) for variable length audio generation and editing. Since our models can generate several minutes of audio, variable-length generations are key to avoid the cost of producing full-length generations for short sounds. We also support inpainting, enabling targeted audio editing and the continuation of short recordings. Our latent diffusion models operate on top of a novel semantic-acoustic autoencoder that projects audio into a compact latent space, enabling efficient diffusion-based generation while preserving audio fidelity and encouraging semantic structure in the latent. Finally, we run adversarial post-training to both accelerate inference and improve generation quality, reducing the number of inference steps while improving fidelity and prompt adherence. Stable Audio 3 models are trained on licensed and Creative Commons data to generate music and sounds in less than a 2s on an H200 GPU and less than a few seconds on a MacBook Pro M4. We release the weights of small and medium, that can run on consumer-grade hardware, together with their training and inference pipeline.

Usage

This model can be used with:

  1. the stable-audio-3 inference and fine-tuning library
  2. the stable-audio-tools research library
Using with stable-audio-3
from stable_audio_3 import StableAudioModel

model = StableAudioModel.from_pretrained("medium")
audio = model.generate(
    prompt=(
        "House music that encapsulates the feeling of being at a festival "
        "in the sunny weather with all your friends 124 BPM"
    ),
    duration=180
)
Using with stable-audio-tools
import torch
import torchaudio
from einops import rearrange
from stable_audio_tools import get_pretrained_model
from stable_audio_tools.inference.generation import generate_diffusion_cond_inpaint

device = "cuda" if torch.cuda.is_available() else "cpu"
if device == "cuda":
  model_half = True

# Download model
model, model_config = get_pretrained_model("stabilityai/stable-audio-3-medium")
sample_rate = model_config["sample_rate"]
sample_size = model_config["sample_size"]

model = model.to(device)
if model_half:
  model = model.to(torch.float16)
# Set up text and timing conditioning
conditioning = [{
    "prompt": (
        "A dream-like Synthpop instrumental that would accompany "
        "a dream-sequence in a surrealist movie 120 BPM"
    ),
    "seconds_total": 380
}]

# Generate stereo audio
output = generate_diffusion_cond_inpaint(
    model,
    steps=8,
    cfg_scale=1.0,
    conditioning=conditioning,
    sample_size=sample_size,
    sampler_type="pingpong",
    device=device
)

# Rearrange audio batch to a single sequence
output = rearrange(output, "b d n -> d (b n)")

# Peak normalize, clip, convert to int16, and save to file
output = output.to(torch.float32).div(torch.max(torch.abs(output))).clamp(-1, 1).mul(32767).to(torch.int16).cpu()
torchaudio.save("output.wav", output, sample_rate)
Model Details

We use a publicly available pre-trained T5Gemma model ( t5gemma-b-b-ul2 ) for text conditioning. T5Gemma is redistributed under the Gemma Terms of Use .

Training dataset
Datasets Used

Our dataset consists of 1,278,902 audio recordings, where 806,284 recordings are licensed from AudioSparx and a further 472,618 are from Freesound . The Freesound portion consists of recordings licensed under CC-0, CC-BY, or CCSampling+. To ensure no copyrighted content was present in the Freesound data, music recordings were identified using the PANNs [89] tagger. We flagged audio that activated music-related tags for at least 30s (threshold of 0.15), that was sent to a trusted content detection company to verify the absence of copyrighted material. All identified copyrighted content was removed. After filtering, the Freesound part includes 266,324 CC-0, 194,840 CC-BY, and 11,454 CC-Sampling+ recordings. The same subset of Freesound audio we used to train Stable Audio Open: https://info.stability.ai/attributions .

Runs of stabilityai stable-audio-3-optimized on huggingface.co

10.3K
Total runs
0
24-hour runs
799
3-day runs
5.7K
7-day runs
9.9K
30-day runs

More Information About stable-audio-3-optimized huggingface.co Model

More stable-audio-3-optimized license Visit here:

https://choosealicense.com/licenses/stable-audio-community

stable-audio-3-optimized huggingface.co

stable-audio-3-optimized huggingface.co is an AI model on huggingface.co that provides stable-audio-3-optimized's model effect (), which can be used instantly with this stabilityai stable-audio-3-optimized model. huggingface.co supports a free trial of the stable-audio-3-optimized model, and also provides paid use of the stable-audio-3-optimized. Support call stable-audio-3-optimized model through api, including Node.js, Python, http.

stable-audio-3-optimized huggingface.co Url

https://huggingface.co/stabilityai/stable-audio-3-optimized

stabilityai stable-audio-3-optimized online free

stable-audio-3-optimized huggingface.co is an online trial and call api platform, which integrates stable-audio-3-optimized's modeling effects, including api services, and provides a free online trial of stable-audio-3-optimized, you can try stable-audio-3-optimized online for free by clicking the link below.

stabilityai stable-audio-3-optimized online free url in huggingface.co:

https://huggingface.co/stabilityai/stable-audio-3-optimized

stable-audio-3-optimized install

stable-audio-3-optimized is an open source model from GitHub that offers a free installation service, and any user can find stable-audio-3-optimized on GitHub to install. At the same time, huggingface.co provides the effect of stable-audio-3-optimized install, users can directly use stable-audio-3-optimized installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

stable-audio-3-optimized install url in huggingface.co:

https://huggingface.co/stabilityai/stable-audio-3-optimized

Url of stable-audio-3-optimized

stable-audio-3-optimized huggingface.co Url

Provider of stable-audio-3-optimized huggingface.co

stabilityai
ORGANIZATIONS

Other API from stabilityai

huggingface.co

Total runs: 629.9K
Run Growth: -60.3K
Growth Rate: -9.57%
Updated:July 10 2024
huggingface.co

Total runs: 308.6K
Run Growth: 362
Growth Rate: 0.12%
Updated:August 04 2023
huggingface.co

Total runs: 34.9K
Run Growth: 14.7K
Growth Rate: 42.02%
Updated:August 09 2024
huggingface.co

Total runs: 869
Run Growth: 0
Growth Rate: 0.00%
Updated:April 04 2025
huggingface.co

Total runs: 90
Run Growth: 68
Growth Rate: 75.56%
Updated:November 05 2025
huggingface.co

Total runs: 74
Run Growth: -53
Growth Rate: -71.62%
Updated:August 03 2024