How to Use Stable Audio 3 Small Music Base Audio Inpainting in Gemini
Stable Audio 3 Small Music Base Audio Inpainting replaces selected music sections using text and surrounding audio. Unlike Stable Audio 3 Small Music, it uses the base checkpoint, which Stability AI positions for fine-tuning.
Prompts to try with Stable Audio 3 Small Music Base Audio Inpainting in Gemini
Copy an example into Gemini, or ask in your own words.
Use Stable Audio 3 Small Music Base Audio Inpainting on the 60-second instrumental I provided. Replace seconds 20–35 with warm electric piano and soft jazz drums at 90 BPM.
Use Stable Audio 3 Small Music Base Audio Inpainting to replace seconds 15–30 of my 45-second electronic cue. Aim for a restrained house build at 124 BPM with muted bass and gradually opening synth chords.
Use Stable Audio 3 Small Music Base Audio Inpainting on my 90-second acoustic demo. Rework seconds 40–60 into a delicate fingerpicked guitar passage with a calm mood.
Use Stable Audio 3 Small Music Base Audio Inpainting on my 60-second funk instrumental. Try three different replacements for seconds 20–40: electric piano, clean guitar, and muted brass.
Use Stable Audio 3 Small Music Base Audio Inpainting to soften seconds 10–25 of my 40-second background cue. Ask for sparse piano, gentle pads, and low energy.
How to set up Stable Audio 3 Small Music Base Audio Inpainting in Gemini
Pick the way that suits you. Each takes about two minutes.
Use the Gemini connector
- 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.
- Add Spiral as a custom app
Under Custom apps, click Add a custom app and paste this MCP server URL:
https://api.spiral.ai/mcp
- 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
- Send Gemini 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 Music 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/music/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 Music Base Audio Inpainting on Spiral, shows the price and runs it.
Stable Audio 3 Small Music Base Audio Inpainting providers and prices
Spiral runs Stable Audio 3 Small Music Base Audio Inpainting through fal. Open a card for today's price, with every fee included.
$0.04329 per run at the default inputs.
Settings you can ask for
Stable Audio 3 Small Music Base Audio Inpainting works from your prompt and audio URL. Ask Gemini 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 Music Base Audio Inpainting · Audio Inpainting Small Music Base is on its tool page: open its card above.
What can you do with Stable Audio 3 Small Music Base Audio Inpainting in Gemini?
Explore alternate passages in an existing music recording without replacing the whole track. A chat app can turn a musical idea into a clear edit request that names the instruments, mood, and tempo.
Revise a podcast music break
Replace a busy section of an existing instrumental cue with softer piano and restrained percussion before the narration resumes.
Try a different drum fill
Regenerate a selected passage in a music demo with a new drum fill while preserving the surrounding track.
Rework a game music transition
Edit a section of an existing game cue to explore a shift from sparse ambient music into a more tense passage.
Revise a short video soundtrack
Replace a selected passage in an instrumental soundtrack with a lower energy arrangement for a quieter scene.
Explore a new solo passage
Regenerate part of an instrumental demo with a guitar or keyboard solo described by playing style, mood, and tempo.
Compare alternate music builds
Create several replacements for the same section of a short electronic cue, changing the instruments or energy in each prompt.
More on Stable Audio 3 Small Music Base Audio Inpainting and Gemini
Overview
Stable Audio 3 Small Music Base Audio Inpainting in other agents
Questions about Stable Audio 3 Small Music Base Audio Inpainting in Gemini
Can Gemini use Stable Audio 3 Small Music Base Audio Inpainting?
Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Stable Audio 3 Small Music Base Audio Inpainting like any built-in tool.
How much does Stable Audio 3 Small Music Base Audio Inpainting cost in Gemini?
$0.04329 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 Music Base Audio Inpainting in Gemini?
No. Spiral runs Stable Audio 3 Small Music 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 Music 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 Music Base Audio Inpainting runs?
Stable Audio 3 Small Music Base Audio Inpainting runs in the background. Gemini starts the run, checks on it and gives you the audio when it's ready.
What does audio inpainting change?
Stable Audio 3 Small Music Base Audio Inpainting regenerates a selected section of an existing music recording. Audio outside that section is preserved.
How long can the audio be, and what quality does it produce?
The small music model supports up to two minutes of audio. Stable Audio 3 produces stereo audio at 44.1 kHz.
Can it generate lyrics or spoken dialogue?
Stable Audio 3 does not produce intelligible sung vocals and is not designed for speech generation. Use it for instrumental music edits; vocal textures can still appear.
What should I put in the prompt?
Write in English and describe the desired genre, instruments, mood, and tempo. Explain what the replacement section should sound like, with details such as soft piano, restrained drums, or a tense synth build.
Why did my edit sound almost unchanged?
A very short edit region leaves surrounding audio that can dominate the result. Try a larger section first, then narrow the edit on later passes.
Start using Stable Audio 3 Small Music Base Audio Inpainting in Gemini
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini:
set up https://spiral.ai/SKILL.md


