LiveKit tunes Gemma 4 31B for real-time voice — 5x faster than GPT-4.1, at a sixth of the cost
- LiveKit has launched a new service: running Google's latest model, Gemma 4 31B, on its own LiveKit Inference platform, tuned specifically for voice agents.
- Gemma 4 is Google DeepMind's open-weight model family (Apache 2.0) — weights are public, it runs locally, and pretraining covers 140-plus languages. The 31B tier has 30.7B parameters, a 256K context window, and reads both text and images.
- The pitch to developers is simple: run Gemma 4 on our platform and get speed, low cost, and solid quality — a good fit for voice agents.
- Versus GPT-4.1: 5.2x lower response latency (192ms vs. 1006ms to first token), and roughly 83% cheaper — about a sixth of the cost.
- Capability holds up too: an 88% task completion rate on a hotel front-desk benchmark, beating GPT-4.1 (73%) and Gemini 2.5 Flash (64%).
- Why it's fast: LiveKit runs it on dedicated, co-located GPUs optimized specifically for low latency. Integration is a one-line change — just point the model at
google/gemma-4-31b-it.
Bringing Google's Gemma 4 onto its own platform, built for voice
Voice AI company LiveKit has launched a new service: running Google's latest open model, Gemma 4 31B, on its own LiveKit Inference platform — tuned specifically for voice agents.
First, a look at the official demo — see how fast it responds:
What exactly is this model
Before getting into how LiveKit optimized it, it's worth a minute on Gemma 4 itself. It's an open model family Google DeepMind released this year, built on an open-weight approach: the weights are public under the permissive Apache 2.0 license, so anyone can download and use them, running locally on their own machine instead of going through a cloud API.
LiveKit picked the 31B tier specifically: it's the most capable in the family, without being so large it's impractical to run — a good fit for server-side voice agents. Every number that follows comes from this tier running on LiveKit's platform.
Faster, cheaper, and just as sharp
LiveKit benchmarked Gemma 4 31B against several mainstream commercial models — GPT-4.1, GPT-4.1 mini, and Gemini 2.5 Flash. The takeaway in three words: faster, cheaper, sharper. Let's break each one down.
⚡Fast: near-instant responses
In a text chat, nobody minds if the AI takes two seconds to reply. A phone call is different: a pause over half a second after you stop talking feels awkward, and past a second, the whole call starts to feel fake. The metric for "how fast it starts talking" is called first-token latency — how long the model takes to produce its first word after you finish speaking. Gemma 4 31B needs just 192 milliseconds; GPT-4.1 needs 1006 milliseconds. That 800-plus-millisecond gap is roughly the line between "instant" and "awkward."
💰Cheap: under a fifth of the price
The cost comparison is straightforward with real numbers. Large models charge per token (roughly a word or word-fragment), with separate input and output rates. Here's the list price per million tokens (USD):
| Per million tokens | Input | Output |
|---|---|---|
| Gemma 4 31B LiveKit | $0.40 | $1.20 |
| GPT-4.1 mini OpenAI | $0.40 | $1.60 |
| GPT-4.1 OpenAI | $2.00 | $8.00 |
Against GPT-4.1, the input price is a fifth (0.4 vs. 2 dollars) and the output price is under a seventh (1.2 vs. 8 dollars). Blended at the roughly 3:1 input-to-output ratio typical of voice workloads, the combined cost comes out to about a sixth of GPT-4.1's — roughly 83% cheaper. Even against GPT-4.1 mini, which is also positioned as a budget option, the output price is still lower. For voice services running around the clock and paying per token, that adds up to real savings.
🧠Sharp: cheap and fast without getting dumber
Cheap and fast naturally raises the question: did it get dumber? LiveKit broke capability down into separate scores using the same hotel front-desk benchmark. The results come in near-perfect across the board: tool-calling accuracy, multi-turn coherence, and factual accuracy all hit 100, instruction-following scores 98, conciseness scores 96, and overall task completion lands at 88. For a voice assistant, following a process step by step and remembering what was said earlier are exactly what these scores measure.
Lay speed, cost, and capability side by side in one table, and Gemma 4 31B sweeps all three: lowest latency, lowest cost, highest capability score. For real-time voice, it's the most cost-effective pick of the bunch.
| Model | First-token latency | Relative cost | Capability score |
|---|---|---|---|
| Gemma 4 31B LiveKit Inference | 192ms | 1× | 88 |
| GPT-4.1 mini OpenAI | 802ms | ~1.2× | 69 |
| Gemini 2.5 Flash | 911ms | ~1.4× | 64 |
| GPT-4.1 OpenAI | 1006ms | ~6× | 73 |
Why the same model runs faster on LiveKit
The same Gemma 4 31B model can run several times faster or slower depending on the platform. LiveKit says this is a deliberate choice — both its architecture and hardware are optimized specifically for speed.
Throughput is how many requests a server can handle per second — higher throughput spreads costs thinner. Latency is how fast a single response comes back — that's what users actually feel. Most inference platforms optimize for throughput: take on more work per server to drive costs down, at the expense of requests queuing up and latency rising. LiveKit does the opposite — it accepts less throughput to keep latency as low as possible, because a voice assistant can't afford to wait even a second.
On the hardware side, LiveKit runs on dedicated GPUs co-located in the same data center, keeping the model and compute close together with fewer hops. In testing, LiveKit takes just 354 milliseconds from the end of your sentence to hearing the first word back; a conventional router like OpenRouter, which forwards requests across multiple providers, takes 1876 milliseconds. Tokens generated per second tell the same story: 158 versus 33.
Worth noting: OpenRouter forwards requests across multiple third-party providers, so latency and availability vary by route — the figure here reflects the best Gemma 4 31B route it could select at test time.
Switch over with one line of code
Integration is simple. If you're already building voice agents with LiveKit Agents, switching to Gemma 4 31B takes one line of configuration pointing at the model — and you're immediately running on LiveKit's GPU infrastructure.
# Gemma 4 31B,跑在 LiveKit 自己的 GPU 上
from livekit.agents import AgentSession
session = AgentSession(
llm="google/gemma-4-31b-it",
)
LiveKit also spells out its methodology: every number on the page comes from the same open-source "hotel front desk" reference agent (published on GitHub), tested with the same benchmark process, the same latency definition, and real voice-call conditions. First-token latency is sampled turn by turn across every scenario; capability scores come from the same set of conversations, graded task by task. The comparisons are against GPT-4.1, GPT-4.1 mini, and Gemini 2.5 Flash. All figures are LiveKit's own — the official page is the final word.
Voice AI's default brain swaps slow, pricey GPT-4.1 for fast, cheap Gemma 4
LiveKit runs Google's open model Gemma 4 31B on its own platform, tuned specifically for voice — here's the one-page, illustrated case for why it's now the default.
↓ Read the whole page · includes one animated figure
A voice agent is an AI that talks to you in real time over the phone or in an app, and gets things done along the way — phone support, voice assistants, that category. Behind it sits a large model as the "brain," responsible for understanding you and putting together a reply.
✘ But the wait before it responds often runs past a second — slow enough to break the illusion, and expensive too
Because the default has been models like GPT-4.1 — tuned to handle any conversation, not to respond instantly, so it ends up slow and expensive.
LiveKit is a voice AI company. It has brought Google's open model Gemma 4 31B (open, meaning the weights are public and free for anyone to use) onto its own platform, tuned specifically for voice, pitching it as the new default brain for voice agents. Ask it the same question, and the response wait drops from over a second to under 200ms, at a sixth of the cost. Integration is still just a one-line change.
But the same Gemma model can run several times faster or slower depending on the platform — the speed advantage isn't about the model itself, it's about where and how it runs.
Why does the same Gemma 4 31B run faster on LiveKit? It comes down to how it's deployed. XiaoHu calls the "LiveKit Hotel" to book a room — after saying "I'd like to book a room," the two routes respond at wildly different speeds:
Set it next to GPT-4.1, the current default for voice, and the most noticeable difference is the wait before a response. Ask the same question, and one feels instant while the other visibly stalls:
it answered?
of dead air — awkward
- × Default is GPT-4.1 — response wait tops a second
- × Tuned for any conversation, not for instant replies
- × Slow, and expensive too
GPT-4.1 takes 1006
why's yours so fast?!
no queue before it answers.
standard route takes 1876ms
only 33
these latency, cost, and capability numbers all come from LiveKit's own "hotel front desk" benchmark — no third party has reproduced them yet.