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/audio-outpainting

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/audio-outpainting

Input

Output

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

Pricing

stable-audio-3-medium/audio-outpainting $0.0638 per audio

Overview

Stable Audio 3 Medium's audio continuation capability generates new content extending an existing audio clip either forward or backward. You can add only a beginning, only an ending, or new content at both ends, returning a single complete audio track that includes both the original audio and the newly added parts. It is ideal for padding out the end of a video, adding an intro to loop material, or continuing with new phrases after an existing soundtrack.

Key Highlights

  • Specify seconds separately for each end — extend_seconds_before and extend_seconds_after each set the added duration, both defaulting to 0.
  • The original audio is preserved in the output — the newly added parts and the original recording are joined directly into one audio track, with no manual splicing needed.
  • Continuation content is guided by the prompt — prompt describes the rhythm, instruments, and atmosphere the added parts should continue, keeping the style consistent at the seams.
  • Output format and bitrate are adjustable — consistent with text-to-audio, 7 containers such as mp3, wav, and flac are supported, and compressed formats allow specifying a bitrate.

Capability Details

  • Ending only: set extend_seconds_before to 0 and extend_seconds_after to the number of seconds to add; for example, continuing 4 seconds after an 8-second audio returns a 12-second output.
  • Beginning only: set extend_seconds_after to 0 and fill in only extend_seconds_before; the new content is generated before the original audio.
  • Add at both ends simultaneously: give values to both parameters, and the model generates the specified duration before and after respectively; the total output duration equals the original duration plus the sum of both added segments.
  • Description and avoidance: prompt states the musical characteristics the added parts should continue; negative_prompt describes sounds to avoid, defaulting to empty; guidance_scale defaults to 1 and takes effect only on base (non-distilled) checkpoints.
  • Output and steps: output_format defaults to mp3, with wav, flac, ogg, opus, m4a, and aac available; bitrate defaults to 192k and is ignored for lossless formats; num_inference_steps defaults to 8 and can be set from 1 to 100.

Use Cases

  • Padding out video endings — when the soundtrack is a few seconds shorter than the visuals, continue it to fill the gap and avoid an abrupt cut-off.
  • Adding an intro to loop material — generate a transitional prelude for a loop section for a natural entry.
  • Phrase extension experiments — continue with new phrases after an existing clip to quickly explore arrangement directions.
  • Adding a tail to audio content — append a fading ambient tail to the end of a podcast or course recording for a more complete finish.

Limitations and Selection Advice

audio_url and prompt are required, and prompt can be up to 5000 characters; extend_seconds_before and extend_seconds_after default to 0, each with an upper limit of 380 seconds, and when both are 0 no new content is produced. The total output duration equals the original audio duration plus the sum of both added segments, so reserve headroom when downstream systems have length limits. The added parts continue temporally from the original audio; it is recommended to audition from a few seconds before the original ending to check whether the transition sounds natural. To modify a short segment in the middle of a recording, use "Local Repair"; when there is no source audio, use "Text-to-Audio".

  • 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