[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Stable Audio 3 Small SFX Base Text to Audio](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-base-text-to-audio)

# How to Use Stable Audio 3 Small SFX Base Text to Audio in opencode

Use Stable Audio 3 Small SFX Base Text to Audio to create effects from a written description. Unlike Stable Audio 3 Small SFX Base Audio to Audio, it needs no recording; Stability positions the base checkpoint primarily for fine-tuning.

|  |  |
| --- | --- |
| Model | Stable Audio 3 Small SFX Base Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.03679 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 SFX Base Text to Audio in opencode

- Read the game's interaction list and use Stable Audio 3 Small SFX Base Text to Audio to create a 2-second metal inventory latch closing, close microphone, dry room. Save the take with a descriptive asset name.
- Read the scene brief and use Stable Audio 3 Small SFX Base Text to Audio for a 20-second warehouse ambience: distant ventilation, occasional pipe ticks, large reflective room. Use 50 sampling steps.
- Use Stable Audio 3 Small SFX Base Text to Audio to draft three separate 3-second transition effects for the project's title sequence: an air rush, a low impact, and a metallic scrape. Keep a text description beside each take.
- Make a 3-second whoosh with Stable Audio 3 Small SFX Base Text to Audio for a menu transition in my app. Save the result in ./assets.
- Create rain on a tin roof with distant thunder with Stable Audio 3 Small SFX Base Text to Audio, 20 seconds, for a video background.

## How to set up Stable Audio 3 Small SFX Base Text 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.

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

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

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

```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 SFX 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/sfx/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: opencode finds Stable Audio 3 Small SFX Base Text to Audio on Spiral, shows the price and runs it.

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

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

- [Stable Audio 3 Small SFX Base · Text to Audio](https://spiral.ai/tools/fal/fal-ai/stable-audio-3/small/sfx/base/text-to-audio) (fal): $0.03679 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 SFX Base Text to Audio in opencode?

Build sound effects for the interactions and scenes in your project with Stable Audio 3 Small SFX Base. A coding agent can turn project requirements into concrete sound descriptions and organize generated takes for review.

### Game interaction sounds

Create short latch clicks, inventory impacts, and mechanical button sounds. Describe each object's material and action so the results have a clear role in the game.

### Foley for short films

Draft footsteps, fabric movement, drawer closures, and prop handling. Specify the surface, microphone distance, and room character for each effect.

### Environmental sound beds

Build short stretches of rain, machinery, wind, or harbor activity for scene mockups. Keep each clip within 120 seconds and describe what should be close or distant.

### Podcast scene effects

Create door movements, object impacts, and background activity for an audio story. Generate effects separately so an editor can place them around the dialogue.

### Transitions for video edits

Draft short whooshes, rising textures, and closing impacts. Describe the motion, attack, and decay rather than asking only for a cinematic sound.

### Sound-design sample libraries

Explore sets of metallic hits, wooden knocks, and synthetic pulses. Give every request a distinct source, action, and recording character.

## Overview

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

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

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

## More opencode guides

- [Stable Audio 3 Small SFX Base Audio to Audio](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-base-audio-to-audio)
- [Stable Audio 3 Small SFX Inpainting](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-inpainting)
- [Stable Audio 3 Small SFX Base Audio Outpainting](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-base-audio-outpainting)
- [Stable Audio 3 Small SFX Text to Audio](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-text-to-audio)
- [Stable Audio 3 Small SFX Base Audio Inpainting](https://spiral.ai/integrations/opencode/stable-audio-3-small-sfx-base-audio-inpainting)
- [Universal-2](https://spiral.ai/integrations/opencode/universal-2)

## Questions about Stable Audio 3 Small SFX Base Text to Audio in opencode

**Can opencode use Stable Audio 3 Small SFX Base Text to Audio?**

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

**How much does Stable Audio 3 Small SFX Base Text to Audio cost in opencode?**

$0.03679 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 3 Small SFX Base Text to Audio in opencode?**

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

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

**Does opencode wait while Stable Audio 3 Small SFX Base Text to Audio runs?**

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

**What is Stable Audio 3 Small SFX Base best used for?**

Use it for sound effects such as impacts, mechanical noises, foley, and environmental textures. It is a sound-effects checkpoint; choose a music model for songs and a speech model for narration.

**How long can the audio be, and what is its native quality?**

The Small SFX models support clips up to 120 seconds. The base checkpoint uses stereo audio at 44.1 kHz; for a short impact or click, request only the time that sound needs.

**What should I include in a sound-effect prompt?**

Name the object, describe its action, and specify the recording perspective and room. For example, ask for a heavy metal latch closing near the microphone in a small, dry room.

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

Use English. Stability lists English in the base checkpoint's model card, so English descriptions are the documented starting point.

**Which generation settings are worth adjusting first?**

Start near 50 sampling steps for the base checkpoint. Set a short duration for a brief effect, then refine the description before experimenting with other settings.

