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

opencode · AudioReleased 2026-07-29

How to Use Lyria 3.5 in opencode

Lyria 3.5 creates vocal songs and instrumental soundtracks up to three minutes long, with verse, chorus, and bridge structure. Google reports improved audio fidelity compared with Lyria 2.

Prompts to try with Lyria 3.5 in opencode

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

Read the product video brief in this project. Use Lyria 3.5 to create a 60-second instrumental backing track with soft piano, light percussion, and a gradual build.

Lyria 3.5opencode
Try asking
  • Read the game’s art direction notes. Use Lyria 3.5 to create a two-minute instrumental title theme with plucked strings, warm woodwinds, and a gentle opening.

  • Use Lyria 3.5 to turn the original lyrics in lyrics.txt into a two-minute folk demo. Follow its verse and chorus labels, with acoustic guitar and a warm baritone.

  • Use the project’s title-screen illustration as inspiration for Lyria 3.5. Request a 60-second instrumental with sparse piano, low strings, and an uneasy mood.

  • Read the launch video storyboard. Use Lyria 3.5 to draft a 90-second instrumental score with a restrained introduction, a lively middle, and a quiet ending.

How to set up Lyria 3.5 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 Lyria 3.5

    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": "google/lyria-3.5",
        "input": {
          "prompt": "An uplifting pop song with driving electric guitar, energetic drums, and a catchy chorus singing '\''Rise up and shine today'\''. 120 BPM. Two minutes long with a…"
        }
      }'

Then paste one of the prompts above: opencode finds Lyria 3.5 on Spiral, shows the price and runs it.

Lyria 3.5 providers and prices

Spiral runs Lyria 3.5 through fal and Gemini. Open a card for today's price, with every fee included. Name one in your prompt, or let opencode pick.

falAudio
Lyria 3.5
google/lyria-3.5
GeminiAudio

Settings you can ask for

Lyria 3.5 works from your prompt and image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Negative prompting is not supported by Lyria 3.5.

Every API field of Lyria 3.5 is on its tool page: open its card above.

What can you do with Lyria 3.5 in opencode?

Create music drafts for the app, game, or video project you are building. A coding agent can turn project notes and original lyrics into a musical brief with instruments, tempo, and section structure.

Video backing tracks

Create an instrumental backing track for a product video, with a quiet opening and a stronger final section.

Brand jingle drafts

Turn an original slogan into a sung hook. Specify the instruments and vocal style to give the concept a clear direction.

Personal birthday songs

Write a song around someone’s hobbies and shared memories, with a chorus that repeats their name.

Personalized ringtone ideas

Generate a short musical idea with a recognizable opening phrase, then select an excerpt for a ringtone.

Music inspired by artwork

Use an illustration or photograph to guide a soundtrack’s mood, then add direction for instruments and tempo.

Songwriting demos

Hear original lyrics as a structured song with verses, a chorus, and a bridge before developing the arrangement further.

Lyria 3.5 success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
96.3%
Fastest median run time
46.1s
Runs, last 24 hours
82
ToolSuccessMedian timeRuns
Lyria 3.5Not enough runs
Lyria 3.5 · Music Generation96.3%46.1s82

Questions about Lyria 3.5 in opencode

Can opencode use Lyria 3.5?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Lyria 3.5 like any built-in tool.

How much does Lyria 3.5 cost in opencode?

$0.13 per generation. 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 Lyria 3.5 in opencode?

No. Spiral runs Lyria 3.5 on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Lyria 3.5 in opencode?

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

Which provider runs Lyria 3.5?

Spiral offers Lyria 3.5 through fal and Gemini. Name one in your prompt, or let opencode pick.

Does opencode wait while Lyria 3.5 runs?

Lyria 3.5 runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.

How long can a Lyria 3.5 track be?

Lyria 3.5 supports tracks up to three minutes long. State the duration you want in the musical brief.

Can Lyria 3.5 make instrumental music?

Yes. Ask for an instrumental track explicitly, then describe its instruments, tempo, and mood.

What audio quality does Lyria 3.5 generate?

Google documents 44.1 kHz stereo audio. Its evaluation reports improved audio fidelity compared with Lyria 2.

Can Lyria 3.5 sing in different languages?

Yes. Write the musical brief in the language you want the lyrics in.

What should I put in a Lyria 3.5 prompt?

Specify the instruments, tempo, and how the energy should change. For vocals, describe the singer’s sound; for a structured song, label the sections.

Get started

Start using Lyria 3.5 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