How to Use Sonilo V1.1 Text to Music in opencode
Sonilo V1.1 Text to Music creates instrumental tracks from a written brief for podcast beds, game music, and video backgrounds. Unlike Sonilo V1.1 Video to Music, it takes musical direction from text rather than footage.
Prompts to try with Sonilo V1.1 Text to Music in opencode
Copy an example into opencode, or ask in your own words.
Read the game's design document and use Sonilo V1.1 Text to Music to create a 90-second instrumental menu theme. Translate the setting into a specific genre, mood, instrument list, and pace, then save the track in the audio assets folder.
Use Sonilo V1.1 Text to Music to create a 30-second instrumental for this project's product demo: bright electronic pop, soft synth chords, crisp percussion, and a steady upbeat pace. Save it beside the demo assets.
Review the presentation notes and use Sonilo V1.1 Text to Music to create a 45-second opening cue: warm piano, light strings, a calm beginning, and a fuller middle. Save the audio with the presentation.
Use Sonilo V1.1 Text to Music to draft a 120-second exploration theme for the game: sparse ambient synths, low bass, slow movement, and a curious mood. Save the result for an in-game listening review.
Read the brand brief and use Sonilo V1.1 Text to Music to create a 20-second instrumental social video cue. Choose concrete instruments and a genre that match the brief, and save the track with a text copy of the prompt.
How to set up Sonilo V1.1 Text to Music 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 Sonilo V1.1 Text to Music
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": "sonilo/v1.1/text-to-music", "input": { "prompt": "A blend of R&B warmth, soul depth, neo-soul texture, gospel spirit, pop clarity, and jazz sophistication." } }'
Then paste one of the prompts above: opencode finds Sonilo V1.1 Text to Music on Spiral, shows the price and runs it.
Sonilo V1.1 Text to Music providers and prices
Spiral runs Sonilo V1.1 Text to Music through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Sonilo V1.1 Text to Music works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Duration | 1 to 600 | 90 | Requested output duration in seconds (max 600). Also used for billing (one billable unit per second per sample, rounded up; each sample under 10s bills as 10s). |
| Number of samples | 1 to 3 | 1 | How many distinct music tracks to generate. |
Every API field of Sonilo V1.1 Text to Music is on its tool page: open its card above.
What can you do with Sonilo V1.1 Text to Music in opencode?
Create instrumental music for a game's menu, an app demo, or a presentation from the project's creative brief. A coding agent can turn project context into a music prompt and save the resulting track with the project's audio assets.
Podcast background beds
Draft an instrumental bed with soft piano, restrained percussion, and a calm mood. Compare it under narration before choosing the final track.
Game menu themes
Describe the game's setting and musical palette to draft a menu theme, such as quiet fantasy strings or sparse science fiction synths.
Product demo music
Create a short instrumental backing track from a brief that names the product's tone, lead instruments, and desired pace.
Social video backgrounds
Request a 30-second cue with a clear musical direction, such as bright funk guitar and crisp drums, then edit it beneath the video.
Presentation music
Draft a restrained instrumental for a presentation opening or intermission. Specify the mood and instruments instead of asking for generic corporate music.
Music direction drafts
Explore contrasting arrangements for the same creative brief, such as acoustic guitar, chamber strings, and electronic percussion.
More on Sonilo V1.1 Text to Music and opencode
Overview
Sonilo V1.1 Text to Music in other agents
Questions about Sonilo V1.1 Text to Music in opencode
Can opencode use Sonilo V1.1 Text to Music?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Sonilo V1.1 Text to Music like any built-in tool.
How much does Sonilo V1.1 Text to Music cost in opencode?
$0.00325 per second. Billed on `duration`, default 90. 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 Sonilo V1.1 Text to Music in opencode?
No. Spiral runs Sonilo V1.1 Text to Music on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Sonilo V1.1 Text to Music in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Sonilo V1.1 Text to Music runs?
Sonilo V1.1 Text to Music runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.
What is Sonilo V1.1 Text to Music useful for?
Use it to turn a musical brief into an instrumental track. Practical starting points include background music for a product demo, an app, or a social video.
Can Sonilo V1.1 Text to Music sing my lyrics?
It generates instrumental music and has no lyrics input. Choose a dedicated song model when you need sung words.
How long can a Sonilo V1.1 track be?
A track can run up to 600 seconds, or 10 minutes. Choose a length that matches the intended placement, such as a short intro or a longer background bed.
What should I put in a Sonilo V1.1 music prompt?
Specify the genre, mood, instruments, tempo, and structure. For example: gentle acoustic folk, warm guitar and soft piano, relaxed pace, a sparse opening, and a fuller middle.
What audio format does Sonilo V1.1 Text to Music return?
It returns AAC audio in M4A files. Plan any conversion around that output format.
Start using Sonilo V1.1 Text to Music 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


