[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Eleven Flash v2.5](https://spiral.ai/integrations/codex/eleven-flash-v2-5)

# How to Use Eleven Flash v2.5 in Codex

Eleven Flash v2.5 turns text into speech for conversational replies, interactive apps, and bulk audio production. Unlike Eleven Flash v2, it supports 32 languages rather than English alone.

|  |  |
| --- | --- |
| Model | Eleven Flash v2.5 |
| Available through | ElevenLabs |
| Category | Audio |
| Price | $0.052 per 1,000 characters of `text`. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Eleven Flash v2.5 in Codex

- Use Eleven Flash v2.5 to narrate the onboarding strings in this project. Expand abbreviations for speech and save one audio clip per screen.
- Find the quest dialogue in this project and generate previews with Eleven Flash v2.5. Keep each character's lines separate so I can review the wording.
- Turn the project's getting-started guide into spoken instructions with Eleven Flash v2.5. Split at section boundaries and keep each request below 40,000 characters.
- Use Eleven Flash v2.5 to make two readings of the app's welcome message, one with lower stability and one with higher stability. Keep the voice and wording identical.
- Generate audio previews of the project's Hungarian, Norwegian, and Vietnamese onboarding strings with Eleven Flash v2.5. Use a voice native to each language and flag untranslated strings before generation.

## How to set up Eleven Flash v2.5 in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 Eleven Flash v2.5**: 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": "eleven_flash_v2_5",
    "input": {
      "text": "<text>",
      "voice_id": "<voice_id>"
    }
  }'
```

Then paste one of the prompts above: Codex finds Eleven Flash v2.5 on Spiral, shows the price and runs it.

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

## Eleven Flash v2.5 tools and prices

- [Eleven Flash v2.5](https://spiral.ai/tools/elevenlabs/eleven_flash_v2_5) (ElevenLabs): $0.052 per 1,000 characters of `text`.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — | If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. |
| next_text |  | — | The text that comes after the text of the current request. |
| audio_effects |  | — | Audio effects applied to the generated audio. |
| language_code |  | — | Language code (ISO 639-1) used to enforce a language for the model and text normalization. |
| output_format | alaw_8000, mp3_22050_32, mp3_24000_48, mp3_44100_128, mp3_44100_192, mp3_44100_32, mp3_44100_64, mp3_44100_96, opus_48000_128, opus_48000_192, opus_48000_32, opus_48000_64, opus_48000_96, pcm_16000, pcm_22050, pcm_24000, pcm_32000, pcm_44100, pcm_48000, pcm_8000, ulaw_8000, wav_16000, wav_22050, wav_24000, wav_32000, wav_44100, wav_48000, wav_8000 | mp3_44100_128 | Output format of the generated audio. |
| previous_text |  | — | The text that came before the text of the current request. |

## What can you do with Eleven Flash v2.5 in Codex?

Give your project's interface text, help content, and game dialogue a spoken preview. A coding agent can prepare scripts from project files and generate batches with Eleven Flash v2.5.

### Spoken support replies

Turn approved answers into short spoken responses with Eleven Flash v2.5. Expand reference numbers into the form callers should hear.

### Game dialogue previews

Use Eleven Flash v2.5 to hear quest instructions and character lines during development before recording final performances.

### Localized app instructions

Generate spoken onboarding instructions in supported languages with Eleven Flash v2.5, using a voice suited to each language.

### Daily audio briefings

Convert a short daily summary into speech with Eleven Flash v2.5. Write dates and quantities in words before narration.

### Help article audio

Create spoken editions of help articles with Eleven Flash v2.5, splitting longer text into requests below 40,000 characters.

### Practice listening exercises

Turn short passages into listening exercises with Eleven Flash v2.5. Add a brief pause between a question and its answer.

## Overview

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

## Eleven Flash v2.5 in other agents

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

## More Codex guides

- [Eleven Flash v2](https://spiral.ai/integrations/codex/eleven-flash-v2)
- [Eleven Multilingual v2](https://spiral.ai/integrations/codex/eleven-multilingual-v2)
- [Demucs](https://spiral.ai/integrations/codex/demucs)
- [Eleven Music](https://spiral.ai/integrations/codex/eleven-music)
- [DeepFilterNet 3](https://spiral.ai/integrations/codex/deepfilternet-3)
- [Eleven Music v2](https://spiral.ai/integrations/codex/eleven-music-v2)

## Questions about Eleven Flash v2.5 in Codex

**Can Codex use Eleven Flash v2.5?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Eleven Flash v2.5 like any built-in tool.

**How much does Eleven Flash v2.5 cost in Codex?**

$0.052 per 1,000 characters of `text`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an ElevenLabs account to use Eleven Flash v2.5 in Codex?**

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

**How long does it take to set up Eleven Flash v2.5 in Codex?**

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

**Does Codex wait while Eleven Flash v2.5 runs?**

Eleven Flash v2.5 runs in the background. Codex starts the run, checks on it and gives you the audio when it's ready.

**What is Eleven Flash v2.5 good at?**

It suits spoken chatbot replies, interactive app speech, and bulk conversion of written text into audio. Those are useful starting points for support responses, game dialogue, and recurring spoken summaries.

**Which languages does Eleven Flash v2.5 support?**

It supports 32 languages, including English, Spanish, French, Japanese, Hungarian, Norwegian, and Vietnamese. Use a voice native to the intended language and accent for better pronunciation.

**How long can one Eleven Flash v2.5 generation be?**

The limit is 40,000 input characters per request. ElevenLabs estimates about 40 minutes of audio at that length; actual duration depends on the script and delivery.

**How should I prepare numbers and dates for Eleven Flash v2.5?**

Write them as you want listeners to hear them before generating speech. For example, expand an ambiguous date into a month name and spell a phone number digit by digit.

**How can I make the delivery steadier or more expressive?**

Raise stability for steadier delivery or lower it for more emotional variation. Test a short passage first: very low values can sound erratic, while very high values can sound monotonous.

