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

n8n · Audio

How to Use Stable Audio 3 Medium Base Audio Inpainting in n8n

Stable Audio 3 Medium Base Audio Inpainting replaces selected audio sections or continues a recording. Unlike Stable Audio 3 Medium, it uses the pre-trained checkpoint intended for fine-tuning, with about 50 sampling steps as a starting point.

Prompts to try with Stable Audio 3 Medium Base Audio Inpainting in n8n

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

Every Monday, use Stable Audio 3 Medium Base Audio Inpainting to extend the approved 20-second podcast instrumental to 30 seconds, matching its existing instrumentation and mood; hold the result for review.

Stable Audio 3 Medium Base Audio Inpaintingn8n
Try asking
  • Each Friday, use Stable Audio 3 Medium Base Audio Inpainting to create one replacement for seconds 12 through 20 of the approved 30-second game cue, using restrained strings consistent with the surrounding music.

  • During the weekly audio review, use Stable Audio 3 Medium Base Audio Inpainting to regenerate seconds 6 through 10 of the approved 20-second forest ambience with matching wind and distant birds.

  • Every Tuesday, use Stable Audio 3 Medium Base Audio Inpainting to try a quieter final six seconds for the approved 30-second product-video instrumental; start with 50 sampling steps and prompt guidance set to 7.

  • Each morning, use Stable Audio 3 Medium Base Audio Inpainting on the next approved five-second mechanical effect, replacing seconds 1 through 3 with a heavier metallic clunk consistent with the surrounding sound.

How to set up Stable Audio 3 Medium Base Audio Inpainting in n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run Stable Audio 3 Medium Base Audio Inpainting in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Stable Audio 3 Medium Base Audio Inpainting, prices it and runs it each time the step fires.

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 Medium Base Audio Inpainting

    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/medium/base/audio-inpainting",
        "input": {
          "prompt": "punchy kick drum fill",
          "audio_url": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav",
          "mask_start_seconds": 4,
          "mask_end_seconds": 8
        }
      }'

Then paste one of the prompts above: n8n finds Stable Audio 3 Medium Base Audio Inpainting on Spiral, shows the price and runs it.

Stable Audio 3 Medium Base Audio Inpainting providers and prices

Spiral runs Stable Audio 3 Medium Base Audio Inpainting through fal. Open a card for today's price, with every fee included.

falAudio
Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base
fal-ai/stable-audio-3/medium/base/audio-inpainting

Settings you can ask for

Stable Audio 3 Medium Base Audio Inpainting works from your prompt and audio URL. Ask n8n 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 10050

Number of sampling steps. Base (non-distilled) checkpoints typically need ~50 for good quality.

Guidance scale0 to 257

Classifier-free guidance scale. Higher values follow the prompt more strictly; ~7.0 is a good starting point for base 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.

Mask start seconds0 to 380

Start of the region to regenerate, in seconds.

Mask end seconds0 to 380

End of the region to regenerate, in seconds.

Every API field of Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base is on its tool page: open its card above.

What can you do with Stable Audio 3 Medium Base Audio Inpainting in n8n?

You can prepare recurring audio revisions from approved recordings and editing briefs. Have the agent produce candidates with explicit time ranges and descriptions that fit each recording.

Replace a drum fill

Rework a selected drum passage in an instrumental track. Describe a fill that fits the existing tempo, instrumentation, and energy.

Extend a podcast music bed

Continue an existing instrumental bed to cover a longer introduction. Request the same restrained instrumentation and mood.

Fill an ambient passage

Regenerate a selected section of an ambient recording for a game scene. Keep the requested sounds consistent with the surrounding environment.

Rework a video outro

Replace the ending of an instrumental cue with a quieter passage. Preserve the earlier music while trying a different closing arrangement.

Audition a different bridge

Try a new middle section in an unfinished composition. Request a change in instrumental texture that still fits the surrounding track.

Revise a sound effect

Regenerate a selected portion of an existing effect, such as an impact or mechanical sound. Describe the desired character without replacing the entire recording.

Questions about Stable Audio 3 Medium Base Audio Inpainting in n8n

Can n8n use Stable Audio 3 Medium Base Audio Inpainting?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Stable Audio 3 Medium Base Audio Inpainting like any built-in tool.

How much does Stable Audio 3 Medium Base Audio Inpainting cost in n8n?

$0.06981 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 n8n plan is separate.

Do I need a fal account to use Stable Audio 3 Medium Base Audio Inpainting in n8n?

You need no fal account. n8n uses one Spiral API key for every tool, and Spiral runs Stable Audio 3 Medium Base Audio Inpainting on its own fal account.

How long does it take to set up Stable Audio 3 Medium Base Audio Inpainting in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while Stable Audio 3 Medium Base Audio Inpainting runs?

Stable Audio 3 Medium Base Audio Inpainting runs in the background. n8n starts the run, checks on it and gives you the audio when it's ready.

What does audio inpainting change?

It regenerates a selected section using your description and the surrounding recording. Audio outside the selected region is preserved, so you can revise a passage without rebuilding the entire track.

Can it continue an unfinished recording?

Yes. Stable Audio 3 supports continuing existing recordings, which makes it useful for extending an instrumental bed, an outro, or an ambient passage.

Can it generate narration or spoken dialogue?

Stable Audio 3 is not designed for speech or voice generation. Use it for instrumental passages and sound edits rather than narration.

Which language should I use for prompts?

Write audio descriptions in English. Stability AI says the model was trained on English descriptions and that other languages will underperform.

How should I describe a replacement section?

Describe the sound you want, including instruments, genre, mood, and tempo where relevant. Keep the request plausible for the surrounding audio, such as a restrained drum fill within an existing jazz passage.

Get started

Start using Stable Audio 3 Medium Base Audio Inpainting in n8n

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

Paste this into n8n:

Set up n8n

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