Sand AISand AI MAGI-2MAGI-2 is now on SandBase: 1080p video with native audioTry it now

Stable Audio 3 Small SFX Audio Outpainting

stability-ai/stable-audio/3/small/sfx/audio-outpainting

Stable Audio 3 Small SFX by Stability AI extends an existing clip with new audio before or after it, guided by a text prompt.

Base price
$0.03USD / run
Execution
async
Model type
audio
Input fields
7
Production route

Try the model

Playground

Open playground
Input
Text description of the extension content.
Source audio file or URL to extend.
0120
Seconds of new audio to generate after the source audio (0–120). Range: 0 to 120.
0120
Seconds of new audio to generate before the source audio (0–120). Range: 0 to 120.
Audio container format.
Qualities to avoid in the output.
Random seed for reproducible outputs.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.03 / run

Context & modalities

Input
Schema-defined
Output
audio

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Stability AI
Model ID
stability-ai/stable-audio/3/small/sfx/audio-outpainting
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Stable Audio 3 Small SFX Audio Outpainting

Extends a source clip before and/or after it with new audio from a prompt (up to 120 s each side).

Fields

FieldTypeDefaultNotes
promptstring, required—Text description of the extension content.
audioaudio file or URL, required—Source audio file or URL to extend.
extend_seconds_afternumber 0–1200New audio appended after the source, in seconds.
extend_seconds_beforenumber 0–1200New audio prepended before the source, in seconds.
output_formatmp3 / wav / flac / ogg / opus / m4a / aacmp3Output file format.
negative_promptstring—What to avoid.
seedintegerrandomFix it to compare prompt changes.

Billing

$0.0271 per generation, regardless of duration or settings.

RequestPrice
One track$0.0271
10 tracks$0.271

Failed runs are not charged.

Prompting

  • Describe how the music or sound should continue; set at least one of extend_seconds_after / extend_seconds_before above 0.

Also on SandBase

Related: stability-ai/stable-audio/3/small/sfx/text-to-audio, stability-ai/stable-audio/3/small/sfx/audio-to-audio, stability-ai/stable-audio/3/small/sfx/audio-inpainting, stability-ai/stable-audio/3/small/sfx/base/audio-outpainting.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
stability-ai/stable-audio/3/small/sfx/audio-outpainting
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "stability-ai/stable-audio/3/small/sfx/audio-outpainting",
  "audio": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav",
  "prompt": "soft strings continue the melody",
  "output_format": "mp3",
  "extend_seconds_after": 30,
  "extend_seconds_before": 0
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"
01

Input Schema

7 parameters · 2 required · 5 optional

ParameterTypeRequiredDescription
audiostringRequiredSource audio file or URL to extend.
promptstringRequiredText description of the extension content.
seedintegerOptionalRandom seed for reproducible outputs.
output_formatstringOptionalAudio container format. · Options: mp3, wav, flac, ogg, opus, m4a, aac · Default: "mp3"
mp3wavflacoggopusm4aaac
negative_promptstringOptionalQualities to avoid in the output. · Default: ""
extend_seconds_afternumberOptionalSeconds of new audio to generate after the source audio (0–120). · Min: 0 · Max: 120 · Default: 0
extend_seconds_beforenumberOptionalSeconds of new audio to generate before the source audio (0–120). · Min: 0 · Max: 120 · Default: 0
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model runs asynchronously. Submit a request, then poll for the result.

  1. Submit: POST to /v1/run and read the returned id.
  2. Poll: GET /v1/run/{id} until status is completed, failed or timeout.
  3. Retrieve: read outputs from the completed response.

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
Stability AIAudio$0.03 / runJun 3, 2026
Stability AIAudio$0.06 / runJun 3, 2026
Stability AIAudio$0.05 / runJun 3, 2026
Stability AIAudio$0.05 / runJun 3, 2026
Stability AIAudio$0.05 / runJun 3, 2026
Stability AIAudio$0.03 / runJun 3, 2026

Questions

FAQ

How do I call Stability AI Stable Audio 3 Small SFX Audio Outpainting through SandBase?

Create a SandBase API key, then send requests with the model ID "stability-ai/stable-audio/3/small/sfx/audio-outpainting" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate Stability AI account?

No. One SandBase API key and balance gives you access to Stability AI Stable Audio 3 Small SFX Audio Outpainting and the other models in the catalog; you do not need to sign up with Stability AI separately.