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.
نظرة عامة

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
النقاط الرئيسية
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
النقاط الرئيسية
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
الميزة

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.
مصمم لمراكز الاتصال، لا للعروض التوضيحية

Retell هي منصة الصوت بالذكاء الاصطناعي التي تعتمد عليها مراكز الاتصال المؤسسية

يتيح لك Retell إنشاء واختبار ونشر وكلاء هاتفيين بالذكاء الاصطناعي يتعاملون مع حجم مكالمات حقيقي، ليركّز فريقك وقته على المحادثات التي تحتاج إلى إنسان.
متوافق مع SOC 2 Type II وHIPAA. موثوق به من فرق تُجري 1.000+ مكالمة يوميًا.
كيف تعمل

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.
 
أبرز المزايا

مصمَّم للتعامل معالواقع الفعلي

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.
حالات الاستخدام

تأثير مُثبَت عبر
مختلف القطاعات

Inbounds
نجحت Inbounds.com في توسيع حملات اتصالها وتحسينها دون التضحية بالإشراف البشري الضروري لنجاح عملائها.
«إنّ تبنّينا المبكّر لـ Retell AI، إلى جانب قدرتنا على تخصيصها بعمق وبناء بنيتنا التحتية الخاصّة حولها، يمنحنا حقًّا ميزة في هذا القطاع.»
Leonardo Danconia
CEO and Cofounder, inbounds.com
Swtch Energy
كانت تكلفة فريق دعم العملاء لدينا ترتفع بنسبة 300 إلى 400 بالمئة سنويًا. وبإدخال Retell وبناء Lucas، تمكّنا من تقليل ذلك العبء بأكثر من 50 بالمئة، وتحسين هوامش SaaS لدينا بشكل كبير، ومواصلة دعم عملائنا أثناء حالات النموّ المرتفع والمواقف العاجلة.
Matic Insurance
بينما استكشفنا طرقًا لتحقيق كفاءة أكبر في أعمالنا على مدى الـ 18 إلى 24 شهرًا الماضية، أصبح الاستفادة من تقنيات الذكاء الاصطناعي جزءًا أساسيًا من تلك الاستراتيجية. فبذلك، نتمكّن من خفض تكلفة اكتساب عملاء جدد، وفي الوقت نفسه، نحافظ على تكلفة الاحتفاظ بهم وخدمتهم طوال دورة حياتهم معنا أو حتى نخفضها.
Brian Barker
Product Manager
عمليات التكامل

عمليات تكامل
سلسة مع
منظومتك التقنية

استعرض جميع عمليات التكامل
  • 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
اكتشف المزيد

استكشف المزيد
من الميزات

اكتشف كيف يمكن لمنصّة Retell AI أن تُحوّل كل جانب من جوانب عمليات مكالماتك. تعرّف على النطاق الكامل من القدرات المصمّمة لأتمتة أذكى وكفاءة أعلى وتجربة عملاء مُحسَّنة.

نظرة عامة على المنافسين

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.

حان وقت توظيف مركز اتصالك بالذكاء الاصطناعي