Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
21:9 high-key light rendering: on the right, a glass sound-wave ribbon and a metal tuning fork metaphor for stable-audio-3-medium, with the name etched and glowing; on the left, reserved empty space with a creamy halo, in ice blue and cyan blue paired with coral and light purple.

Stability AI

Stable Audio 3 Medium

stable-audio-3-medium/text-to-audio

Stable Audio 3 Medium is an audio generation model from Stability AI, offering three tasks on HiAPI: generating audio from scratch based on a text description, with a default of 30 seconds and a maximum of 380 seconds; redoing a specified time segment within existing audio; and extending new content at the beginning or end of audio. Output supports 7 formats including MP3, WAV, and FLAC, and supports fixed random seeds for reproducing results, making it suitable for scenarios such as short video soundtracks, game and ambient audio, podcast packaging, and sound effect drafts.

Try stable-audio-3-medium/text-to-audio

Input

Output

Fill in the parameters and run — results show up here.

Pricing

stable-audio-3-medium/text-to-audio $0.0538 per audio

Overview

Stable Audio 3 Medium's text-to-audio capability generates complete audio from scratch based on a text description, and lets you specify instruments, rhythm, ambient sounds and sense of spatial distance. A single request can be up to 380 seconds (about 6 minutes 20 seconds), defaults to 30 seconds, and can output MP3, WAV, FLAC and other formats. It suits developers and content teams that need to produce soundtrack drafts, ambient audio and sound-effect assets in bulk.

Key Highlights

  • Up to 380 seconds per request — duration defaults to 30 seconds and can be set from 1 to 380 seconds, so a complete soundtrack needs no segmented stitching.
  • 7 output containers available — output_format supports mp3, wav, flac, ogg, opus, m4a and aac, defaulting to mp3; wav and flac are lossless and can be used directly for post-production or archiving.
  • Ready results with the default 8 steps — num_inference_steps defaults to 8; the post-trained (distilled) checkpoint already performs well at the default step count, and raising it further yields limited gains.
  • Automatic prompt expansion — when enable_prompt_expansion is on, an LLM expands a single-sentence description into a more detailed prompt, reducing reliance on prompt-writing skill.

Capabilities

  • Generate audio from text descriptions: prompt is the only required parameter; state the desired instruments, melodic direction, mood and sense of space, and the model generates the full audio accordingly. Prompts can be up to 5000 characters.
  • Controllable duration and format: duration sets the length of the result in seconds, defaulting to 30 with a range of 1 to 380; output_format selects the container format; for compressed formats, bitrate sets the bit rate, defaulting to 192k and accepting 320k, with no effect on wav or flac.
  • Negative prompts and guidance strength: negative_prompt describes sonic characteristics to avoid and defaults to an empty string; guidance_scale defaults to 1, and higher values follow the prompt more strictly, taking effect only on the base (non-distilled) checkpoint.
  • Reproducible results: pass a seed to reproduce the same result; if omitted, a random seed is used each time. When comparing parameters or prompts, fixing the seed makes differences easier to hear.
  • Adjustable sampling steps: num_inference_steps defaults to 8 and can be set from 1 to 100; start with the default to get a draft, then compare finer detail at higher step counts as needed.

Use Cases

  • Soundtracks for short videos and podcasts — generate roughly 30 seconds of background music from a one-line style description and lay it directly under footage or voiceover.
  • Ambient audio for games and apps — describe the scene, weather and sense of space to generate a first version of a loopable ambient track.
  • Sound-effect and foley drafts — when a specific texture is needed (a close-miked wooden knock, distant rain), produce a draft first and then decide whether to record in a studio.
  • Prepare multiple duration versions at once — change only duration on the same prompt to produce 8-second, 30-second, 120-second and other versions suited to different placements.

Limitations and Model-Selection Advice

prompt is required and can be up to 5000 characters. duration ranges from 1 to 380 seconds; beyond that, trim or generate in segments. bitrate applies only to compressed formats such as mp3, aac and opus, and is ignored for wav and flac. guidance_scale takes effect only on the base checkpoint; leaving it at the default of 1 is sufficient. This capability generates from text: to change only one section of an existing recording, use "Local Inpainting"; to extend an existing recording, use "Audio Continuation". The more specific the prompt (instruments, playing technique, recording distance, presence of ambient sound), the more controllable the result.

  • New model stable-audio-3-medium text-to-audio model now available
  • New model stable-audio-3-medium/audio-inpainting is now available
  • New model New model available: stable-audio-3-medium/audio-outpainting

Frequently asked questions

View all FAQs →
  • How long an audio clip can be generated at once?

    duration controls the length, ranging from 1 to 380 seconds (about 6 minutes 20 seconds), with a default of 30 seconds. For longer works, it is recommended to generate them segment by segment, then use audio continuation to connect the segments.

  • What is the maximum length of a prompt?

    The prompt is required, and the platform's input limit per request is 5000 characters. Clearly specifying the instruments, rhythm, mood, and use case is more likely to produce the expected result than piling on adjectives; when the prompt is very short, you can enable enable_prompt_expansion to let the model expand it first.

  • How should prompts be organized when generating music?

    Write in the order of "instruments and timbre, rhythm and groove, emotion and dynamics, scene and texture", and state whether vocals are wanted. Put unwanted elements in negative_prompt, for example noise, distortion, abrupt silence.

  • How can I repair only a segment of the audio?

    Use mask_start_seconds and mask_end_seconds to specify the start and end times in seconds. The end time must be later than the start time and cannot exceed the duration of the source audio. For example, in an 8-second audio clip, setting the start point to 2 and the end point to 4 will repair seconds 2 through 4.

Related Models

View all models →

Same Type