[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Stable Audio 3 Small Music Base Text to Audio](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-base-text-to-audio)

# How to Use Stable Audio 3 Small Music Base Text to Audio in VS Code

Create instrumental music up to two minutes long from a written brief. Unlike Stable Audio 3 Small Music Base Audio to Audio, it starts without a recording; Stability AI positions Base as a checkpoint for fine-tuning.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Small Music Base Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.03653 per run at the default inputs. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Stable Audio 3 Small Music Base Text to Audio in VS Code

- Read the game's menu design notes and use Stable Audio 3 Small Music Base Text to Audio to create a 90-second instrumental cue: quiet analog synths, sparse piano, reflective mood, 80 BPM.
- Use Stable Audio 3 Small Music Base Text to Audio to make a 45-second soundtrack for the product walkthrough described in the README: light electronic instrumental, muted percussion, warm bass, calm confidence, 100 BPM.
- Review the project's trailer brief and use Stable Audio 3 Small Music Base Text to Audio to draft 60 seconds of tense instrumental music with low strings, restrained percussion, and a steady 90 BPM pulse.
- Compose a 30-second upbeat lo-fi track with Stable Audio 3 Small Music Base Text to Audio for a product video. Save the result in ./assets.
- Make a calm piano loop with Stable Audio 3 Small Music Base Text to Audio for a meditation app.

## How to set up Stable Audio 3 Small Music 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:

```bash
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.

```bash
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 Base Text to Audio**: One request; the result comes back by polling or a webhook.

```bash
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/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 Small Music Base Text to Audio on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## Stable Audio 3 Small Music Base Text to Audio tools and prices

- [Stable Audio 3 Small Music Base · Text to Audio](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/small/music/base/text-to-audio) (fal): $0.03653 per run at the default inputs.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | Text description of qualities to avoid in the output. |
| duration | 1 to 120 | 30 | Duration of the generated audio in seconds. |
| num_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 |  | — | Random seed for reproducible outputs. Omit for a random seed. |
| enable_prompt_expansion |  | false | If True, the prompt will be expanded using an LLM for more detailed and higher quality results. |

## What can you do with Stable Audio 3 Small Music Base Text to Audio in VS Code?

Create instrumental music drafts for games, demos, and recorded walkthroughs from the project's creative brief. A coding agent can turn scene descriptions into specific music requests and organize cues up to two minutes long.

### Podcast background music

Draft a restrained instrumental bed under spoken audio, either from a written brief or by restyling a supplied music recording. Try soft piano, sparse percussion, and low energy.

### Product demo soundtracks

Create a 30- to 60-second instrumental cue for a screen recording. Start with a music brief or an existing recording, and describe the desired instruments and energy.

### Game menu music

Explore up to two minutes of instrumental music for a game's menu or lobby. Generate from a description or use a supplied recording as the starting point; audition the result against the scene.

### Short film score sketches

Test a scene's musical direction before recording a score. Describe a tense string arrangement or quiet piano cue, or restyle a supplied music sketch toward that direction.

### Presentation music

Prepare a short instrumental cue for an opening slide or recorded presentation. Work from a written description or supplied music, keeping the arrangement sparse enough to audition alongside narration.

### Music direction comparisons

Compare jazz, electronic, and acoustic treatments of a creative brief. Generate separate text-based drafts or apply each direction to the same supplied recording.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Stable Audio 3 Small Music Base Text to Audio in other agents

- [Amp](https://spiral.ai/integrations/amp/stable-audio-3-small-music-base-text-to-audio)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/stable-audio-3-small-music-base-text-to-audio)
- [Claude](https://spiral.ai/integrations/claude-desktop/stable-audio-3-small-music-base-text-to-audio)
- [Claude Code](https://spiral.ai/integrations/claude-code/stable-audio-3-small-music-base-text-to-audio)
- [Cline](https://spiral.ai/integrations/cline/stable-audio-3-small-music-base-text-to-audio)
- [Codex](https://spiral.ai/integrations/codex/stable-audio-3-small-music-base-text-to-audio)
- [Cursor](https://spiral.ai/integrations/cursor/stable-audio-3-small-music-base-text-to-audio)
- [Devin](https://spiral.ai/integrations/devin/stable-audio-3-small-music-base-text-to-audio)
- [dots](https://spiral.ai/integrations/dots/stable-audio-3-small-music-base-text-to-audio)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/stable-audio-3-small-music-base-text-to-audio)
- [Gemini](https://spiral.ai/integrations/gemini/stable-audio-3-small-music-base-text-to-audio)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/stable-audio-3-small-music-base-text-to-audio)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/stable-audio-3-small-music-base-text-to-audio)
- [goose](https://spiral.ai/integrations/goose/stable-audio-3-small-music-base-text-to-audio)
- [Grok](https://spiral.ai/integrations/grok/stable-audio-3-small-music-base-text-to-audio)
- [Grok Build](https://spiral.ai/integrations/grok-build/stable-audio-3-small-music-base-text-to-audio)
- [Hermes](https://spiral.ai/integrations/hermes/stable-audio-3-small-music-base-text-to-audio)
- [Instinct](https://spiral.ai/integrations/instinct/stable-audio-3-small-music-base-text-to-audio)
- [Manus](https://spiral.ai/integrations/manus/stable-audio-3-small-music-base-text-to-audio)
- [Muse](https://spiral.ai/integrations/muse/stable-audio-3-small-music-base-text-to-audio)
- [Muse Code](https://spiral.ai/integrations/muse-code/stable-audio-3-small-music-base-text-to-audio)
- [n8n](https://spiral.ai/integrations/n8n/stable-audio-3-small-music-base-text-to-audio)
- [Notion](https://spiral.ai/integrations/notion/stable-audio-3-small-music-base-text-to-audio)
- [OpenClaw](https://spiral.ai/integrations/openclaw/stable-audio-3-small-music-base-text-to-audio)
- [opencode](https://spiral.ai/integrations/opencode/stable-audio-3-small-music-base-text-to-audio)
- [Perplexity](https://spiral.ai/integrations/perplexity/stable-audio-3-small-music-base-text-to-audio)
- [Raycast](https://spiral.ai/integrations/raycast/stable-audio-3-small-music-base-text-to-audio)
- [Windsurf](https://spiral.ai/integrations/windsurf/stable-audio-3-small-music-base-text-to-audio)
- [Zapier](https://spiral.ai/integrations/zapier/stable-audio-3-small-music-base-text-to-audio)

## More VS Code guides

- [Stable Audio 3 Small Music Base Audio to Audio](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-base-audio-to-audio)
- [Stable Audio 3 Small Music Inpainting](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-inpainting)
- [Stable Audio 3 Small Music Base Audio Outpainting](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-base-audio-outpainting)
- [Stable Audio 3 Small Music Outpainting](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-outpainting)
- [Stable Audio 3 Small Music Base Audio Inpainting](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-base-audio-inpainting)
- [Stable Audio 3 Small Music Text to Audio](https://spiral.ai/integrations/vscode/stable-audio-3-small-music-text-to-audio)

## Questions about Stable Audio 3 Small Music Base Text to Audio in VS Code

**Can VS Code use Stable Audio 3 Small Music Base Text to Audio?**

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

**How much does Stable Audio 3 Small Music Base Text to Audio cost in VS Code?**

$0.03653 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 Small Music Base Text to Audio in VS Code?**

No. Spiral runs Stable Audio 3 Small Music 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 Small Music 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 Small Music Base Text to Audio runs?**

Stable Audio 3 Small Music 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.

**What is Stable Audio 3 Small Music Base useful for?**

Use it to explore instrumental music ideas for video, podcasts, games, and demos, with clips up to two minutes long. Base is the pretrained checkpoint that Stability AI positions for fine-tuning.

**How long can the music be?**

Stable Audio 3 Small Music Base supports music up to 120 seconds long. Keep each requested cue within that limit.

**Can it sing lyrics or record narration?**

Stable Audio 3 is intended for instrumental audio, and it is not designed for voice generation. Its prompting guide warns that vocal sounds can be unintelligible, so use it for the music underneath speech.

**What should I include in a music prompt?**

Describe the genre, instruments, mood, energy, and desired tempo in BPM. For example: mellow jazz instrumental, brushed drums, upright bass, soft piano, restrained energy, 85 BPM.

**Which generation settings deserve attention?**

Start around 50 sampling steps and guidance 7 for Stable Audio 3 Small Music Base. Higher guidance follows the written description more strictly; compare the results by listening.

