skillfed

elevenlabs

elevenlabs v2.64.0 10.4M downloads/30d#1,453 on PyPI3,064
Permissive license MIT Active released

What it is and what it does

ElevenLabs is the official Python client for the ElevenLabs text-to-speech and conversational AI platform. It wraps the ElevenLabs HTTP API and provides both synchronous and asynchronous interfaces for converting text to speech, cloning voices, streaming audio in real-time, and building interactive voice agents. The library supports multiple voice models (Eleven v3, Multilingual v2, Flash v2.5, Turbo v2.5) with varying trade-offs between quality, latency, and language coverage.

The package is designed for developers integrating voice capabilities into applications—from simple text-to-speech conversion to complex multi-turn conversational agents with custom tool integration. It handles authentication via API key, manages WebSocket connections for streaming and agent interactions, and provides utilities like the play() function for local audio playback. The library depends on httpx and requests for HTTP communication, pydantic for data validation, and websockets for real-time bidirectional audio.

Use it for:

  • Convert written content to natural-sounding speech in multiple languages for accessibility or content delivery
  • Build interactive voice agents that listen to user input and respond with synthesized speech in real-time
  • Clone a custom voice from audio samples and use it for consistent branding across generated content
  • Stream audio output as it's being generated to reduce latency in real-time applications
  • Integrate voice capabilities into chatbots or customer service systems with tool-calling support

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Official Python SDK for ElevenLabs text-to-speech and conversational AI services, providing access to multiple voice models, voice cloning, real-time streaming, and agent-building capabilities.

Yes, if you need to integrate ElevenLabs' text-to-speech or voice agent services into a Python application. The package is actively maintained, has low install friction, carries no security vulnerabilities, and is MIT-licensed. The main constraint is that it requires a valid ElevenLabs API key and network access to their cloud service—it is not a local synthesis engine.

Install

elevenlabs on PyPI

pip

pip install elevenlabs

uv

uv add elevenlabs

poetry

poetry add elevenlabs

Installing elevenlabs

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release (2026-08-14) and 3064 repository stars. Six runtime dependencies (httpx, pydantic, pydantic-core, requests, typing_extensions, websockets) are all well-established libraries.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install elevenlabs

from elevenlabs.client import ElevenLabs

elevenlabs = ElevenLabs(api_key="YOUR_API_KEY")
audio = elevenlabs.text_to_speech.convert(
    text="Hello world",
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    model_id="eleven_v3"
)

Requires a valid ElevenLabs API key; the service is cloud-based and requires network access to the ElevenLabs API.

Verify before relying

  • Pricing and rate limits for different voice models and API tiers
  • Latency characteristics of each model variant (Flash, Turbo, v3, Multilingual v2)
  • Audio quality metrics or subjective comparisons across supported languages
  • Whether voice cloning requires additional account tier or approval

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 6 — httpx, pydantic, pydantic-core, requests, typing_extensions, websockets
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 10,436,657/month — #1,453 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: elevenlabs-2.64.0-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

text to speech API clientvoice synthesis Python SDKAI voice generationconversational AI agentsreal-time audio streamingvoice cloning SDKElevenLabs integration
text-to-speechvoice-aiapi-client

More Python Modules packages

Further reading