[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Mirelo SFX 2.0 Text to Audio](https://spiral.ai/integrations/opencode/mirelo-sfx-2-0-text-to-audio)

# How to Use Mirelo SFX 2.0 Text to Audio in opencode

Mirelo SFX 2.0 Text to Audio creates standalone effects and ambience from a description. Unlike Mirelo SFX 2.0 Video to Audio, it works without footage, making it useful for sound libraries and game audio.

|  |  |
| --- | --- |
| Model | Mirelo SFX 2.0 Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.0195 per second. Billed on `duration`, default 30. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Mirelo SFX 2.0 Text to Audio in opencode

- Use Mirelo SFX 2.0 Text to Audio to create two 1-second takes of a mechanical confirmation click for this app. Describe a crisp metal click with a short spring rattle, exclude music and voices, and save the results in the project's audio assets.
- Use Mirelo SFX 2.0 Text to Audio to make a 30-second ambience bed for the game's abandoned workshop: a low ventilation hum, occasional metal creaks, and distant dripping water. Save two takes for review.
- Use Mirelo SFX 2.0 Text to Audio to create two 3-second takes of boots crunching on gravel for the game's walking sound. Keep the description focused on the crunch and scrape, then save both for auditioning.
- Make a 3-second whoosh with Mirelo SFX 2.0 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 Mirelo SFX 2.0 Text to Audio, 20 seconds, for a video background.

## How to set up Mirelo SFX 2.0 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 Mirelo SFX 2.0 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": "mirelo-ai/sfx2.0/text-to-audio",
    "input": {
      "prompt": "Heavy rain on a metal roof with distant thunder"
    }
  }'
```

Then paste one of the prompts above: opencode finds Mirelo SFX 2.0 Text to Audio on Spiral, shows the price and runs it.

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

## Mirelo SFX 2.0 Text to Audio tools and prices

- [Mirelo SFX2.0 · Text to Audio](https://spiral.ai/tools/fal/mirelo-ai/sfx2.0/text-to-audio) (fal): $0.0195 per second. Billed on `duration`, default 30.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  | — | Sounds to keep out of the result |
| duration | 0.1 to 600 | 30 | Seconds of sound to generate, up to the deployment's text-to-SFX maximum |
| seed | -1 to 9223372036854776000 | — | Seed of the first sample; -1 or unset is random |
| num_samples | 1 to 4 | 2 | Number of variations to generate. Billed per sample. |
| upload_audio_format | wav, mp3, aac, flac | wav | Audio format of each file |
| upload_audio_bitrate_kbps | 32 to 320 | — | Bitrate in kbps for an mp3 or aac upload. mp3 is written at exactly this constant rate, one of 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320. aac takes 32 to 256 as a target the encoder may undershoot on mono or sparse audio. Unset keeps the default: mp3 at LAME V0 VBR, aac at a 256 kbps target. Refused with a lossless upload_audio_format. |

## What can you do with Mirelo SFX 2.0 Text to Audio in opencode?

Create sound effects and ambience for the app, game, or media project you are building. Have the agent save selected takes alongside the project's audio assets and audition them in context.

### Sound design for product ads

Create packaging rustles, switch clicks, and mechanical sounds from a written brief, or generate them against footage of the product in use.

### Game cinematic audio

Build footsteps, impacts, and environmental sound for a game cinematic. Describe individual cues or use a rendered sequence to guide their timing.

### Scene ambience

Create rain, wind, traffic, or room tone for a scene. Start with a sound description or matching footage, then audition the result under the edit.

### Sound design drafts

Compare different sound treatments before finishing a mix. Generate cues from the sound brief or a soundtrack from the cut, then choose the texture that fits.

### A custom effects library

Generate standalone doors, impacts, machinery, and imaginary sounds from descriptions. Save selected takes as reusable cues.

### App and game interaction cues

Draft short sounds for a pickup, confirmation, mechanical button, or reward. Describe the intended sound and audition it in context.

## Overview

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

## Mirelo SFX 2.0 Text to Audio in other agents

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

## More opencode guides

- [MiniMax Voice Design](https://spiral.ai/integrations/opencode/minimax-voice-design)
- [Mirelo SFX 2.0 Video to Audio](https://spiral.ai/integrations/opencode/mirelo-sfx-2-0-video-to-audio)
- [MiniMax Voice Cloning](https://spiral.ai/integrations/opencode/minimax-voice-cloning)
- [Mureka 9.5](https://spiral.ai/integrations/opencode/mureka-9-5)
- [MiniMax Speech-02 Turbo](https://spiral.ai/integrations/opencode/minimax-speech-02-turbo)
- [Mureka 9.5 Instrumental](https://spiral.ai/integrations/opencode/mureka-9-5-instrumental)

## Questions about Mirelo SFX 2.0 Text to Audio in opencode

**Can opencode use Mirelo SFX 2.0 Text to Audio?**

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

**How much does Mirelo SFX 2.0 Text to Audio cost in opencode?**

$0.0195 per second. Billed on `duration`, default 30. 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 Mirelo SFX 2.0 Text to Audio in opencode?**

No. Spiral runs Mirelo SFX 2.0 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 Mirelo SFX 2.0 Text to Audio in opencode?**

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

**Does opencode wait while Mirelo SFX 2.0 Text to Audio runs?**

Mirelo SFX 2.0 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 Mirelo SFX 2.0 useful for?**

Use it for sound effects and ambience: footsteps, impacts, rain, machinery, and room tone. These can become individual cues or layers in a larger sound edit.

**How long can Mirelo SFX 2.0 audio be?**

The maximum is 10 minutes. Choose a duration that covers the cue or scene you need rather than generating extra audio to trim later.

**How should I describe a sound?**

Name the source, action, and audible texture, such as boots crunching through fresh snow or heavy rain striking a metal roof. Concrete sound descriptions give clearer direction than mood words alone.

**Will it reliably exclude unwanted sounds?**

Treat exclusions as guidance and listen to the result. Mirelo describes negative prompting as experimental, so a request to exclude music or thunder is not a guarantee.

**Does Mirelo SFX 2.0 produce stereo audio?**

Mirelo documents 48 kHz mono output. Plan any stereo placement or spatial mixing in your editor.

