[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Sonilo V1.1 Text to Music](https://spiral.ai/integrations/opencode/sonilo-v1-1-text-to-music)

# 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.

|  |  |
| --- | --- |
| Model | Sonilo V1.1 Text to Music |
| Available through | fal |
| Category | Audio |
| Price | $0.00325 per second. Billed on `duration`, default 90. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Sonilo V1.1 Text to Music in opencode

- 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

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 Sonilo V1.1 Text to Music**: 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": "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.

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

## Sonilo V1.1 Text to Music tools and prices

- [Sonilo V1.1 Text to Music](https://spiral.ai/tools/fal/sonilo/v1.1/text-to-music) (fal): $0.00325 per second. Billed on `duration`, default 90.

## Settings you can ask for

| 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). |
| num_samples | 1 to 3 | 1 | How many distinct music tracks to generate. |

## 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.

## Overview

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

## Sonilo V1.1 Text to Music in other agents

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

## More opencode guides

- [Seed Speech TTS 2.0](https://spiral.ai/integrations/opencode/seed-speech-tts-2-0)
- [Sonilo v1.1 Text to Sound Effects](https://spiral.ai/integrations/opencode/sonilo-v1-1-text-to-sound-effects)
- [Seed Audio 1.0](https://spiral.ai/integrations/opencode/seed-audio-1-0)
- [Sonilo v1.1 Video to Music](https://spiral.ai/integrations/opencode/sonilo-v1-1-video-to-music)
- [Scribe v3](https://spiral.ai/integrations/opencode/scribe-v3)
- [Sonilo v1.1 Video to Sound Effects](https://spiral.ai/integrations/opencode/sonilo-v1-1-video-to-sound-effects)

## 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.

