[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Stable Audio 3 Medium Text to Audio](https://spiral.ai/integrations/claude-code/stable-audio-3-medium-text-to-audio)

# How to Use Stable Audio 3 Medium Text to Audio in Claude Code

Stable Audio 3 Medium Text to Audio creates instrumental music and sound effects from written descriptions. Unlike Stable Audio 3 Medium Audio to Audio, it needs no source recording and suits drafting new cues, instrument parts, and effects.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Medium Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.04888 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 Medium Text to Audio in Claude Code

- Read the game's forest scene description and use Stable Audio 3 Medium Text to Audio to create a 60-second exploration cue: ambient instrumental, soft marimba, low strings, calm curiosity, and a spacious recording.
- Use Stable Audio 3 Medium Text to Audio to make a 3-second confirmation sound for this app: two rounded wooden notes, a soft attack, and a short dry decay.
- Read the trailer brief and use Stable Audio 3 Medium Text to Audio to draft a 30-second instrumental cue with muted piano, pulsing bass, restrained drums, and rising tension.
- Use Stable Audio 3 Medium Text to Audio to create a 20-second solo electric bass idea for the rhythm game: fingerstyle funk, 100 BPM, dry studio sound, and syncopated phrasing.
- Compose a 30-second upbeat lo-fi track with Stable Audio 3 Medium Text to Audio for a product video. Save the result in ./assets.

## How to set up Stable Audio 3 Medium Text to Audio in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

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

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Stable Audio 3 Medium Text to Audio tools and prices

- [Stable Audio 3 Medium · Text to Audio](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/medium/text-to-audio) (fal): $0.04888 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 380 | 30 | Duration of the generated audio in seconds. The medium model supports up to 380 seconds (~6m20s). |
| num_inference_steps | 1 to 100 | 8 | Number of sampling steps. Post-trained (distilled) checkpoints look good with the default 8 and gain little from going higher. |
| guidance_scale | 0 to 25 | 1 | Classifier-free guidance scale. Higher values follow the prompt more strictly. Only effective on base (non-distilled) 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 Medium Text to Audio in Claude Code?

Create music cues and sound effects for games, apps, and interactive projects while working on their code. Turn scene descriptions and audio briefs into focused requests with appropriate durations.

### Podcast background music

Create a restrained instrumental bed with sparse percussion and a clear mood, then audition it beneath narration.

### Game scene music

Draft ambient exploration cues, tense encounter music, or quiet menu tracks with a defined instrument palette.

### Video music sketches

Explore instrumental directions for a rough cut by specifying mood, tempo, instrumentation, and the required cue length.

### Solo instrument ideas

Request a bass phrase, guitar texture, or percussion part as material to audition and edit in a composition.

### Short sound effects

Create impacts, mechanical sounds, and transition effects with specific sources, actions, and decay characteristics.

### Ambient sound design

Develop sustained drones and atmospheric textures for film scenes, installations, or game environments.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Stable Audio 3 Medium Text to Audio in other agents

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

## More Claude Code guides

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

## Questions about Stable Audio 3 Medium Text to Audio in Claude Code

**Can Claude Code use Stable Audio 3 Medium Text to Audio?**

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

**How much does Stable Audio 3 Medium Text to Audio cost in Claude Code?**

$0.04888 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 Claude Code plan is separate.

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

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

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

**Does Claude Code wait while Stable Audio 3 Medium Text to Audio runs?**

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

**What is Stable Audio 3 Medium good at?**

Instrumental music, ambient backgrounds, individual instrument parts, and sound effects. Useful briefs include a restrained podcast bed, a solo guitar phrase, or a short impact sound.

**How long can Stable Audio 3 Medium audio be?**

Up to 380 seconds, or 6 minutes and 20 seconds. Match the duration to the material: a brief sound effect usually needs much less time than an instrumental track.

**Can Stable Audio 3 Medium sing lyrics or create a voice-over?**

It is intended for instrumental music and sound effects, not intelligible singing or speech. You may still hear wordless vocal-like textures.

**What should I put in a Stable Audio 3 Medium prompt?**

Describe the genre, main instruments, mood, tempo, and recording character. For sound effects, describe the sound source, action, decay, and acoustic space.

**Which prompt language works best?**

Use English. The model was trained on English descriptions, and the maker warns that other languages underperform.

