retell-sdk
The official Python library for the retell API
What it is and what it does
Retell-sdk is the official Python client for the Retell REST API, a service for building and managing voice agents. It wraps the Retell API endpoints with typed request and response models, automatic retries, and configurable timeouts. The library supports both synchronous (Retell) and asynchronous (AsyncRetell) clients, both powered by httpx by default, with an optional aiohttp backend for async workloads.
The package is designed for developers building voice-based conversational AI applications. It handles authentication, error mapping (distinguishing connection errors, rate limits, and HTTP status codes), and provides Pydantic models for responses with helper methods like to_json() and to_dict(). Type hints throughout enable IDE autocomplete and type checking, and the library includes automatic retry logic for transient failures.
Use it for:
- Create and configure voice agents with custom LLM backends and voice settings via the agent.create() endpoint.
- Build async applications that manage multiple concurrent voice agent interactions without blocking.
- Integrate Retell voice capabilities into existing Python applications with full type safety and IDE support.
- Handle API errors gracefully by catching specific exception types (RateLimitError, AuthenticationError, etc.).
- Use the optional aiohttp backend to optimize concurrency performance in high-throughput async scenarios.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client library for the Retell REST API, offering synchronous and asynchronous access to voice agent creation and management with full type hints.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, uses a permissive license, and provides a well-typed, production-ready client for the Retell API. Install it if you are building voice agent applications with Retell.
Install
retell-sdk on PyPI
pip
pip install retell-sdkuv
uv add retell-sdkpoetry
poetry add retell-sdkInstalling retell-sdk
Before you install
Low friction installation with a pure-Python wheel and no compiled dependencies. Active maintenance with a release 4 days ago and recent commits. Supports Python 3.9 through 3.14.
License in practice
Apache-2.0 is permissive; you can use, modify, and distribute this library freely in commercial and private projects with minimal restrictions.
Quickstart
pip install retell-sdk
import os
from retell import Retell
client = Retell(api_key=os.environ.get("RETELL_API_KEY"))
agent_response = client.agent.create(
response_engine={"llm_id": "llm_234sdertfsdsfsdf", "type": "retell-llm"},
voice_id="retell-Cimo",
)
print(agent_response.agent_id)
Requires RETELL_API_KEY environment variable or explicit api_key parameter to authenticate with the Retell service.
Verify before relying
- Whether the MCP Server feature is production-ready or experimental.
- Performance characteristics and rate-limit behavior under high concurrency.
- Whether aiohttp backend provides measurable concurrency improvements over httpx in typical workloads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — anyio, cached-property, cryptography, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 577,082/month — #5,926 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: retell_sdk-5.61.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
opencode-aiProvides a Python client library for the…
permissive · top 15,000 on PyPI
agentex-clientProvides a typed Python REST client for the…
permissive · top 15,000 on PyPI
vapi-server-sdkA Python SDK for the Vapi API, providing…
unclear · top 15,000 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
perplexityaiProvides a Python client library for the…
permissive · top 5,000 on PyPI
cerebras-cloud-sdkProvides a Python client library for accessing…
permissive · top 5,000 on PyPI
reductoaiA Python client library for the Reducto REST…
permissive · top 5,000 on PyPI
runwaymlProvides a Python client library for the…
permissive · top 15,000 on PyPI
phonicPhonic is a Python client library for accessing…
permissive · top 15,000 on PyPI
simileA Python client library for interacting with…
permissive · top 15,000 on PyPI