Spiral gives your agent every tool with one account. Browse the tools →

opencode · 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.

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

Copy an example into opencode, or ask in your own words.

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.

Mirelo SFX 2.0 Text to Audioopencode
Try asking
  • 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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.

    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.

Mirelo SFX 2.0 Text to Audio providers and prices

Spiral runs Mirelo SFX 2.0 Text to Audio through fal. Open a card for today's price, with every fee included.

falAudio
Mirelo SFX2.0 · Text to Audio
mirelo-ai/sfx2.0/text-to-audio

Settings you can ask for

Mirelo SFX 2.0 Text to Audio works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Sounds to keep out of the result

Duration0.1 to 60030

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

Number of samples1 to 42

Number of variations to generate. Billed per sample.

Audio formatwav, mp3, aac, or flacwav

Audio format of each file

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.

Every API field of Mirelo SFX2.0 · Text to Audio is on its tool page: open its card above.

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.

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.

Get started

Start using Mirelo SFX 2.0 Text to Audio in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options