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

VS Code · Audio

How to Use Stable Audio 3 Medium Base Text to Audio in VS Code

Use Stable Audio 3 Medium Base Text to Audio to create instrumental music from written descriptions. Unlike Stable Audio 3 Medium Base Audio to Audio, it needs no recording to start.

Prompts to try with Stable Audio 3 Medium Base Text to Audio in VS Code

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

Read the game's village scene notes and use Stable Audio 3 Medium Base Text to Audio to create a 45-second instrumental draft with acoustic guitar, soft flute, and a relaxed mood. Use 50 sampling steps.

Stable Audio 3 Medium Base Text to AudioVS Code
Try asking
  • Read the product walkthrough script and use Stable Audio 3 Medium Base Text to Audio to make a 60-second instrumental cue with muted synth chords and restrained percussion. Save it as a draft for review.

  • Use Stable Audio 3 Medium Base Text to Audio to create a 20-second instrumental title cue for this game: low strings, measured percussion, and a tense mood. Use 50 sampling steps and guidance 7.

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

  • Make a calm piano loop with Stable Audio 3 Medium Base Text to Audio for a meditation app.

How to set up Stable Audio 3 Medium Base Text to Audio in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code 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 Medium Base Text 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-3/medium/base/text-to-audio",
        "input": {
          "prompt": "An anthemic Pop Rock instrumental that fills your head with nostalgic thoughtfulness"
        }
      }'

Then paste one of the prompts above: VS Code finds Stable Audio 3 Medium Base Text to Audio on Spiral, shows the price and runs it.

Stable Audio 3 Medium Base Text to Audio providers and prices

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

falAudio
Stable Audio 3 Medium Base · Text to Audio
fal-ai/stable-audio-3/medium/base/text-to-audio

Settings you can ask for

Stable Audio 3 Medium Base Text to Audio works from your prompt. Ask VS Code 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.

Duration1 to 38030

Duration of the generated audio in seconds. The medium model supports up to 380 seconds (~6m20s).

Number of inference steps1 to 10050

Number of sampling steps. Base (non-distilled) checkpoints typically need ~50 for good quality.

Guidance scale0 to 257

Classifier-free guidance scale. Higher values follow the prompt more strictly; ~7.0 is a good starting point for base 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.

Every API field of Stable Audio 3 Medium Base · Text to Audio is on its tool page: open its card above.

What can you do with Stable Audio 3 Medium Base Text to Audio in VS Code?

Build instrumental audio drafts for game scenes, demos, and other project assets with Stable Audio 3 Medium Base. Use the project's creative brief to define the sound and review each result before adding it.

Podcast background music

Create or restyle a restrained instrumental bed with sparse piano, soft bass, and room for narration.

Product demo soundtracks

Develop a short instrumental cue for a walkthrough. Describe the instruments, pace, and energy the demonstration needs.

Game scene music drafts

Explore instrumental directions for a quiet village, tense corridor, or victory scene before selecting music for the game.

Short film score sketches

Draft a musical mood for a scene, using a written brief or an existing recording as the starting point.

Composing from a written brief

Turn a description of genre, instrumentation, and mood into an instrumental draft without supplying a recording.

Questions about Stable Audio 3 Medium Base Text to Audio in VS Code

Can VS Code use Stable Audio 3 Medium Base Text to Audio?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Stable Audio 3 Medium Base Text to Audio like any built-in tool.

How much does Stable Audio 3 Medium Base Text to Audio cost in VS Code?

$0.06227 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 VS Code plan is separate.

Do I need a fal account to use Stable Audio 3 Medium Base Text to Audio in VS Code?

No. Spiral runs Stable Audio 3 Medium Base Text 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 3 Medium Base Text to Audio in VS Code?

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

Does VS Code wait while Stable Audio 3 Medium Base Text to Audio runs?

Stable Audio 3 Medium Base Text to Audio runs in the background. VS Code starts the run, checks on it and gives you the audio when it's ready.

How long can Stable Audio 3 Medium Base audio be?

Up to 380 seconds, or 6 minutes and 20 seconds. Use a short clip for a short cue instead of requesting a full-length track.

Can Stable Audio 3 Medium Base sing lyrics?

It does not produce intelligible vocals. Vocal-like textures can still appear, so use it for instrumental work rather than songs that require understandable lyrics.

What does Base mean in Stable Audio 3 Medium Base?

It identifies the pretrained checkpoint intended for fine-tuning. Stability AI recommends the post-trained Stable Audio 3 Medium for direct generation; use roughly 50 sampling steps when generating with Base.

What audio quality does Stable Audio 3 Medium Base produce?

The underlying audio system uses stereo at 44.1 kHz. That describes the audio channels and sample rate, rather than guaranteeing that every generated track will sound finished.

Which language should I use for descriptions?

Use English as the documented starting point. The Medium Base model card lists English and does not establish reliable support for other prompt languages.

Get started

Start using Stable Audio 3 Medium Base Text to Audio in VS Code

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

Paste this into VS Code:

Set up VS Code

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