How to Use AssemblyAI in opencode
To use AssemblyAI in opencode, connect Spiral to opencode once, then ask for what you want in plain words. opencode can then reach all 3 AssemblyAI tools on Spiral, priced per run from one balance.
Prompts to try with AssemblyAI in opencode
Copy an example into opencode, or ask in your own words.
Transcribe the meeting recording I attach with AssemblyAI, with speaker labels. Save the result in ./assets.
Transcribe this podcast episode with AssemblyAI and pull out every action item.
Make captions for this video with AssemblyAI.
Transcribe this customer call with AssemblyAI and list every feature request mentioned.
Transcribe this interview with AssemblyAI, then pull the three best quotes with timestamps.
How to set up AssemblyAI 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 AssemblyAI
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": "assemblyai", "model": "universal-3-5-pro", "input": { "audio_url": "<audio_url>" } }'
Then paste one of the prompts above: opencode finds AssemblyAI on Spiral, shows the price and runs it.
AssemblyAI tools you can run in opencode
2Ready to run from opencode: today's price, with every fee included.
$0.273 per hour of audio, per channel. Features, per hour: speaker labels $0.026, key terms $0.065, translation $0.078, speaker identification $0.026, custom formatting $0.039, action items $0.026, summaries $0.026 ($0.091 at medium effort), entity detection $0.104, sentiment $0.026, key phrases $0.013, topic detection $0.195, content moderation $0.195, profanity filter $0.013, PII redaction $0.104, audio redaction $0.065, medical mode $0.195, custom prompt $0.065.
$0.195 per hour of audio, per channel. Features, per hour: speaker labels $0.026, key terms $0.065, translation $0.078, speaker identification $0.026, custom formatting $0.039, action items $0.026, summaries $0.026 ($0.091 at medium effort), entity detection $0.104, sentiment $0.026, key phrases $0.013, topic detection $0.195, content moderation $0.195, profanity filter $0.013, PII redaction $0.104, audio redaction $0.065, medical mode $0.195.
What can you do with AssemblyAI in opencode?
opencode can transcribe audio and video with AssemblyAI right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.
Meeting notes
Transcripts with speakers, then action items from them.
Captions
Subtitles for every video you publish.
Searchable archives
Turn calls and recordings into text you can search.
Research interviews
Transcripts you can quote and code.
Compliance
A written record of calls and meetings.
Content repurposing
Turn talks into blog posts and threads.
More on AssemblyAI and opencode
Overview
AssemblyAI in other agents
Questions about AssemblyAI in opencode
Can opencode use AssemblyAI?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run AssemblyAI like any built-in tool.
How much does AssemblyAI cost in opencode?
Each tool has its own price, for example Universal-3.5 Pro Speech to Text: $0.273 per hour of audio, per channel. Features, per hour: speaker labels $0.026, key terms $0.065, translation $0.078, speaker identification $0.026, custom formatting $0.039, action items $0.026, summaries $0.026 ($0.091 at medium effort), entity detection $0.104, sentiment $0.026, key phrases $0.013, topic detection $0.195, content moderation $0.195, profanity filter $0.013, PII redaction $0.104, audio redaction $0.065, medical mode $0.195, custom prompt $0.065; Universal-2 Speech to Text: $0.195 per hour of audio, per channel. Features, per hour: speaker labels $0.026, key terms $0.065, translation $0.078, speaker identification $0.026, custom formatting $0.039, action items $0.026, summaries $0.026 ($0.091 at medium effort), entity detection $0.104, sentiment $0.026, key phrases $0.013, topic detection $0.195, content moderation $0.195, profanity filter $0.013, PII redaction $0.104, audio redaction $0.065, medical mode $0.195. You pay per run from one Spiral balance, and failed runs are free.
Do I need an AssemblyAI account to use AssemblyAI in opencode?
No. Spiral runs AssemblyAI on its own AssemblyAI account. You sign in to Spiral once and never paste a key.
How long does it take to set up AssemblyAI in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while AssemblyAI runs?
AssemblyAI runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Which AssemblyAI tools can opencode use?
opencode can reach all 3 AssemblyAI tools on Spiral, covering audio. Popular ones include Universal-3.5 Pro Speech to Text and Universal-2 Speech to Text. Ask for one by name, or describe the task and opencode picks a fitting tool.
Can opencode compare AssemblyAI tools?
Yes. Ask opencode to run the same request on two AssemblyAI tools and show both results with what each cost. Each run is priced and billed on its own.
What happens if a AssemblyAI run fails in opencode?
It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. opencode gets the error and can retry or try another tool.
Is there a AssemblyAI subscription or plan?
No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps opencode from stopping when the balance runs low.
Start using AssemblyAI 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


