Spiral gives your agent every tool with one account. Browse the tools →

Google Antigravity · Audio

How to Use Stable Audio 3 Small Music Inpainting in Google Antigravity

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.

Prompts to try with Stable Audio 3 Small Music Inpainting in Google Antigravity

Copy an example into Google Antigravity, or ask in your own words.

Use Stable Audio 3 Small Music Inpainting on assets/audio/menu.wav, a 60-second instrumental. Replace seconds 20 to 36 with restrained electric piano and soft bass that fit the surrounding music, and save the result beside the original.

Stable Audio 3 Small Music InpaintingGoogle Antigravity
Try asking
  • Use Stable Audio 3 Small Music Inpainting on the 30-second intro in assets/audio/intro.wav. Rework seconds 8 to 16 as a sparse acoustic guitar passage with gentle fingerpicking. Preserve the rest and add the result to the audio preview page.

  • Use Stable Audio 3 Small Music Inpainting on assets/audio/trailer.wav, a 90-second instrumental. Replace seconds 40 to 56 with a rising string passage that fits the existing cue. Save an alternate take for review.

  • Use Stable Audio 3 Small Music Inpainting on assets/audio/beat.wav, a 40-second track. Rework seconds 12 to 20 with tight kick drums and dry snare fills that match the surrounding beat. Keep eight sampling steps.

  • Use Stable Audio 3 Small Music Inpainting on assets/audio/outro.wav, a 45-second instrumental. Replace seconds 30 to 45 with a quiet piano ending that fits the earlier music, and retain both versions in the project.

How to set up Stable Audio 3 Small Music Inpainting in Google Antigravity

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

Use Spiral's MCP server

  1. Open the MCP config

    * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.

  2. Add the server

    Add Spiral under mcpServers:

    {
      "mcpServers": {
        "spiral": {
          "serverUrl": "https://api.spiral.ai/mcp"
        }
      }
    }
  3. Sign in

    In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

Use the Spiral skill

  1. Send Google Antigravity 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.

    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.

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

Stable Audio 3 Small Music Inpainting providers and prices

Spiral runs Stable Audio 3 Small Music Inpainting through fal. Open a card for today's price, with every fee included.

falAudio
Stable Audio 3 Small Music Audio Inpainting · Audio Inpainting Small Music
fal-ai/stable-audio-3/small/music/audio-inpainting

Settings you can ask for

Stable Audio 3 Small Music Inpainting works from your prompt and audio URL. Ask Google Antigravity for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Text description of qualities to avoid in the output.

Number of inference steps1 to 1008

Number of sampling steps. Post-trained (distilled) checkpoints look good with the default 8 and gain little from going higher.

Guidance scale0 to 251

Classifier-free guidance scale. Higher values follow the prompt more strictly. Only effective on base (non-distilled) checkpoints.

Seeda whole number

Random seed for reproducible outputs. Omit for a random seed.

Enable prompt expansionon or offoff

If True, the prompt will be expanded using an LLM for more detailed and higher quality results.

Output formatmp3, wav, flac, ogg, opus, m4a, or aacmp3

Container format for the generated audio output.

Mask start seconds0 to 120

Start of the region to regenerate, in seconds.

Mask end seconds0 to 120

End of the region to regenerate, in seconds.

Every API field of Stable Audio 3 Small Music Audio Inpainting · Audio Inpainting Small Music is on its tool page: open its card above.

What can you do with Stable Audio 3 Small Music Inpainting in Google Antigravity?

Revise instrumental assets in your project without regenerating an entire cue. An agent can use Stable Audio 3 Small Music Inpainting to audition replacement passages and organize the results beside the original.

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.

Questions about Stable Audio 3 Small Music Inpainting in Google Antigravity

Can Google Antigravity use Stable Audio 3 Small Music Inpainting?

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

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

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

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 Google Antigravity?

About two minutes: open the MCP config, then add the server, then sign in.

Does Google Antigravity wait while Stable Audio 3 Small Music Inpainting runs?

Stable Audio 3 Small Music Inpainting runs in the background. Google Antigravity 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.

Get started

Start using Stable Audio 3 Small Music Inpainting in Google Antigravity

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Google Antigravity:

Set up Google Antigravity

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options