elevenlabs-tts

elevenlabs-tts is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 20 tokens per session (685 once invoked), scanned A, original, Apache-2.0.

Instructions for converting written text into speech audio through the ElevenLabs Text-to-Speech API. The result is provided as an MP3 by default.

In plain words
What is it for?
Use it to add spoken narration, voice responses, or generated audio to an application using an ElevenLabs API key.
Why use it?
It explains how to authenticate with the service, send text, choose a voice, and receive audio without working out the API details from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add spoken narration, voice responses, or generated audio to an application using an ElevenLabs API key.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/elevenlabs-tts
About the project

SkillsBench is a benchmark for measuring how effectively AI agents use modular skills—folders containing instructions, scripts, and resources—to complete specialized tasks. It helps researchers and developers evaluate both skill quality and agent behavior, including tasks that require combining multiple skills. The catalogue’s skills and instructions are evaluated as part of this workflow.

benchflow-ai/skillsbench · 1,760 stars · on GitHub · skillsbench.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add benchflow-ai/skillsbench --skill elevenlabs-tts
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/skillsbench

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elevenlabs-tts

README.md
[![agentmods](https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/elevenlabs-tts/github.svg)](https://agentmods.dev/skills/benchflow-ai/skillsbench/elevenlabs-tts)
Your own site
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/elevenlabs-tts"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/elevenlabs-tts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elevenlabs-tts

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/elevenlabs-tts"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/elevenlabs-tts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 26
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 60
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 76
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00685
Opus 5 $0.00010 $0.00342
Sonnet 5 $0.00004 $0.00137
Haiku 4.5 $0.00002 $0.00068

Measured 11d ago against content hash b06eb58aeaf4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

elevenlabs-tts scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post(url, json=data, headers=headers)
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

tasks-extra/pg-essay-to-audiobook/environment/skills/elevenlabs-tts/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ElevenLabs Text-to-Speech

Generate high-quality speech audio from text using the ElevenLabs API.

Authentication

The API key is available as environment variable:

ELEVENLABS_API_KEY

Include in request header:

xi-api-key: $ELEVENLABS_API_KEY

API Endpoints

Text-to-Speech

POST https://api.elevenlabs.io/v1/text-to-speech/{voice_id}

Request Body:

{
  "text": "Your text here",
  "model_id": "eleven_turbo_v2_5",
  "voice_settings": {
    "stability": 0.5,
    "similarity_boost": 0.5
  }
}

Response: Audio bytes (mp3 format by default)

  • 21m00Tcm4TlvDq8ikWAM - Rachel (female, calm)
  • EXAVITQu4vr4xnSDxMaL - Bella (female, soft)
  • ErXwobaYiN019PkySvjV - Antoni (male, warm)
  • TxGEqnHWrfWFTfGW9XjX - Josh (male, deep)

Python Example

import os
import requests

ELEVENLABS_API_KEY = os.environ.get("ELEVENLABS_API_KEY")
VOICE_ID = "21m00Tcm4TlvDq8ikWAM"  # Rachel

def text_to_speech(text, output_path):
    url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}"

    headers = {
        "xi-api-key": ELEVENLABS_API_KEY,
        "Content-Type": "application/json"
    }

    data = {
        "text": text,
        "model_id": "eleven_turbo_v2_5",
        "voice_settings": {
            "stability": 0.5,
            "similarity_boost": 0.75
        }
    }

    response = requests.post(url, json=data, headers=headers)

    if response.status_code == 200:
        with open(output_path, "wb") as f:
            f.write(response.content)
        return True
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return False

Handling Long Text

ElevenLabs has a ~5000 character limit per request. For long documents:

  1. Split text into chunks at sentence boundaries
  2. Generate audio for each chunk
  3. Concatenate using ffmpeg or pydub:
# Create file list
echo "file 'chunk1.mp3'" > files.txt
echo "file 'chunk2.mp3'" >> files.txt

# Concatenate
ffmpeg -f concat -safe 0 -i files.txt -c copy output.mp3

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 109 lines · 20 tokens per session scan A b06eb58aeaf4

Subscribe to this mod's changes

elevenlabs-tts is a skill published in the GitHub repository benchflow-ai/skillsbench (1,760 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 685 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.