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

opencode · AudioReleased 2025-09-10

How to Use Stable Audio 2.5 Audio to Audio in opencode

Stable Audio 2.5 Audio to Audio restyles an existing recording using a description of the sound you want. Unlike Stable Audio 2.5 Inpaint, it reworks the clip as a whole, with strength controlling how far it moves from the source.

Prompts to try with Stable Audio 2.5 Audio to Audio in opencode

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

Use Stable Audio 2.5 Audio to Audio on the project's 30-second menu demo. Target warm electric piano, brushed drums, and a reflective jazz mood; start with strength 0.7.

Stable Audio 2.5 Audio to Audioopencode
Try asking
  • Use Stable Audio 2.5 Audio to Audio on the project's 45-second acoustic demo. Target vintage synthesizers, a drum machine, and a patient electronic groove; compare strength 0.65 and 0.85.

  • Compose a 30-second upbeat lo-fi track with Stable Audio 2.5 Audio to Audio for a product video. Save the result in ./assets.

  • Make a calm piano loop with Stable Audio 2.5 Audio to Audio for a meditation app.

  • Create a cinematic 20-second intro sting with Stable Audio 2.5 Audio to Audio.

How to set up Stable Audio 2.5 Audio to Audio in opencode

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

Use Spiral's MCP server

  1. 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
  2. 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
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 2.5 Audio to Audio

    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-25/audio-to-audio",
        "input": {
          "prompt": "Post rock, guitars, bass, strings, euphoric, up-lifting, moody, flowing, raw, epic",
          "audio_url": "https://v3.fal.media/files/panda/1-0iezBUIePBa3Sz5YY5B_tmpy1jyshw9.wav"
        }
      }'

Then paste one of the prompts above: opencode finds Stable Audio 2.5 Audio to Audio on Spiral, shows the price and runs it.

Stable Audio 2.5 Audio to Audio providers and prices

Spiral runs Stable Audio 2.5 Audio to Audio through fal. Open a card for today's price, with every fee included.

falAudio
Stable Audio 2.5 · Audio to Audio
fal-ai/stable-audio-25/audio-to-audio

Settings you can ask for

Stable Audio 2.5 Audio to Audio works from your prompt and audio URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Strength0.01 to 10.8

Sometimes referred to as denoising, this parameter controls how much influence the audio_url parameter has on the generated audio. A value of 0 would yield audio that is identical to the input. A value of 1 would be as if you passed in no audio at all.

Number of inference steps4 to 88

The number of steps to denoise the audio for

Total seconds1 to 190

The duration of the audio clip to generate. If not provided, it will be set to the duration of the input audio.

Guidance scale1 to 251

How strictly the diffusion process adheres to the prompt text (higher values make your audio closer to your prompt).

Seeda whole number

Every API field of Stable Audio 2.5 · Audio to Audio is on its tool page: open its card above.

What can you do with Stable Audio 2.5 Audio to Audio in opencode?

Turn a project's creative brief into soundtrack drafts, alternate treatments, or revised passages with Stable Audio 2.5. A coding agent can use scene descriptions and existing audio assets to prepare concrete musical directions for review.

Music for short ads

Draft a cue from a brief, restyle an existing recording, or regenerate a passage for a different edit. Describe the instruments and mood that should support the product.

Game menu music

Develop a restrained instrumental cue for a title screen. Start from a written direction, reinterpret a demo, or revise a section of an existing cue.

Boss battle scoring

Explore percussion, bass, and orchestral or electronic instrumentation for a combat cue. Generate a first take, restyle a recording, or replace a passage that needs a different energy level.

Short video soundtracks

Create a musical direction for a travel film, product demonstration, or opening sequence. Use text for a first draft, source audio for reinterpretation, or inpainting for a revised continuation.

Podcast intro and outro cues

Develop brief instrumental openings and endings with a clear mood and instrument palette. Draft from text, restyle a recorded theme, or regenerate its closing passage.

Reinterpret a recorded demo

Use an existing recording as the starting point for a different instrumental treatment. Adjust strength to balance recognizable source material with a larger stylistic change.

Questions about Stable Audio 2.5 Audio to Audio in opencode

Can opencode use Stable Audio 2.5 Audio to Audio?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Stable Audio 2.5 Audio to Audio like any built-in tool.

How much does Stable Audio 2.5 Audio to Audio cost in opencode?

$0.26 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 2.5 Audio to Audio in opencode?

No. Spiral runs Stable Audio 2.5 Audio to Audio 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 2.5 Audio to Audio in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Stable Audio 2.5 Audio to Audio runs?

Stable Audio 2.5 Audio to Audio runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.

How long can Stable Audio 2.5 audio be?

A single output can run up to 190 seconds, or 3 minutes 10 seconds. Plan longer productions as separate cues.

What audio quality does Stable Audio 2.5 produce?

Stable Audio 2.5 produces 44.1 kHz stereo audio. That describes the sample rate and channels; listen to each result before choosing a production take.

What should I include in a Stable Audio 2.5 prompt?

Describe the genre, instruments, mood, and tempo, then add texture such as soft percussion or a dry guitar recording. Give it a concrete musical target instead of a broad request like background music.

Can Stable Audio 2.5 make music that develops over time?

Yes. Stability describes improved support for compositions with an introduction, development, and outro, so it is useful for cues that need an arc rather than one repeating section.

Why does my Stable Audio 2.5 result miss the sound I wanted?

Make the acoustic description more specific: name the instruments, musical style, mood, and texture. Treat each result as a draft and refine the description around what you hear.

Get started

Start using Stable Audio 2.5 Audio to Audio in opencode

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

Paste this into opencode:

Set up opencode

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