Product launch · XiaoHu Explains

LiveKit tunes Gemma 4 31B for real-time voice — 5x faster than GPT-4.1, at a sixth of the cost

LiveKit runs Google's Gemma 4 31B on its own inference platform, tuned specifically for voice agents: faster, cheaper, and just as capable — swap it in with a one-line code change. All figures are LiveKit's own benchmarks.
30-second rundown
  • 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.
This is a breakdown of LiveKit's official product page. Every latency, cost, and capability figure here comes from LiveKit's own benchmarks — run on its own platform using its own "hotel front desk" reference agent. Cost comparisons use LiveKit Inference's list prices. None of it has been independently verified.
What LiveKit did

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.

The pitch boils down to one line: run Gemma 4 on our platform, and you get speed, low cost, and quality good enough for voice agents that talk to people in real time — phone support, voice assistants, that kind of thing.
Three numbers to keep in mind: the wait before a response is just 192ms (GPT-4.1 takes 1006ms), the cost is roughly a sixth of GPT-4.1's, and the hotel front-desk benchmark task completion rate is 88% (versus 73% for GPT-4.1).
192ms
The wait before it responds — shorter feels more human
1/6
Roughly a sixth of GPT-4.1's cost
88/100
Task completion rate on the hotel front-desk benchmark

First, a look at the official demo — see how fast it responds:

Official Google release video (bilingual captions): a voice demo at the "LiveKit Hotel" front desk, with the receptionist powered by Gemma 4 31B completing a booking conversation in real time — then showing the 192ms first-token and 354ms first-audio latency. Source: Google Gemma
Meet Gemma 4 first

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.

Who made it
Google DeepMind. An open model under the Apache 2.0 license, free for commercial use.
Runs locally?
Yes. The family spans five sizes (E2B, E4B, 12B, 26B A4B, 31B) — the smallest fits on high-end phones and laptops, while the 31B tier suits consumer GPUs and workstations. Ready-to-use versions are available on Ollama and LM Studio.
Languages
Pretraining covers 140-plus languages, with out-of-the-box support for 35-plus, including Chinese.
The 31B used here
A 30.7B-parameter dense model with a 256K context window (roughly 200,000-plus words), reads both text and images, and supports native function calling — handy for building agents.

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.

Core pitch

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."

First-token latency comparison (ms, lower is faster)
Gemma 4 31B
LiveKit
192ms
GPT-4.1 mini
OpenAI
802ms
Gemini 2.5 Flash
Google
911ms
GPT-4.1
OpenAI
1006ms

💰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 tokensInputOutput
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.

Capability breakdown (out of 100, higher is better)
Tool-calling accuracy
100
Multi-turn coherence
100
Factual accuracy
100
Instruction-following
98
Conciseness
96
Overall task completion
88

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.

ModelFirst-token latencyRelative costCapability score
Gemma 4 31B
LiveKit Inference
192ms88
GPT-4.1 mini
OpenAI
802ms~1.2×69
Gemini 2.5 Flash
Google
911ms~1.4×64
GPT-4.1
OpenAI
1006ms~6×73
How it's done

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.

First, two terms: throughput and latency

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.

LiveKit · Dedicated, co-located GPUs
354ms
From your last word to the first word back
158
Tokens generated per second
OpenRouter · Best route available at test time
1876ms
From your last word to the first word back
33
Tokens generated per second

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.

For developers

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.

Point a voice agent at Gemma 4 31B (one line)
# 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.

🧰 Quick-start card · LiveKit Inference (Gemma 4 31B)
PriceAbout a sixth of GPT-4.1's cost (LiveKit Inference list price, blended at a 3:1 input-to-output ratio)
RequirementsAn existing LiveKit Agents project — just point the model at google/gemma-4-31b-it, a one-line change
Source: LiveKit product page, "Gemma 4 31B on LiveKit Inference," https://livekit.com/products/inference/gemma-4. All latency, cost, and capability figures on the page are LiveKit's own benchmarks, run on its own platform with its own reference agent, and have not been independently verified. This piece is a breakdown for quick understanding — check the official page for details and current pricing.