worried-beard-73003
01/02/2026, 1:50 PMtall-airline-16756
01/02/2026, 1:51 PMtall-airline-16756
01/02/2026, 1:51 PMbase_url when you construct the RealtimeModel. Example in Python:
from livekit.plugins.google.beta.realtime import RealtimeModel
from livekit.plugins.google import AgentSession
session = AgentSession(
llm=RealtimeModel(
model="gemini-2.5-flash-native-audio-preview-09-2025",
base_url="<https://your-gemini-api-endpoint.com>",
proactivity=True,
enable_affective_dialog=True
),
vad=ctx.proc.userdata["vad"],
)
This routes the RealtimeModel requests to the endpoint you specify (useful for custom deployments or proxies). If you want, tell me:
• which SDK/language you’re using (Python, Node, etc.), and
• the endpoint format you need,
and I’ll give a snippet for that environment.
Sources: Gemini Realtime Agent with Live Vision | LiveKit docsworried-beard-73003
01/02/2026, 1:57 PMgoogle.realtime.RealtimeModel does not provide support for configuring a custom base URL. The current implementation prevents routing the realtime connection through a custom endpoint or gateway.
from livekit.plugins import google
session = AgentSession(
llm=google.realtime.RealtimeModel(
voice="Puck",
temperature=0.8,
instructions="You are a helpful assistant",
),
)tall-airline-16756
01/02/2026, 1:57 PMgoogle.realtime.RealtimeModel does not expose a base_url option. You're correct: the realtime model currently lacks that parameter, so you can't configure a custom gateway via the public API.
Options you can take now:
• Fork or patch the livekit-plugins-google source to add base_url into the RealtimeModel WebSocket connection logic.
• Use a network-level solution (reverse proxy, Envoy, iptables, or a Kubernetes service mesh) to intercept and reroute connections to the Gemini realtime domain.
• Override DNS so the default Gemini domain points to your gateway.
If you want, tell me:
• which SDK/language and package version you're using, and
• whether you can modify plugin source or only infrastructure,
and I’ll give a concrete patch suggestion or a proxy/DNS configuration example.
Sources: examples/voice_agents | livekit/livekit_composite | DeepWiki | Company directory phone assistant | LiveKit docs | Gemini Realtime Agent with Live Vision | LiveKit docs