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

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

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 Gemini

- Use Stable Audio 3 Small SFX Base Audio Inpainting on the audio I provided. Replace seconds 2 through 6 with a wooden drawer sliding shut and landing with a heavy thud, recorded close up in a quiet room.
- Use Stable Audio 3 Small SFX Base Audio Inpainting to rework seconds 5 through 13 of my rain recording. I want larger drops hitting a metal surface, with a sheltered microphone perspective.
- Use Stable Audio 3 Small SFX Base Audio Inpainting on my sound-effect clip. Replace seconds 1 through 5 with a metallic latch snapping shut, followed by a short rattle. Use about 50 sampling steps.
- Use Stable Audio 3 Small SFX Base Audio Inpainting to replace seconds 4 through 10 of the supplied transition. Make a low air rush that rises in pitch and ends with a dry impact.
- Use Stable Audio 3 Small SFX Base Audio Inpainting on my engine recording. Rework seconds 6 through 15 as an uneven idle settling into a steady mechanical hum, heard from a few feet away.

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

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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: Gemini 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/gemini

## 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 Gemini?

Turn a description of the sound you want into a new take for a selected audio passage. A chat agent can help make the request concrete by specifying the source, action, and recording character 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 Gemini guides](https://spiral.ai/integrations/gemini)

## 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)
- [Claude Code](https://spiral.ai/integrations/claude-code/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 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 Gemini guides

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

## Questions about Stable Audio 3 Small SFX Base Audio Inpainting in Gemini

**Can Gemini use Stable Audio 3 Small SFX Base Audio Inpainting?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini 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 Gemini?**

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

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

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 Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

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

Stable Audio 3 Small SFX Base Audio Inpainting runs in the background. Gemini 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.

