Generating loops, stems, and samples with Stable Audio: how to build a track from AI-generated parts

December 1, 2026

Stable Audio 3.0 builds tracks from parts: loops, stems, and one-shot samples generated from text prompts, then arranged in a DAW. The web app renders 30-second loops and stem sets. The open-weight models run locally. Output is instrumental, since Stable Audio 3.0 is not designed for speech or voice generation.

Key takeaways

  • Three prompt tags steer the output: TrackType: SFX for one-shots and hits, TrackType: Instrument for isolated parts, and TrackType: Music for loopable beds and full instrumentals.

  • Tempo goes in the prompt as ordinary words, because Stable Audio 3.0 exposes no BPM parameter and no key parameter at all.

  • Variable-length generation lets you request an exact clip length, so a loop can be cut to a bar count instead of trimmed down from a fixed render.

  • Stability's licensing documentation names sample packs and sound libraries among the ways generated audio may be distributed commercially.

Loops, stems, and samples: three assets, three different jobs

A generative model produces more useful material when you ask it for a part than when you ask it for a finished piece. Loops repeat. A four-bar drum loop or an ambient bed gets laid down once and copied across a section. Samples are single events: a kick, a riser, a door slam, triggered from a pad or dropped on a timeline. Stems sit between the two, running the length of an arrangement as one isolated instrument.

Stable Audio 3.0 generates all three directly rather than separating them out of a finished mix, which is the distinction that decides what a producer can do with the output. Separation is bounded by what the source recording already contains. Generation is bounded by what you can describe, a difference covered in full in AI music stems and audio inpainting.

The practical consequence shows up in reuse. A generated loop belongs to your session and to the next one, and a generated one-shot goes into a folder you draw on for years. Stems are the handoff format for a mix in progress.

How to prompt for each asset type in Stable Audio 3.0

Tags go at the front of the prompt, followed by a natural-language description. Stability's prompt guide treats them as optional signals about output format rather than required syntax.

One-shots and samples: TrackType: SFX

Stable Audio 3.0 returns hits, risers, foley, and transitions when the prompt opens with TrackType: SFX. The Stable Audio 3.0 prompt guide says the tag tends to produce more reasonable sound effects and samples, and it groups one-shots under the same category rather than giving them a tag of their own.

Description matters more than tagging here. The guide's own hi-hat example specifies a 14-inch instrument played tightly closed, with zero ring and a very fast decay, which is four separate constraints on a sound lasting under a second. Source, playing technique, decay, and recording character all land, because the models were trained on metadata from AudioSparx and Freesound, where library engineers describe sounds that way.

Set a short duration. Most one-shots are brief, and a two-minute render of a kick drum wastes a generation. The small-sfx checkpoint handles sound effects only and runs on CPU at 433 million parameters, while medium covers samples alongside music, per the Stable Audio 3 model overview. Sound design for picture and games has its own constraints, set out in AI sound effects for games, film, and apps.

Isolated parts: TrackType: Instrument

Opening a prompt with TrackType: Instrument raises the odds of getting one clean part back rather than an arrangement that happens to contain that part. Stability's guide gives TrackType: Instrument, a sombre solo acoustic guitar track with cavernous reverb and delicate finger picking as a worked example. Adding Format: Duo asks for two instruments together, as in TrackType: Instrument, Format: Duo, a dynamic Latin drums and percussion track.

Performance detail is the lever. Mic perspective, room character, playing technique, and the sound of the gear all narrow the result, in the same vocabulary a sample library would use in its own descriptions. Both small-music and medium support isolated instruments; small-sfx does not.

Loopable beds: TrackType: Music and the 30-second loop length

The Stable Audio web app offers five generation lengths: 0:30 LOOP, 1:00 SHORT, 1:30 SONG, 3:00 EXT, and AUTO. Stability's Stable Audio dashboard and workspace documentation describes the loop option as suiting repeating beats and ambient beds, which makes it the only loop-labeled control anywhere in the product.

Pair it with TrackType: Music. The Stable Audio 3.0 prompting guide notes that TrackType: Music, VocalType: Instrumental tends to produce higher quality, more coherent output, and an instrumental bed is what loops without fighting a vocal line that was never going to be there.

An output-type toggle sits alongside the length control. FULL MIX returns one combined file and STEMS renders isolated components for export into another DAW, so a single loop prompt can come back as separate layers you balance yourself. A walkthrough of the first session end to end is in Make your first mix with Stable Audio.

Setting length and tempo so separately generated parts fit

Stable Audio 3.0 supports variable-length generation, so you request the duration you want instead of trimming a fixed render. The CLI takes --duration in seconds and the Python API takes duration=, as in stable-audio --model small-music -p "lo-fi hip hop beat, 90 BPM" --duration 30 -o beat.wav from the Stable Audio 3.0 repository examples.

Tempo is prompt text, not a parameter. Writing 90 BPM or 124 BPM into the description is the documented approach, and Stability's examples do exactly that. No key tag exists in any published guide, so key goes in the prose too and gets verified by ear once the part is back.

Bar math turns a tempo into a duration. One bar of 4/4 runs 240 divided by the tempo in seconds, which gives these loop lengths:

Tempo One bar 4 bars 8 bars 16 bars
90 BPM 2.67 s 10.67 s 21.33 s 42.67 s
120 BPM 2.00 s 8.00 s 16.00 s 32.00 s
140 BPM 1.71 s 6.86 s 13.71 s 27.43 s
174 BPM 1.38 s 5.52 s 11.03 s 22.07 s

Requesting 16 seconds at 120 BPM gives eight bars with no trimming. Requesting 15 gives you an editing job.

Making a generated clip loop cleanly

No loop-specific guidance appears in Stability's prompting documentation, and the models carry no boundary-matching feature. A clip that repeats without an audible seam is something you produce in three passes rather than request in one.

Generate at a bar-aligned duration first, using the table above. Then close the boundary. Inpainting regenerates a marked region while the audio outside the mask stays untouched, set with inpaint_mask_start_seconds and inpaint_mask_end_seconds, or --inpaint-start and --inpaint-end on the command line. Masking the last bar and prompting for material that resolves back toward the opening gives the loop point something to land on. Stability's guidance on mask size applies: start with a larger region and tighten on later passes, because a short mask leaves so much surrounding context that the output can come back nearly identical.

Finish in the DAW. Crossfade the tail into the head across a few milliseconds, check the loop point at the zero crossing, and bounce. Stable Audio 3.0 outputs 44.1 kHz stereo at 32-bit float, encoded and decoded by the model family's own semantic-acoustic autoencoder, so the material has headroom for that editing before anything is committed.

Where to run it

Four surfaces run the same model family at different ceilings.

Surface Models available Max length Loop-relevant controls Access
Web app Hosted, including Large 3:00 on the longest preset 0:30 LOOP length, FULL MIX or STEMS output Subscription credits
DAW plugin SA3 SFX and SA3 Medium locally, Large via cloud Not stated Text-to-audio only at launch macOS VST for Cubase, Reaper, Ableton; AU for Logic Pro
Local weights small-music, small-sfx (433M, CPU), medium (1.4B, CUDA) 120 s small, 380 s medium Full parameter access including masks and seeds Community License
API Large (2.7B) 380 s Full parameter access Pay as you go

Plugin support is narrower than the marketing shorthand suggests. The Stable Audio DAW plugin guide lists Windows support and AAX for Pro Tools as upcoming rather than available, and names text-to-audio as the only capability at launch, with in-plugin inpainting and audio-to-audio still to come. Cloud generations in the plugin draw on the same credit pool as the web account through the Stable Sessions API.

Local weights are where the loop workflow gets efficient. Seeds, mask lists, and batch runs are all reachable from the CLI, and both mask parameters accept lists, so several loop boundaries can be fixed in a single call. The trade-offs between running the weights yourself and calling the API are set out in Self-hosted vs. API generative audio, and training the model on your own library is covered in Self-hosting and fine-tuning Stable Audio 3.0.

What you can do with the loops and samples you generate

Stability's commercial and usage licensing documentation states that generated audio may be distributed commercially and names standalone tracks, stock music, sound libraries, and sample packs among the examples, subject to its Terms of Service and Acceptable Use Policy. Commercial use is listed as permitted across its plans, including the free tier, and the same article puts responsibility on the user for making sure a given use does not violate anyone else's rights. Broader commercial questions are covered in Can AI-generated music be used commercially.

Self-hosted weights sit under a different instrument. Stable Audio 3.0 Small and Medium fall under the Stability AI Community License, which covers commercial use below one million dollars in annual revenue and directs organizations above that threshold to request a separate license. The license also states that you own the outputs you generate, to the extent the law permits, and it prohibits using outputs to create or improve a foundational generative AI model other than the Stability models themselves. What sits behind the models is explained in How Stable Audio's training data licensing works.

A sample pack built from generated material may require conditions beyond what this page covers, and the terms are revised periodically. Read the current versions before you publish.

Where generated parts fall short

Stable Audio 3.0 does not produce intelligible vocals. The Stable Audio 3.0 model overview states the models are not designed for speech or voice generation, so a track that needs a sung line needs a singer or a different tool. Vocal textures do appear, usable as pads rather than lyrics. How that limit compares against the rest of the field is set out in Stable Audio vs. Suno, Udio, ElevenLabs, Mubert and Lyria.

Alignment is the other constraint. Each generation is an independent render, so two loops requested at the same tempo will not necessarily share a grid, and nothing enforces a key relationship between them. Generating one longer part first and prompting the rest against it reduces the problem without removing it. Prompts are also English-trained, and the documentation says other languages underperform.

Tool How parts are produced Tempo and key controls Max clip length Where it runs
Stable Audio 3.0 Generated as loops, stems, or one-shots from prompt tags Tempo in prompt text; no key control 120 s to 380 s by model Web, DAW plugin, API, local weights
Loudly AI Sample Generator Generated as loops, one-shots, and SFX Its page lists genre, BPM, key, mood, and instrument controls Not stated on its page Hosted
ElevenLabs Sound Effects Generated sound effects, with a “Seamless looping” row in its pricing table Not stated on its page 30 s on every plan, per its pricing table Hosted
Suno Separated from a finished song, up to 12 stems Not applicable to separation Bounded by the source track Hosted

Each cell reflects what that vendor's own documentation stated on November 30, 2026, and vendors revise these pages often. A job-by-job read of the same field is in The best AI music generation tools in 2026.

Frequently asked questions about generating loops, stems, and samples

Can I make a whole song with Stable Audio, or just parts? Both, with one limit. Stable Audio 3.0 generates full instrumental mixes up to about six minutes on the larger models, and it generates the individual loops, stems, and samples you would assemble yourself. What it does not generate is intelligible vocals, so a finished song with lyrics needs a vocalist or another tool.

How do I get a loop that actually loops? Generate at a bar-aligned length first, which is 240 divided by your tempo per bar of 4/4. Then use inpainting on the final bar so the material resolves back toward the opening, and crossfade the tail into the head in your DAW. Stable Audio 3.0 has no automatic loop-boundary matching.

Does Stable Audio let me set the BPM? Not as a parameter. Tempo goes into the prompt text as ordinary words, such as "lo-fi hip hop beat, 90 BPM," which is how Stability's own documented examples specify it. The model treats tempo as part of the description, so results sit close to the requested figure rather than locked to it.

Can I set the key of a generated part? No key parameter exists in any published Stable Audio 3.0 guide. Name the key in the prompt text and check the result by ear or with a tuner before you build on it. Producers working across several generated parts usually fix the key on one part first and prompt the others to match it.

What is the difference between a stem and a loop here? A stem runs the length of an arrangement as one isolated instrument, and a loop is a short bar-aligned section built to repeat. Stable Audio 3.0 reaches them through different routes: TrackType: Instrument for a stem, or the web app's STEMS output toggle, against TrackType: Music at a loop length for a bed.

How do I generate one-shot drum samples instead of a full beat? Open the prompt with TrackType: SFX, set a short duration, and describe the single sound rather than a pattern. Stability's documentation groups one-shots under the sound-effects category. Specifying the instrument size, playing technique, decay, and room character narrows the result far more than genre words do.

Will the loops I generate line up with each other? Not automatically. Every generation is an independent render with no shared grid, so separately generated loops need tempo stated consistently in each prompt and still need aligning in the DAW. Generating one part at full length and prompting the rest against it gives the most reliable results.

Can I sell a sample pack made with Stable Audio? Stability's commercial licensing article states that generated audio may be distributed commercially and names sample packs and sound libraries among its examples, subject to its Terms of Service and Acceptable Use Policy. Self-hosted output falls under the Community License instead, which has its own terms. Both documents are revised periodically, so read the current versions.

Do I need a GPU to generate samples locally? Not for the small models. Stable Audio 3 Small-SFX and Small-Music run on CPU at 433 million parameters and generate up to 120 seconds. The 1.4 billion parameter medium checkpoint requires a CUDA GPU and extends to 380 seconds, and the 2.7 billion parameter Large model is available through the API rather than the open-weight release.

Does the DAW plugin generate loops inside my session? The plugin generates audio inside supported DAWs, with SA3 SFX and SA3 Medium running locally and Large through your Stable Audio account. At launch it supports text-to-audio only, on macOS, as VST for Cubase, Reaper, and Ableton and AU for Logic Pro. Stability lists Windows support, Pro Tools AAX, and in-plugin inpainting as upcoming.

Can Stable Audio generate vocals for my track? No. Stability's model overview states the models are not designed for speech or voice generation. Vocal-like textures do appear in output and work as pads or atmosphere, but they carry no lyrics and no intelligible words.

Last updated December 1, 2026

Next
Next

How to fine-tune an audio generation model