How to build a voice agent

Build a voice agent in three steps: key, create, connect.

  • POST /v1/agents to create an agent
  • Python and TypeScript SDKs
  • Connect to phone (SIP) or WebRTC
  • 60 free minutes to start

Definition

Building a voice agent used to mean wiring together a speech-to-text service, a language model, a text-to-speech service, and a telephony provider, then keeping all four in sync. With an all-in Voice Agent API, it is three steps: get a key, create the agent, connect it to a surface.

Step 1: get a key

Sign up and generate an API key from the dashboard. Set it as SPEECHIFY_API_KEY so the SDKs pick it up. 60 minutes are free every month with commercial use, so you can test with real calls before paying anything.

Step 2: create the agent

Create an agent with one POST to /v1/agents, setting a prompt, a voice, a first message, and a language. The Python (speechify-api) and TypeScript (@speechify/api) SDKs wrap the same call. That single request gives you a working agent.

Step 3: connect a surface

Point the agent at a surface. Provision a phone number or connect your own SIP trunk for calls, or run the agent over WebRTC in a browser. The same agent configuration drives phone and web, so you build once and deploy to both.

Next steps

From a basic agent, add tools so it can act on your systems, a knowledge base so it answers from your content, and testing so regressions surface before a real caller hits them. Each is incremental on top of the three steps.

FAQ

Frequently asked questions

How do you build a voice agent?
Three steps. Get an API key from the dashboard, create an agent with one POST to /v1/agents that sets a prompt, a voice, and a first message, then connect the agent to a phone number or a web session. The Python and TypeScript SDKs wrap the same API.
Do I need to stitch together STT, an LLM, and TTS myself?
No. The Voice Agent API bundles speech-to-text, the LLM, text-to-speech, and telephony behind one endpoint. You configure the agent; the platform runs the pipeline. That is the difference between an all-in API and assembling a stack from separate vendors.
How long does it take to get a working agent?
The first agent is one API call, so a basic working agent takes minutes. Adding tools, a knowledge base, and telephony is incremental from there. 60 free minutes a month let you test with real calls before paying.

Start building

Build a voice agent in three steps: key, create, connect.

Privacy preferences

Choose what we may store on this device. You can change this at any time from the footer.

Strictly necessary

Sign-in, security, load balancing, and remembering your privacy choices. These cannot be switched off.

Always on

Analytics

How the site is used in aggregate - which pages get read, where people get stuck - so we can improve it.

Marketing

Measures which campaigns bring people here, and lets us show relevant ads on other platforms.