Spiral gives your agent every tool with one account. Browse the tools →

Grok Build · Audio

How to Use Stable Audio 3 Small Music Outpainting in Grok Build

Stable Audio 3 Small Music Outpainting extends an existing recording with new instrumental music. Unlike Stable Audio 3 Small SFX, it targets music, making it useful for longer backing tracks, additional phrases, and outros.

Prompts to try with Stable Audio 3 Small Music Outpainting in Grok Build

Copy an example into Grok Build, or ask in your own words.

Use Stable Audio 3 Small Music Outpainting to extend assets/audio/menu.wav from 30 to 60 seconds. Continue its quiet ambient synth arrangement without vocals.

Stable Audio 3 Small Music OutpaintingGrok Build
Try asking
  • Use Stable Audio 3 Small Music Outpainting on the project's 40-second demo music cue. Add 20 seconds of the same light electronic groove for the closing screen.

  • Use Stable Audio 3 Small Music Outpainting to continue assets/audio/piano-sketch.wav from 20 to 40 seconds. Request another delicate solo piano phrase with room reverb.

  • Use Stable Audio 3 Small Music Outpainting on the 45-second trailer music asset. Add a 15-second instrumental outro with fewer drums and a gentle resolution.

  • Use Stable Audio 3 Small Music Outpainting to extend the project's 30-second house cue by 15 seconds. Request a rising synth phrase and a stronger drum entrance.

How to set up Stable Audio 3 Small Music Outpainting in Grok Build

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Stable Audio 3 Small Music Outpainting

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/stable-audio-3/small/music/audio-outpainting",
        "input": {
          "prompt": "soft strings continue the melody",
          "audio_url": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav"
        }
      }'

Then paste one of the prompts above: Grok Build finds Stable Audio 3 Small Music Outpainting on Spiral, shows the price and runs it.

Stable Audio 3 Small Music Outpainting providers and prices

Spiral runs Stable Audio 3 Small Music Outpainting through fal. Open a card for today's price, with every fee included.

falAudio

Settings you can ask for

Stable Audio 3 Small Music Outpainting works from your prompt and audio URL. Ask Grok Build for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Text description of qualities to avoid in the output.

Number of inference steps1 to 1008

Number of sampling steps. Post-trained (distilled) checkpoints look good with the default 8 and gain little from going higher.

Guidance scale0 to 251

Classifier-free guidance scale. Higher values follow the prompt more strictly. Only effective on base (non-distilled) checkpoints.

Seeda whole number

Random seed for reproducible outputs. Omit for a random seed.

Enable prompt expansionon or offoff

If True, the prompt will be expanded using an LLM for more detailed and higher quality results.

Output formatmp3, wav, flac, ogg, opus, m4a, or aacmp3

Container format for the generated audio output.

Extend seconds before0 to 1200

Seconds of new audio to generate before the source audio.

Extend seconds after0 to 1200

Seconds of new audio to generate after the source audio.

Every API field of Stable Audio 3 Small Music Audio Outpainting · Audio Outpainting Small Music is on its tool page: open its card above.

What can you do with Stable Audio 3 Small Music Outpainting in Grok Build?

Extend music assets for a game, app demo, or short video using an existing recording as context. A coding agent can pair the project's timing requirements with a specific instrumental continuation brief.

Extend a podcast music bed

Continue an existing instrumental bed beneath a longer spoken introduction. Ask for the same instrumentation and restrained energy.

Finish a short video backing track

Extend a music cue to cover the final shots of a short edit. Describe how the continuation should develop or settle.

Develop a musical sketch

Use a recorded instrumental idea as context for another phrase. Explore where the melody and arrangement could go next.

Draft an outro

Continue a cue with a quieter closing section. Request fewer instruments and a gentle resolution, then audition the ending.

Build an electronic transition

Extend an electronic instrumental with a buildup or drop that fits its existing sound. Use the recording to guide the transition.

Explore alternative continuations

Start from the same music clip and request different next sections, such as a sparse passage or a fuller arrangement. Compare the musical direction before committing.

Questions about Stable Audio 3 Small Music Outpainting in Grok Build

Can Grok Build use Stable Audio 3 Small Music Outpainting?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Stable Audio 3 Small Music Outpainting like any built-in tool.

How much does Stable Audio 3 Small Music Outpainting cost in Grok Build?

$0.03445 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.

Do I need a fal account to use Stable Audio 3 Small Music Outpainting in Grok Build?

No. Spiral runs Stable Audio 3 Small Music Outpainting on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Stable Audio 3 Small Music Outpainting in Grok Build?

About two minutes: add the server, then sign in, then check it.

Does Grok Build wait while Stable Audio 3 Small Music Outpainting runs?

Stable Audio 3 Small Music Outpainting runs in the background. Grok Build starts the run, checks on it and gives you the audio when it's ready.

What does audio outpainting do?

Stable Audio 3 Small Music Outpainting adds new music beyond an existing recording's endpoint. The source audio and your description guide the continuation.

How long can the music be?

Stability AI documents a two-minute generation limit for Stable Audio 3 Small. Plan the source and continuation to fit within 120 seconds rather than assuming you can add two minutes to any recording.

Can it continue a song with understandable lyrics?

Stable Audio 3 does not produce intelligible vocals. Use it for instrumental continuations rather than a sung verse with specific words.

What should I put in a continuation prompt?

Name the genre, main instruments, rhythm, mood, and intended arrangement. Describe a next section that fits the recording, such as another quiet piano phrase or a gradual electronic build.

Should I write the prompt in English?

Yes. Stable Audio 3 was trained on English descriptions, and the maker warns that other languages will underperform.

Get started

Start using Stable Audio 3 Small Music Outpainting in Grok Build

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok Build:

Set up Grok Build

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options