[Integrations](https://spiral.ai/integrations) › [OpenClaw](https://spiral.ai/integrations/openclaw) › [Stable Audio 3 Small Music Inpainting](https://spiral.ai/integrations/openclaw/stable-audio-3-small-music-inpainting)

# How to Use Stable Audio 3 Small Music Inpainting in OpenClaw

Stable Audio 3 Small Music Inpainting reworks selected sections of instrumental recordings while preserving the surrounding audio. Its music focus suits replacement fills, transitions, and endings in tracks up to two minutes.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Small Music Inpainting |
| Available through | fal |
| Category | Audio |
| Price | $0.0338 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 Music Inpainting in OpenClaw

- Every Monday, use Stable Audio 3 Small Music Inpainting on my designated 60-second instrumental intro. Replace seconds 20 to 35 with a relaxed electric piano passage that fits the surrounding music, and collect the result for review.
- Each Friday, use Stable Audio 3 Small Music Inpainting on my designated 40-second beat. Rework seconds 12 to 20 with a dry, restrained percussion fill that fits the existing rhythm. Use eight sampling steps.
- Every Tuesday, use Stable Audio 3 Small Music Inpainting on my designated 90-second video cue. Replace seconds 45 to 60 with a gradual string build, preserving the music outside that section.
- Each morning, use Stable Audio 3 Small Music Inpainting on my designated 45-second ambient instrumental. Rework seconds 15 to 30 with soft synth pads and sparse piano that fit the surrounding arrangement.
- Every Thursday, use Stable Audio 3 Small Music Inpainting on my designated 75-second instrumental. Replace the final 20 seconds with a quieter acoustic guitar ending and send the take to my review queue.

## How to set up Stable Audio 3 Small Music Inpainting in OpenClaw

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

### Use the Spiral skill

1. **Send OpenClaw 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. **Add the server**: On the machine that runs OpenClaw's Gateway:

```bash
openclaw mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --transport streamable-http \
  --auth oauth
```

2. **Sign in**: In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

```bash
openclaw mcp login spiral
```

3. **Reload and check**: A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

```bash
openclaw mcp reload
openclaw mcp doctor spiral --probe
```

### 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 Music 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/music/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: OpenClaw finds Stable Audio 3 Small Music Inpainting on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/openclaw

## Stable Audio 3 Small Music Inpainting tools and prices

- [Stable Audio 3 Small Music Audio Inpainting · Audio Inpainting Small Music](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/small/music/audio-inpainting) (fal): $0.0338 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 | 8 | Number of sampling steps. Post-trained (distilled) checkpoints look good with the default 8 and gain little from going higher. |
| guidance_scale | 0 to 25 | 1 | Classifier-free guidance scale. Higher values follow the prompt more strictly. Only effective on base (non-distilled) 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 Music Inpainting in OpenClaw?

Prepare alternate edits of short instrumental cues on a recurring schedule. An agent can use Stable Audio 3 Small Music Inpainting to regenerate specified passages and collect the takes for listening review.

### Revise a podcast music intro

Replace a busy passage in an existing instrumental intro with a simpler arrangement, retaining the opening and ending you already like.

### Try replacement drum fills

Regenerate a selected passage in a beat with a different percussion pattern. Compare how each take leads into the unchanged music.

### Rework a video music transition

Replace the passage between two sections of an instrumental cue with a build or quieter transition that fits the surrounding arrangement.

### Revise a game menu cue

Try a less distracting middle passage in an existing game menu track, keeping the sections that already match the scene.

### Explore alternate musical endings

Replace the final section of an instrumental recording with a sparse piano ending, restrained percussion, or a softer synth passage.

### Develop an unfinished instrumental

Regenerate an undecided passage in a short composition to audition different instrumentation and energy before arranging the final track.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All OpenClaw guides](https://spiral.ai/integrations/openclaw)

## Stable Audio 3 Small Music Inpainting in other agents

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

## More OpenClaw guides

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

## Questions about Stable Audio 3 Small Music Inpainting in OpenClaw

**Can OpenClaw use Stable Audio 3 Small Music Inpainting?**

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

**How much does Stable Audio 3 Small Music Inpainting cost in OpenClaw?**

$0.0338 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 OpenClaw plan is separate.

**Do I need a fal account to use Stable Audio 3 Small Music Inpainting in OpenClaw?**

No. Spiral runs Stable Audio 3 Small Music 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 Music Inpainting in OpenClaw?**

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

**Does OpenClaw wait while Stable Audio 3 Small Music Inpainting runs?**

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

**What does Stable Audio 3 Small Music Inpainting do?**

It generates replacement audio inside a selected section of an existing recording while preserving the audio outside that section. Use it to try a different instrumental passage, fill, or transition.

**How long can a track be?**

Stable Audio 3 Small Music supports audio up to 120 seconds. Keep the full edited track within that limit, including the parts you preserve.

**What audio resolution does it produce?**

Stable Audio 3 generates stereo audio at 44.1 kHz.

**Why does my replacement sound almost unchanged?**

The surrounding audio can influence the result more strongly than the prompt, especially when you select only a few seconds. Try a wider replacement section and describe a change that fits the existing music.

**Which language should I use for prompts?**

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

