How to Use Eleven Flash v2 in Codex
Eleven Flash v2 turns English text into speech for conversational replies and interactive apps. It accepts up to 30,000 characters per request and supports phoneme tags for pronunciation control.
Prompts to try with Eleven Flash v2 in Codex
Copy an example into Codex, or ask in your own words.
Use Eleven Flash v2 to turn the onboarding copy in this project's files into separate English audio clips. Expand abbreviations for speech and save each clip beside its source script.
Find the English character dialogue in this project and use Eleven Flash v2 to generate three takes of one representative line with stability at 0.35, 0.5, and 0.7. Keep similarity at 0.75 and style at zero.
Use Eleven Flash v2 to narrate this project's release notes in English. Rewrite version numbers and dates into their intended spoken forms, and save the narration script with the audio.
Use Eleven Flash v2 to create pronunciation samples for the English glossary in this repository. Apply SSML phoneme tags to terms with documented pronunciations and flag terms that need clarification.
Use Eleven Flash v2 to create a listening copy of this project's English user guide. Keep each request below 30,000 characters and provide previous_text and next_text around passage boundaries.
How to set up Eleven Flash v2 in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex 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 Eleven Flash v2
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": "elevenlabs", "model": "eleven_flash_v2", "input": { "text": "<text>", "voice_id": "<voice_id>" } }'
Then paste one of the prompts above: Codex finds Eleven Flash v2 on Spiral, shows the price and runs it.
Eleven Flash v2 providers and prices
Spiral runs Eleven Flash v2 through ElevenLabs. Open a card for today's price, with every fee included.
Settings you can ask for
Eleven Flash v2 works from your text, next text, and previous text. Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | 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. | |
| 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 and 20 more | mp3_44100_128 | Output format of the generated audio. |
| Use pvc as ivc | on or off | Whether to use the IVC version of a professional voice. This may improve expressiveness and reduce latency. | |
| Apply text normalization | auto, on, or off | auto | This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. |
| Optimize streaming latency | a whole number | You can turn on latency optimizations at some cost of quality. | |
| Apply language text normalization | on or off | off | This parameter controls language text normalization. |
Every API field of Eleven Flash v2 is on its tool page: open its card above.
What can you do with Eleven Flash v2 in Codex?
Give project scripts, interface messages, and game dialogue an English voice. Use project files to prepare spoken text and review pronunciation before generating a larger batch.
Spoken support replies
Turn an approved English support response into speech. Spell out reference numbers and dates before generating the reply.
Interactive game dialogue
Generate English character lines for a game prototype. Compare stability settings on the same line before rendering the remaining dialogue.
Product walkthrough drafts
Create spoken drafts of English onboarding instructions so a team can review wording and pauses alongside the product.
Daily audio briefings
Convert a short English summary of verified updates into a spoken briefing, with dates and quantities written out.
Pronunciation practice
Create English practice sentences with phoneme tags for names or technical terms, then review the generated pronunciation.
Telephone announcement drafts
Generate English opening messages, menu instructions, and service announcements. Prepare phone numbers as spoken digits.
Listening copies of articles
Turn English articles into speech for listening review. Split text above 30,000 characters and provide surrounding passages to help continuity.
More on Eleven Flash v2 and Codex
Overview
Eleven Flash v2 in other agents
Questions about Eleven Flash v2 in Codex
Can Codex use Eleven Flash v2?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Eleven Flash v2 like any built-in tool.
How much does Eleven Flash v2 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 in Codex?
No. Spiral runs Eleven Flash v2 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 in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Eleven Flash v2 runs?
Eleven Flash v2 runs in the background. Codex starts the run, checks on it and gives you the audio when it's ready.
Does Eleven Flash v2 support languages other than English?
No. Eleven Flash v2 supports English only.
How much speech can Eleven Flash v2 generate at once?
It accepts up to 30,000 characters per request, approximately 30 minutes of speech. Treat that duration as an estimate, not an exact target.
What is Eleven Flash v2 best suited for?
Its focus is speech for conversational replies and interactive apps. For narration where stable, high fidelity matters more than generation speed, ElevenLabs recommends Multilingual v2.
How can I control pauses and pronunciation?
Use SSML break tags for pauses up to three seconds. Eleven Flash v2 also supports SSML phoneme tags for words that need a specific pronunciation.
Which voice settings should I adjust first?
Start around 50% stability, 75% similarity, and zero style exaggeration. Lower stability when you want more emotional variation; raise it cautiously because high values can sound monotonous.
Start using Eleven Flash v2 in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


