[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Stable Audio 3 Small SFX Base Audio Inpainting](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-base-audio-inpainting)

# How to Use Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code

Use Stable Audio 3 Small SFX Base Audio Inpainting to replace selected passages in sound-effect recordings. Unlike Stable Audio 3 Small SFX, it uses the pre-trained Base checkpoint, which Stability recommends primarily for fine-tuning.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Small SFX Base Audio Inpainting |
| Available through | fal |
| Category | Audio |
| Price | $0.04303 per run at the default inputs. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code

- Use Stable Audio 3 Small SFX Base Audio Inpainting on assets/audio/door.wav. Replace seconds 2 through 5 with a heavy wooden door closing, a low thud, and a short indoor decay. Save a separate take for comparison.
- Use Stable Audio 3 Small SFX Base Audio Inpainting on assets/audio/rain.wav. Rework seconds 8 through 16 as steady rain striking a metal roof, recorded from beneath the roof. Keep the original asset.
- Use Stable Audio 3 Small SFX Base Audio Inpainting to revise seconds 3 through 7 of assets/audio/impact.wav. Request a heavy metal strike with a sharp attack and a ringing tail. Use about 50 sampling steps.
- Read the sound brief in the project, then use Stable Audio 3 Small SFX Base Audio Inpainting on assets/audio/engine.wav. Replace seconds 5 through 12 with an engine sputtering into a steady idle, recorded nearby.
- Use Stable Audio 3 Small SFX Base Audio Inpainting on assets/audio/transition.wav. Replace seconds 1 through 6 with a rising air rush ending in a dry mechanical click. Save the result beside the original.

## How to set up Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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.

```bash
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 SFX Base Audio Inpainting**: One request; the result comes back by polling or a webhook.

```bash
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/sfx/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: Claude Code finds Stable Audio 3 Small SFX Base Audio Inpainting on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Stable Audio 3 Small SFX Base Audio Inpainting tools and prices

- [Stable Audio 3 Small SFX Base Audio Inpainting · Audio Inpainting Small SFX Base](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/small/sfx/base/audio-inpainting) (fal): $0.04303 per run at the default inputs.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | Text description of qualities to avoid in the output. |
| num_inference_steps | 1 to 100 | 50 | Number of sampling steps. Base (non-distilled) checkpoints typically need ~50 for good quality. |
| guidance_scale | 0 to 25 | 7 | Classifier-free guidance scale. Higher values follow the prompt more strictly; ~7.0 is a good starting point for base checkpoints. |
| seed |  | — | Random seed for reproducible outputs. Omit for a random seed. |
| enable_prompt_expansion |  | false | If True, the prompt will be expanded using an LLM for more detailed and higher quality results. |
| output_format | mp3, wav, flac, ogg, opus, m4a, aac | mp3 | Container format for the generated audio output. |

## What can you do with Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code?

Revise sound-effect assets while keeping their surrounding audio available for comparison. A coding agent can use project context to turn an asset brief into a specific edit request for Stable Audio 3 Small SFX Base Audio Inpainting.

### Revise game Foley

Replace a passage in an existing Foley recording with a different footstep texture, door movement, or object interaction.

### Try alternate impacts

Rework an impact inside a sound-design clip, describing the material, weight, attack, and decay you want.

### Rework ambience passages

Regenerate a selected stretch of rain, wind, or machinery in a recording up to two minutes long.

### Revise podcast sound cues

Change the sound-effect passage in a short podcast cue while retaining its surrounding audio.

### Refine trailer transitions

Try a new whoosh, rising mechanical sound, or descending effect within an existing transition clip.

### Explore mechanical sound design

Replace part of an engine, latch, or machine recording with another take described by its action and recording character.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Stable Audio 3 Small SFX Base Audio Inpainting in other agents

- [Amp](https://spiral.ai/integrations/amp/stable-audio-3-small-sfx-base-audio-inpainting)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/stable-audio-3-small-sfx-base-audio-inpainting)
- [Claude](https://spiral.ai/integrations/claude-desktop/stable-audio-3-small-sfx-base-audio-inpainting)
- [Cline](https://spiral.ai/integrations/cline/stable-audio-3-small-sfx-base-audio-inpainting)
- [Codex](https://spiral.ai/integrations/codex/stable-audio-3-small-sfx-base-audio-inpainting)
- [Cursor](https://spiral.ai/integrations/cursor/stable-audio-3-small-sfx-base-audio-inpainting)
- [Devin](https://spiral.ai/integrations/devin/stable-audio-3-small-sfx-base-audio-inpainting)
- [dots](https://spiral.ai/integrations/dots/stable-audio-3-small-sfx-base-audio-inpainting)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/stable-audio-3-small-sfx-base-audio-inpainting)
- [Gemini](https://spiral.ai/integrations/gemini/stable-audio-3-small-sfx-base-audio-inpainting)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/stable-audio-3-small-sfx-base-audio-inpainting)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/stable-audio-3-small-sfx-base-audio-inpainting)
- [goose](https://spiral.ai/integrations/goose/stable-audio-3-small-sfx-base-audio-inpainting)
- [Grok](https://spiral.ai/integrations/grok/stable-audio-3-small-sfx-base-audio-inpainting)
- [Grok Build](https://spiral.ai/integrations/grok-build/stable-audio-3-small-sfx-base-audio-inpainting)
- [Hermes](https://spiral.ai/integrations/hermes/stable-audio-3-small-sfx-base-audio-inpainting)
- [Instinct](https://spiral.ai/integrations/instinct/stable-audio-3-small-sfx-base-audio-inpainting)
- [Manus](https://spiral.ai/integrations/manus/stable-audio-3-small-sfx-base-audio-inpainting)
- [Muse](https://spiral.ai/integrations/muse/stable-audio-3-small-sfx-base-audio-inpainting)
- [Muse Code](https://spiral.ai/integrations/muse-code/stable-audio-3-small-sfx-base-audio-inpainting)
- [n8n](https://spiral.ai/integrations/n8n/stable-audio-3-small-sfx-base-audio-inpainting)
- [Notion](https://spiral.ai/integrations/notion/stable-audio-3-small-sfx-base-audio-inpainting)
- [OpenClaw](https://spiral.ai/integrations/openclaw/stable-audio-3-small-sfx-base-audio-inpainting)
- [opencode](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-base-audio-inpainting)
- [Perplexity](https://spiral.ai/integrations/perplexity/stable-audio-3-small-sfx-base-audio-inpainting)
- [Raycast](https://spiral.ai/integrations/raycast/stable-audio-3-small-sfx-base-audio-inpainting)
- [VS Code](https://spiral.ai/integrations/vscode/stable-audio-3-small-sfx-base-audio-inpainting)
- [Windsurf](https://spiral.ai/integrations/windsurf/stable-audio-3-small-sfx-base-audio-inpainting)
- [Zapier](https://spiral.ai/integrations/zapier/stable-audio-3-small-sfx-base-audio-inpainting)

## More Claude Code guides

- [Stable Audio 3 Small SFX Audio to Audio](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-audio-to-audio)
- [Stable Audio 3 Small SFX Base Audio Outpainting](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-base-audio-outpainting)
- [Stable Audio 3 Small SFX Audio Outpainting](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-audio-outpainting)
- [Stable Audio 3 Small SFX Base Audio to Audio](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-base-audio-to-audio)
- [Stable Audio 3 Small Music Text to Audio](https://spiral.ai/integrations/claude-code/stable-audio-3-small-music-text-to-audio)
- [Stable Audio 3 Small SFX Base Text to Audio](https://spiral.ai/integrations/claude-code/stable-audio-3-small-sfx-base-text-to-audio)

## Questions about Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code

**Can Claude Code use Stable Audio 3 Small SFX Base Audio Inpainting?**

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

**How much does Stable Audio 3 Small SFX Base Audio Inpainting cost in Claude Code?**

$0.04303 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 Claude Code plan is separate.

**Do I need a fal account to use Stable Audio 3 Small SFX Base Audio Inpainting in Claude Code?**

No. Spiral runs Stable Audio 3 Small SFX Base Audio Inpainting 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 SFX Base Audio Inpainting in Claude Code?**

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

**Does Claude Code wait while Stable Audio 3 Small SFX Base Audio Inpainting runs?**

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

**What can Stable Audio 3 Small SFX Base Audio Inpainting edit?**

It can regenerate a selected passage in an existing sound-effect recording. Use it to try another impact, mechanical sound, ambience passage, or transition while preserving the audio outside the selection.

**How long can the audio be, and what is its sample rate?**

The Small models have a documented limit of two minutes. Stable Audio 3 produces 44.1 kHz stereo audio.

**What should I put in a sound-effect prompt?**

Name the source, describe what happens, and specify the sound's timing or decay. Add details such as microphone distance, room acoustics, or distortion when they matter.

**Why does an edited passage sound almost unchanged?**

A tiny selection can leave so much surrounding context that the model barely changes the sound. Try a broader selection first, then narrow it as you refine the result.

**What does Base mean?**

Base identifies the pre-trained checkpoint that Stability primarily recommends for fine-tuning. Stability directs users seeking direct audio generation toward Stable Audio 3 Small SFX.

