How to Use Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI
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.
Prompts to try with Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
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 Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Stable Audio 3 Small SFX 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/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 CLI finds Stable Audio 3 Small SFX Base Audio Inpainting on Spiral, shows the price and runs it.
Stable Audio 3 Small SFX Base Audio Inpainting providers and prices
Spiral runs Stable Audio 3 Small SFX Base Audio Inpainting through fal. Open a card for today's price, with every fee included.
$0.04303 per run at the default inputs.
Settings you can ask for
Stable Audio 3 Small SFX Base Audio Inpainting works from your prompt and audio URL. Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Negative prompt | what to leave out, in words | Text description of qualities to avoid in the output. | |
| Number of 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 | a whole number | Random seed for reproducible outputs. Omit for a random seed. | |
| Enable prompt expansion | on or off | off | 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, or aac | mp3 | Container format for the generated audio output. |
| Mask start seconds | 0 to 120 | Start of the region to regenerate, in seconds. | |
| Mask end seconds | 0 to 120 | End of the region to regenerate, in seconds. |
Every API field of Stable Audio 3 Small SFX Base Audio Inpainting · Audio Inpainting Small SFX Base is on its tool page: open its card above.
What can you do with Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI?
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.
More on Stable Audio 3 Small SFX Base Audio Inpainting and Gemini CLI
Overview
Stable Audio 3 Small SFX Base Audio Inpainting in other agents
Questions about Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI
Can Gemini CLI use Stable Audio 3 Small SFX Base Audio Inpainting?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI 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 CLI?
$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 CLI plan is separate.
Do I need a fal account to use Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI?
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 CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Stable Audio 3 Small SFX Base Audio Inpainting runs?
Stable Audio 3 Small SFX Base Audio Inpainting runs in the background. Gemini CLI 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.
Start using Stable Audio 3 Small SFX Base Audio Inpainting in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


