How to Use Mirelo SFX 2.0 Video to Audio in opencode
Mirelo SFX 2.0 Video to Audio creates effects timed to existing footage. Unlike Mirelo SFX 2.0 Text to Audio, it uses visible action to guide the soundtrack and can generate around existing dialogue, though the voice may change.
Prompts to try with Mirelo SFX 2.0 Video to Audio in opencode
Copy an example into opencode, or ask in your own words.
Use Mirelo SFX 2.0 Video to Audio on the project's 10-second door animation preview. Generate effects only, with the latch and closing impact following the visible action, and save the audio beside the preview.
Use Mirelo SFX 2.0 Video to Audio to draft effects for the project's 20-second gameplay trailer. Add distant wind as guidance, exclude music, and save two soundtracks for comparison against the picture.
Make a 3-second whoosh with Mirelo SFX 2.0 Video 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 Video to Audio, 20 seconds, for a video background.
Generate five short UI clicks and confirmation chimes with Mirelo SFX 2.0 Video to Audio and tell me what they cost.
How to set up Mirelo SFX 2.0 Video to Audio in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Mirelo SFX 2.0 Video 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/video-to-audio", "input": { "video_url": "https://di3otfzjg1gxa.cloudfront.net/chase.mp4" } }'
Then paste one of the prompts above: opencode finds Mirelo SFX 2.0 Video to Audio on Spiral, shows the price and runs it.
Mirelo SFX 2.0 Video to Audio providers and prices
Spiral runs Mirelo SFX 2.0 Video to Audio through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Mirelo SFX 2.0 Video to Audio works from your video URL and text prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Negative prompt | what to leave out, in words | Sounds to keep out of the result, as a short comma-separated list. | |
| Preserve speech | on or off | on | Keep the speech in the input's audio and generate the rest of the soundtrack around it. False generates sound effects only and suppresses speech. |
| Duration | 1 to 600 | 10 | Seconds of sound to generate, from 1 s to 600 s, clamped to the video's length. Over 10 s generates in 10 s windows. A video shorter than 1 s answers 400. |
| Number of samples | 1 to 4 | 2 | Number of variations to generate. Billed per sample. |
| Seed | -1 to 18446744073709552000 | Seed for generation. -1 or None for random. | |
| Audio format | wav, mp3, aac, or flac | wav | 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. | |
| Return speech | on or off | off | Also return the input's separated speech as its own audio file, in the response's speech. With preserve_speech false the soundtracks are sound effects only and the speech is separated while they generate. With preserve_speech true it is the speech separated from the input that the soundtracks were generated around, not the speech in them: the model renders that speech anew, so the file does not cancel or double it cleanly when layered onto a soundtrack. The file is mono, in upload_audio_format, and as long as the soundtracks. It is not billed. |
Every API field of Mirelo SFX2.0 · Video to Audio is on its tool page: open its card above.
What can you do with Mirelo SFX 2.0 Video 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.
Foley for silent footage
Generate footsteps, splashes, impacts, and handling sounds that follow visible actions. Review each cue against the picture before using the soundtrack.
Consistent sound across a stitched edit
Process an assembled sequence together to give shots of the same place a consistent sound. Keep the edit within the 10-minute limit.
More on Mirelo SFX 2.0 Video to Audio and opencode
Overview
Mirelo SFX 2.0 Video to Audio in other agents
Questions about Mirelo SFX 2.0 Video to Audio in opencode
Can opencode use Mirelo SFX 2.0 Video to Audio?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Mirelo SFX 2.0 Video to Audio like any built-in tool.
How much does Mirelo SFX 2.0 Video to Audio cost in opencode?
$0.0195 per second. Billed on `duration`, default 10. 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 Video to Audio in opencode?
No. Spiral runs Mirelo SFX 2.0 Video 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 Video to Audio in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Mirelo SFX 2.0 Video to Audio runs?
Mirelo SFX 2.0 Video 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.
Start using Mirelo SFX 2.0 Video 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 https://spiral.ai/SKILL.md


