How to Use Stable Audio 3 Small Music Base Audio Outpainting in opencode
Stable Audio 3 Small Music Base Audio Outpainting extends existing music with text-guided continuation. Unlike Stable Audio 3 Small Music, it uses the pre-trained checkpoint intended for fine-tuning, with guidance and negative prompts available to shape results.
Prompts to try with Stable Audio 3 Small Music Base Audio Outpainting in opencode
Copy an example into opencode, or ask in your own words.
Use Stable Audio 3 Small Music Base Audio Outpainting to extend assets/audio/menu.wav from 30 to 45 seconds. Request the same soft piano and restrained ambient synths, then save a candidate for review.
Read the video timing notes and use Stable Audio 3 Small Music Base Audio Outpainting to add 10 seconds to the 40-second demo cue. Ask for the existing rhythm and instrumentation to continue beneath the closing screen.
Use Stable Audio 3 Small Music Base Audio Outpainting on the project's 20-second guitar sketch. Add a 15-second fingerpicked continuation with the same intimate room sound, using about 50 sampling steps.
Use Stable Audio 3 Small Music Base Audio Outpainting to continue the 45-second exploration cue for 20 more seconds. Request sparse strings and low piano, and add a review note to check the transition.
Use Stable Audio 3 Small Music Base Audio Outpainting to make three candidate 10-second endings for assets/audio/outro.wav, which is 30 seconds long. Request a quieter continuation of its electric piano and brushed drums.
How to set up Stable Audio 3 Small Music Base Audio Outpainting in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Outpainting
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-outpainting", "input": { "prompt": "soft strings continue the melody", "audio_url": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav" } }'
Then paste one of the prompts above: opencode finds Stable Audio 3 Small Music Base Audio Outpainting on Spiral, shows the price and runs it.
Stable Audio 3 Small Music Base Audio Outpainting providers and prices
Spiral runs Stable Audio 3 Small Music Base Audio Outpainting through fal. Open a card for today's price, with every fee included.
$0.04407 per run at the default inputs.
Settings you can ask for
Stable Audio 3 Small Music Base Audio Outpainting works from your prompt and audio URL. Ask opencode 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. |
| Extend seconds before | 0 to 120 | 0 | Seconds of new audio to generate before the source audio. |
| Extend seconds after | 0 to 120 | 0 | Seconds of new audio to generate after the source audio. |
Every API field of Stable Audio 3 Small Music Base Audio Outpainting · Audio Outpainting Small Music Base is on its tool page: open its card above.
What can you do with Stable Audio 3 Small Music Base Audio Outpainting in opencode?
Extend music assets for a game's scene or a project's video edit. A coding agent can use project timing notes to draft a continuation request and keep candidate takes organized.
Cover extra video footage
Extend an existing instrumental cue to cover a few more shots. Ask for the same instrumentation and energy, then review the join against the picture.
Try a podcast outro
Continue a short music bed into a quieter closing passage for credits. Describe the instruments that should carry the ending.
Lengthen a game music cue
Add another passage to an exploration or menu cue. Request a restrained continuation that fits the source rather than a sudden change of genre.
Develop a composition sketch
Use a short instrumental idea as the starting point for a possible next phrase. Compare takes for musical direction before arranging the piece further.
Extend a solo instrument passage
Continue a guitar or piano recording with a request for matching playing technique and room sound. Treat the result as a take to audition.
Hold a film scene's mood
Continue an ambient score beneath a lingering final shot. Describe a sparse arrangement and the source's existing texture to guide the added passage.
More on Stable Audio 3 Small Music Base Audio Outpainting and opencode
Overview
Stable Audio 3 Small Music Base Audio Outpainting in other agents
Questions about Stable Audio 3 Small Music Base Audio Outpainting in opencode
Can opencode use Stable Audio 3 Small Music Base Audio Outpainting?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Stable Audio 3 Small Music Base Audio Outpainting like any built-in tool.
How much does Stable Audio 3 Small Music Base Audio Outpainting cost in opencode?
$0.04407 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 opencode plan is separate.
Do I need a fal account to use Stable Audio 3 Small Music Base Audio Outpainting in opencode?
No. Spiral runs Stable Audio 3 Small Music Base Audio Outpainting 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 Outpainting in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Stable Audio 3 Small Music Base Audio Outpainting runs?
Stable Audio 3 Small Music Base Audio Outpainting runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.
What is audio outpainting useful for?
It adds a continuation to an existing recording. Use it to try a longer instrumental passage, an outro, or extra background music for an edit.
How long can Stable Audio 3 Small generate?
Stability AI documents up to two minutes for Small. Keep the source and requested continuation within that length when planning a short music edit.
Can it sing lyrics or generate narration?
Stable Audio 3 is intended for instrumental work rather than intelligible singing or speech. Vocal-like sounds can still appear, so listen for them when reviewing instrumental takes.
How should I describe a continuation?
Write in English and describe the genre, instruments, rhythm, mood, and production sound. Keep the requested change musically plausible for the source recording.
What does Base mean?
It identifies the pre-trained checkpoint that Stability AI intended for fine-tuning. Stability AI recommends Stable Audio 3 Small Music for direct generation; the base checkpoint typically needs around 50 sampling steps.
Start using Stable Audio 3 Small Music Base Audio Outpainting in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


