[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [ElevenLabs](https://spiral.ai/integrations/opencode/elevenlabs)

# How to Use ElevenLabs in opencode

To use ElevenLabs in opencode, connect Spiral to opencode once, then ask for what you want in plain words. opencode can then reach all 21 ElevenLabs tools on Spiral, priced per run from one balance.

|  |  |
| --- | --- |
| Tools | 21 |
| Categories | Audio |
| Served by | ElevenLabs |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with ElevenLabs in opencode

- Dub the video I attach into Spanish and German with ElevenLabs. Save the result in ./assets.
- Translate and dub this 2-minute product demo into French with ElevenLabs; estimate the cost first.
- Dub this webinar clip into Hindi with ElevenLabs, keeping the original speaker's voice.
- Dub our onboarding video into Japanese with ElevenLabs and give me a download link.
- Estimate the cost to dub our 10-minute tutorial into five languages with ElevenLabs.

## How to set up ElevenLabs 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 ElevenLabs**: 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": "elevenlabs",
    "model": "dubbing_v2",
    "input": {
      "source_url": "<source_url>",
      "target_language": "<target_language>"
    }
  }'
```

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

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

## ElevenLabs tools and prices

- [ElevenLabs Dubbing v2](https://spiral.ai/tools/elevenlabs/dubbing_v2) (ElevenLabs): $2.86 per minute.
- [ElevenLabs Voice Isolator](https://spiral.ai/tools/elevenlabs/audio-isolation) (ElevenLabs): $0.156 per minute.
- [Eleven Flash v2.5](https://spiral.ai/tools/elevenlabs/eleven_flash_v2_5) (ElevenLabs): $0.052 per 1,000 characters of `text`.

## What can you do with ElevenLabs in opencode?

opencode can dub video into other languages with ElevenLabs 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.

### Localized video

One recording in many languages, in the original voice.

### Course and webinar reach

Dub training content for every region.

### Product demos abroad

Ship demos to new markets the same day.

### Support videos

Help videos in your customers' languages.

### Marketing campaigns

One ad, dubbed for each market.

### Internal training

Training videos for global teams.

## Overview

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

## ElevenLabs in other agents

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

## More opencode guides

- [Deepgram](https://spiral.ai/integrations/opencode/deepgram)
- [Google Gemini](https://spiral.ai/integrations/opencode/gemini)
- [AssemblyAI](https://spiral.ai/integrations/opencode/assemblyai)
- [Google Vertex AI](https://spiral.ai/integrations/opencode/vertex)
- [Anthropic Claude](https://spiral.ai/integrations/opencode/anthropic)
- [Hedra](https://spiral.ai/integrations/opencode/hedra)

## Questions about ElevenLabs in opencode

**Can opencode use ElevenLabs?**

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

**How much does ElevenLabs cost in opencode?**

Each tool has its own price, for example ElevenLabs Dubbing v2: $2.86 per minute; ElevenLabs Voice Isolator: $0.156 per minute; Eleven Flash v2.5: $0.052 per 1,000 characters of `text`. You pay per run from one Spiral balance, and failed runs are free.

**Do I need an ElevenLabs account to use ElevenLabs in opencode?**

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

**How long does it take to set up ElevenLabs in opencode?**

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

**Does opencode wait while ElevenLabs runs?**

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

**Which ElevenLabs tools can opencode use?**

opencode can reach all 21 ElevenLabs tools on Spiral, covering audio. Popular ones include ElevenLabs Dubbing v2, ElevenLabs Voice Isolator, and Eleven Flash v2.5. Ask for one by name, or describe the task and opencode picks a fitting tool.

**Can opencode compare ElevenLabs tools?**

Yes. Ask opencode to run the same request on two ElevenLabs tools and show both results with what each cost. Each run is priced and billed on its own.

**What happens if a ElevenLabs 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 ElevenLabs 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.

