Python code that starts an outbound call with the Retell SDK's create_phone_call, and the 201 response showing a phone_call with status registered and direction outbound.

Voice AI API for developers

Agents, calls and call events from your code.
The Retell API lets you create AI voice agents, place and receive phone calls, and get call events in your own code. Retell runs the telephony, speech and language model layers, so you work against one REST API or the official Node.js and Python SDKs, and you can connect your own LLM over WebSocket.
Visão Geral

One API for agents, calls and call data

A voice AI API lets your software create AI voice agents and run phone conversations with them from code. With Retell, you create and publish agents, start outbound calls, answer inbound ones on your numbers, and receive call events and transcripts at your own endpoint. Retell handles the telephony, speech recognition, language model and voice, so you don't connect those providers yourself.

Agents
Principais Pontos
Create a response engine, then the agent
Set voice, language and call limits in code
Publish immutable versions when ready
Provision agents for many customers
Calls
Pontos Chave
Outbound calls with one API request
Inbound calls on Retell or imported numbers
Browser calls with the Web SDK
Dynamic variables and metadata per call
Events and your own LLM
Key Points
Webhooks for call started, ended and analyzed
Signed with an x-retell-signature header
Custom LLM over one WebSocket per call
Failed webhooks are retried up to 3 times
Recurso

Bring your own LLM over WebSocket

With a custom LLM, Retell still handles telephony, transcription, turn-taking and speech, and opens one WebSocket to your server per call. It sends the live transcript and asks for a response whenever the agent should speak, and your server streams back what the agent says. Use it when prompts and transcripts must stay in your own infrastructure, or when you run a model Retell doesn't offer. For most agents, Retell recommends its own single prompt or conversation flow agents.

Retell Create agent dialog with the Other options menu open, showing Custom LLM next to the Single prompt and Conversational flow agent types.
Feito para contact centers, não para demos

A Retell é a plataforma de voz com IA sobre a qual os contact centers corporativos operam

A Retell permite criar, testar e implantar agentes telefônicos de IA que lidam com volume real de chamadas, para que sua equipe dedique o tempo às conversas que precisam de uma pessoa.
Em conformidade com SOC 2 Type II e HIPAA. Com a confiança de equipes que gerenciam 1.000+ chamadas por dia.
Como Funciona

How to go from API key to live call

Retell dashboard Settings, API Keys tab: masked API keys, the Add Key menu with API Key and Public Key, and the Public Keys tab.
Connect
Create an API key in the API Keys tab of the dashboard and keep it on your server. Then install an SDK:
Node.js: npm i retell-sdk
Python: pip install retell-sdk
Or call the REST API at https://api.retellai.com with the key as a bearer token
 
Retell Agents page: Create an Agent, Voice Agent, then the Create agent dialog with Single prompt, Conversational flow and Custom LLM under Other options.
Build
Create a Retell LLM response engine with your prompt and tools, then create an agent that attaches it to a voice, a language and call settings. Test the draft with a web call, then publish a version through the API or the dashboard.
 
Retell Phone Numbers page: a number bound to an inbound call agent with an inbound webhook option and an outbound call agent, plus Make an outbound call.
Call and listen
Bind the agent to a phone number and start outbound calls with create phone call. Inbound calls to the number reach its inbound agent. Set a webhook URL to receive call_started, call_ended and call_analyzed events, and verify each one with the SDK before you process it.
 
Destaques do Produto

Projetado para Lidar
com o Mundo Real

Keys stay on your server.
API keys authenticate REST calls as bearer tokens and stay on your server, while browser web calls use a public key limited to your domains. Webhooks carry a signature you verify with the SDK.
Limits you can plan around.
Call creation allows 1,000 requests per 10 seconds per organization. Pay-as-you-go workspaces include 20 concurrent calls, and you can raise the limit from the dashboard.
Context on every call.
Pass dynamic variables and metadata when you create a call, or override the agent for one call. For inbound calls, the inbound webhook can pick the agent and add context before the call connects.
Works from your coding assistant.
Retell's MCP server gives Cursor, Claude Code and other MCP clients access to the same API, so an assistant can create agents, place calls and run tests with your API key.
Casos de Uso

Impacto Comprovado Em 

Diversas Indústrias

Inbounds
A Inbounds.com escalou e otimizou suas campanhas de chamadas sem sacrificar a supervisão humana essencial para o sucesso de seus clientes.
“Nossa adoção antecipada da Retell AI, combinada com a nossa capacidade de personalizá-la profundamente e construir nossa própria infraestrutura em torno dela, realmente nos dá uma vantagem no setor.”
Leonardo Danconia
CEO e Cofundador, inbounds.com
Swtch Energy
O custo da nossa equipe de suporte ao cliente estava aumentando de 300 a 400 por cento ao ano. Ao introduzir a Retell e construir o Lucas, conseguimos reduzir essa carga em mais de 50 por cento, melhorar drasticamente nossas margens de SaaS e ainda dar suporte aos nossos clientes durante situações de alto crescimento e urgentes.
Carter Li
CEO
Matic Insurance
À medida que exploramos formas de gerar mais eficiência em nosso negócio nos últimos 18 a 24 meses, o uso de tecnologias de IA se tornou uma parte fundamental dessa estratégia. Com isso, conseguimos reduzir o custo de aquisição de novos clientes e, ao mesmo tempo, manter, ou até reduzir, o custo de retê-los e atendê-los ao longo de todo o seu ciclo de vida conosco.
Brian Barker
Gerente de Produto
Integrações

Integrações Perfeitas

com a Sua Pilha Tecnológica

Ver Todas as Integrações
  • Hubspot
  • Twilio
  • Vonage
  • Go High Level
  • n8n
  • Zapier
  • Salesforce
  • Hubspot
  • Twillio
  • Vonage
  • Go High Level
  • 8n8
  • Zapier
  • Salesforce
  • Avaya
  • Genesys
  • Five9
  • Amazon Connect
  • Telnyx
  • Make
  • Cal.com
  • Avaya
  • Genesys
  • Five9
  • Amazon Connect
  • Telnyx
  • Make
  • Cal.com
Saiba Mais

Descubra Mais Recursos

Explore como o Retell AI pode transformar cada parte das suas operações de chamada. Veja a gama completa de recursos projetados para automação mais inteligente, melhor eficiência e experiência aprimorada do cliente.

Visão geral dos concorrentes

What the Retell voice AI API covers

A voice AI API is an interface that lets your code create AI voice agents and run calls with them. Retell's API covers calls and chats, voice and chat agents, phone numbers, voices, knowledge bases and tests, plus custom telephony and custom LLM integrations. Every REST request goes to one base URL, https://api.retellai.com, with your API key as a bearer token, and Retell runs the telephony, speech and language model layers of each call.

Diagram of how the Retell voice AI API fits a software stack. Your backend calls the REST API at https://api.retellai.com with the Node.js or Python SDK or a bearer API key, to create and publish agents, start phone and web calls, and manage phone numbers, voices and knowledge bases. Retell runs telephony, speech recognition, the LLM and the voice, using the Retell LLM or your own LLM over one WebSocket per call. Callers reach the agent by phone, outbound or inbound on Retell or imported numbers, or in a browser through the Web SDK with a public key. Call events call_started, call_ended and call_analyzed go to your webhook endpoint, signed with x-retell-signature. Limits: call creation 1,000 requests per 10 seconds per organization, 20 concurrent calls included on pay-as-you-go, webhooks have a 10 second default timeout and up to 3 retries.
How your code, Retell and your callers connect through the Retell API. Diagram by Retell AI, November 2026. Source: Retell API reference.

The building blocks and where they are documented

What you want to do How it works in the API Docs
Create an agent Create a Retell LLM response engine with your prompt and tools, then an agent that attaches it to a voice, language and call settings. Publish a version when it is ready. Create an agent with the SDK
Place outbound calls POST /v2/create-phone-call with a from number you bought from or imported to Retell and a to number in E.164 format Create Phone Call
Receive inbound calls Bind an inbound agent to the number. An optional inbound webhook can pick the agent and add dynamic variables before the call connects. Inbound call webhook
Talk in the browser Create a web call and connect it with the Web SDK, using a public key in the browser and your API key only on the server Make a web call
Get call events Account-level or agent-level webhooks POST each event with the call object. Verify the x-retell-signature header with the SDK. Webhooks overview
Run your own LLM Retell opens one WebSocket to your server per call and asks for a response each time the agent should speak Custom LLM overview
Use your own carrier Import numbers over elastic SIP trunking, or dial calls to Retell's SIP URI Custom telephony

A first outbound call in Python

This sample from the Create Phone Call reference starts a call from a number on your account. The agent bound to that number for outbound calls handles the conversation.

import os
from retell import Retell

client = Retell(
    api_key=os.environ.get("RETELL_API_KEY"),  # This is the default and can be omitted
)
phone_call_response = client.call.create_phone_call(
    from_number="+14157774444",
    to_number="+12137774445",
)
print(phone_call_response.agent_id)

Source: Retell API reference, Create Phone Call, read November 9 2026. The Node.js version is on the same page.

Our glossary explains what a voice API is and how a voice API differs from a voice AI API, and how webhooks push events to your systems. If you plan to bring your own model, compare the options in our guide to the best LLM for voice AI agents. Agents that run on the Retell LLM can draw on a Retell knowledge base, which the API manages too, and every agent's post-call analysis arrives in the call_analyzed webhook.

Voice AI API FAQ

What is a voice AI API?

A voice AI API is an interface that lets your code create AI voice agents and run phone or browser conversations with them. Retell's API covers agents, calls, phone numbers and call events, while Retell runs the telephony, speech recognition, language model and voice on each call.

Which SDKs does Retell offer?

Retell has official SDKs for Node.js and TypeScript and for Python, both published as retell-sdk on npm and PyPI. The Node.js SDK needs Node.js 18.10.0 or later, and the Python SDK needs Python 3.9 or later. For calls in the browser, the Retell Web SDK (retell-client-js-sdk) connects the user's microphone and speakers to your agent.

Can I use my own LLM with the Retell API?

Yes. Point the agent at your own WebSocket server, and Retell opens one connection per call, sends the live transcript and asks for a response whenever the agent should speak. You take on latency, uptime and reconnection, and a custom LLM agent can't be tested in the LLM playground or with simulation tests, so Retell recommends its single prompt or conversation flow agents for most builds.

Which webhook events does Retell send?

Voice agents send call_started, call_ended and call_analyzed by default. The webhook_events setting on an agent can add transcript_updated and the transfer events, or narrow the list. Each webhook is a POST with a 10 second timeout by default, and it is retried up to 3 times if your endpoint does not return a 2xx status.

What are the Retell API rate limits?

Limits apply per organization and route: 1,000 call creation requests per 10 seconds, 30 list requests per 10 seconds, and 100 requests per 10 seconds for other endpoints. Over the limit, the API returns HTTP 429 with a RateLimit-Reset header that says how many seconds to wait. Outbound calls also count against your concurrent call limit.

How much does the Retell API cost?

API and webhook access are included on the pay-as-you-go plan, so you pay for usage. Voice agents start from $0.07 per minute, new accounts get $10 in free credits, and 20 concurrent calls are included.

Can I keep my existing phone numbers and carrier?

Yes. With custom telephony you can import your numbers over elastic SIP trunking, which Retell recommends, or dial calls to Retell's SIP URI if your provider does not support elastic SIP trunking. Both options work with any agent type.

Where is the full Retell API reference?

The API reference lives on docs.retellai.com. It covers the base URL, https://api.retellai.com, bearer-token authentication with your API key, and every endpoint, and the endpoint pages include Node.js and Python code samples.

É hora de contratar seu call center de IA