Morak
All comparisons

OpenAI Realtime API vs LiveKit Agents: use one, or both?

OpenAI Realtime direct ($32/$64 per 1M audio tokens) or inside LiveKit Agents ($0.01 a session minute): compare setup, phone calls, billing and who runs what.

By Morak · Sources and pricing checked

A choice of how much you build

This is less a choice between rivals than a choice of how much you build. OpenAI's Realtime API is a speech model you connect to directly. LiveKit Agents is a framework and hosting service that can run that same model, or a different one, inside an agent your team writes. Our recommendation: go direct when the product is one OpenAI voice experience and your engineers will own sessions, tools and recovery. Use LiveKit when you want phone numbers, agent hosting and the freedom to change models in one place.

You are building one OpenAI voice experience

The current realtime model, gpt-realtime-2.1, supports function calling and is billed by tokens. Go direct when you have chosen OpenAI's speech model and want nothing between your application and it. Your engineers own session handling, tool calls and what happens when a connection drops.

You want to keep your model options open

LiveKit Agents runs OpenAI realtime models through LiveKit Inference, billed by LiveKit, or through the OpenAI plugin with your own key. It can also pair a realtime model with a separate voice, or use a different speech pipeline entirely. Choose it when you expect to change components.

You need phone calls quickly

LiveKit Cloud offers US local and toll-free numbers and has tested SIP trunks from Twilio, Telnyx and others. OpenAI's telephony guide has you buy the number from a SIP trunking provider and accept each call from a webhook in your own backend. Count that work before you choose.

What your team is responsible for

Scroll the table horizontally to compare both setups.

Responsibilities and billing for a direct OpenAI Realtime API integration compared with LiveKit Agents.
Your taskOpenAI Realtime API, directLiveKit Agents
Running the conversationYour application opens the session, sends instructions and handles events.You write an agent with the LiveKit framework. LiveKit Cloud or your own servers run it.
Choosing the modelOpenAI realtime models.OpenAI realtime models, or separate speech-to-text, language model and voice providers.
Paying for the modelOpenAI bills tokens: $32 per million audio input and $64 per million audio output.On your LiveKit bill through LiveKit Inference, or direct to OpenAI with your own key.
Paying for hostingYour own servers.Agent session minutes: 1,000 included on the free Build plan, 5,000 on Ship at $50 a month, then $0.01 each.
Getting a phone numberBuy one from a SIP trunking provider and point the trunk at your OpenAI project.One free US local number on LiveKit Cloud, or connect your own SIP trunk.
Transferring to a personYour backend sends a refer request with the destination. Your SIP provider completes it.Cold transfers and agent-assisted warm transfers are supported.
Running calls at onceCheck the rate limits on your OpenAI account.5 concurrent agent sessions on Build, 20 on Ship and up to 600 on Scale.

How human transfers work

OpenAI: your backend controls the call

A call reaches your OpenAI project from your SIP provider, and OpenAI sends your backend a webhook. Your backend accepts or rejects the call, attaches a side connection for tools and transcripts, and can send a refer request to move the caller to a phone number or SIP address. Your provider completes the transfer, so test it on your own trunk.

LiveKit: cold or agent-assisted transfer

LiveKit supports cold transfers, which hand the call over at once, and warm transfers in which the agent briefs the person first. You create an inbound trunk and dispatch rules that route calls to your agent. On a third-party trunk, confirm your provider supports the transfer method you plan to use.

What 1,000 minutes cost at list price

One month, 1,000 minutes of phone calls on one US local number, using an OpenAI realtime model on both routes. OpenAI bills tokens, not minutes, so the model line cannot be reduced to one figure without measuring your own calls.

The model's token price is the same either way. LiveKit adds a hosting fee that is free at this volume and removes work your engineers would otherwise do. Decide on who will build and run the session layer, not on the hosting fee.

Scroll the table horizontally to compare both setups.

Budget worksheet for 1,000 inbound minutes, including charges that still need an estimate.
Cost componentOpenAI Realtime API, directLiveKit Agents with OpenAI Realtime
Model usage$32 per million audio input tokens and $64 per million audio output tokens. Measure a sample of real calls.The same token prices with your own key, or LiveKit Inference at model prices. LiveKit describes $50 of inference credit as roughly 1,000 minutes.
Agent hostingYour own server costs.$0 on Build, which includes 1,000 agent session minutes. Ship is $50 a month with 5,000.
Phone minutesYour SIP provider's rate. Twilio lists $0.0085/min for US local inbound, about $8.50.50 inbound minutes included on Build and 100 on Ship, then $0.01/min. Up to 1,000 third-party SIP minutes are included on Build.
Phone numberYour provider's fee. Twilio lists $1.15 a month.One US local number free, then $1 a month each.
EngineeringSession handling, webhooks, tools, reconnection and monitoring.Agent code and tools. LiveKit supplies sessions, hosting and telephony.

A minute of call time is not a fixed number of tokens. Silence, interruptions and long instructions all change it. Cached audio input is listed at $0.40 per million tokens, and text at $4 input and $24 output.

LiveKit lists HIPAA from its Scale plan, which starts at $500 a month. Build and Ship do not list it.

What to test before committing

Build the same appointment-change call both ways. Interrupt the agent during a tool call, disconnect and reconnect the caller, and make the backend respond slowly. Compare how each recovers, the audio tokens used and the engineering hours spent. Do not choose from a polished voice demo.

  1. Tokens per call

    Record audio input and output tokens for twenty real calls. Use the average to turn the token prices into a cost per minute for your conversations.

  2. A dropped connection

    Cut the network mid-sentence. Note whether the caller hears silence, and what your code had to do to resume.

  3. A transfer on your trunk

    Move a live call to a person on the SIP provider you will use in production, and check what happens when nobody answers.

  4. Peak concurrency

    Run the number of calls you expect at your busiest moment against your OpenAI limits and your LiveKit plan.

Common questions

Can I use OpenAI's Realtime API inside LiveKit Agents?

Yes, in two ways. LiveKit Inference runs OpenAI realtime models on your LiveKit credentials and bills you through LiveKit. The OpenAI plugin connects directly to OpenAI with your own API key.

How is the OpenAI Realtime API priced?

By tokens. OpenAI lists gpt-realtime-2.1 at $32 per million audio input tokens and $64 per million audio output tokens, with cached audio input at $0.40 and text at $4 input and $24 output.

Is gpt-realtime deprecated?

OpenAI's model page marks the original gpt-realtime model as deprecated. The current listed model is gpt-realtime-2.1, at the same audio token prices. Check which model name your code uses.

Does LiveKit bill OpenAI tokens twice?

No. With LiveKit Inference, LiveKit bills the model usage. With the OpenAI plugin and your own key, OpenAI bills it. Either way you pay LiveKit separately for agent session minutes and telephony.

Does OpenAI provide phone numbers?

No. OpenAI's telephony guide says to use a SIP trunking provider, such as Twilio, to connect a phone number, and to buy the number from that provider.

Sources and pricing references (7)

Official documentation and pricing used for this comparison.

Developer API

OpenAI Realtime API

Realtime speech-to-speech API for building low-latency voice agents over WebRTC, WebSocket, or SIP.

Developer API

LiveKit Agents

Open-source framework and managed cloud runtime for building and deploying realtime voice agents.