[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Stable Audio 3 Small Music Text to Audio](https://spiral.ai/integrations/muse-code/stable-audio-3-small-music-text-to-audio)

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

Stable Audio 3 Small Music Text to Audio creates stereo music up to two minutes long from a written description. Unlike Stable Audio 3 Small Music Audio to Audio, it starts without a recording, making it useful for drafting instrumental cues.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Small Music Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.02821 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 Text to Audio in Muse Code

- Read the game's menu brief and use Stable Audio 3 Small Music Text to Audio to create a 45-second instrumental: soft electric piano, rounded bass, brushed drums, relaxed mood, 80 BPM.
- Use Stable Audio 3 Small Music Text to Audio to draft a 30-second backing track for the product demo described in this repository: muted guitar, light percussion, steady energy, 100 BPM, instrumental.
- Read the village scene notes and use Stable Audio 3 Small Music Text to Audio to create a 60-second acoustic instrumental with delicate fingerpicked guitar, soft flute, and a peaceful mood.
- Compose a 30-second upbeat lo-fi track with Stable Audio 3 Small Music Text to Audio for a product video. Save the result in ./assets.
- Make a calm piano loop with Stable Audio 3 Small Music Text to Audio for a meditation app.

## How to set up Stable Audio 3 Small Music Text to Audio in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

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

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

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

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

- [Stable Audio 3 Small Music · Text to Audio](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/small/music/text-to-audio) (fal): $0.02821 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 | 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 Small Music Text to Audio in Muse Code?

Draft instrumental music for game scenes, product demos, and prototypes directly from project briefs. A coding agent can turn those briefs into English music descriptions and keep each cue within two minutes.

### Podcast intro music

Draft a short instrumental opening with a clear musical identity. Start from a written brief or rework an existing intro recording.

### Game menu scores

Explore instrumental music for a puzzle menu, quiet village, or tense mission screen. Create a fresh cue or restyle a reference recording.

### Product video backing tracks

Draft a 30-second instrumental for a product demonstration. Describe the instruments and energy, using an existing music draft when available.

### Short film score sketches

Try musical directions for a scene before committing to an arrangement. Compare sparse piano, acoustic guitar, and synth-led treatments.

### Solo instrument studies

Explore a single instrument's playing style and recording character. Generate a new part or use a recording as the starting point.

## Overview

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

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

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

## More Muse Code guides

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

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

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

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

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

$0.02821 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 Muse Code plan is separate.

**Do I need a fal account to use Stable Audio 3 Small Music Text to Audio in Muse Code?**

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

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Stable Audio 3 Small Music Text to Audio runs?**

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

**How long can Stable Audio 3 Small Music tracks be?**

Tracks can be up to two minutes long. Keep individual cues within that limit.

**Can Stable Audio 3 Small Music generate narration or singing?**

Use it for instrumental music. Stable Audio 3 is not designed for speech or voice generation.

**Which language should I use for music descriptions?**

Write descriptions in English. The maker says prompts in other languages underperform because training used English descriptions.

**What audio quality does Stable Audio 3 Small Music produce?**

The native audio is 44.1 kHz stereo.

**How should I describe the music I want?**

Name the instruments and describe how they should sound or feel. For example, request delicate fingerpicked guitar with roomy reverb instead of simply asking for guitar music.

