Thanks for sharing that you’ve noticed latency across all Gemini models. Let’s work together to figure out what might be causing this and how we can improve the performance:
• Keep an eye on important metrics like
Time to First Token (TTFT),
Time to First Byte (TTFB), and
Tokens per Second. These can help pinpoint if delays are happening during server processing, network transfer, or audio streaming.
• Make sure your deployment region is as close as possible to Google's API endpoints—this can really help reduce network latency.
• If you’re working with real-time applications, consider using optimized models like
gemini-2.0-flash-live-001 or
gemini-2.5-flash-native-audio-preview-09-2025, which are designed for low latency.
• Try tweaking model parameters such as
temperature (lower values often speed up responses) and
candidate count (setting it to 1 can help improve speed).
• For audio, using 16kHz mono PCM input and reducing resampling steps can make a positive difference.
If you’re comfortable sharing specific metrics like TTFT or TTFB, or details about your deployment setup, I’d be happy to offer more personalized advice. I’m here to help you get the best experience possible!
Sources:
Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... |
livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/real... |
web/src/components/models-showcase.tsx |
Google Gemini LLM | LiveKit Docs |
Gemini Live API plugin | LiveKit docs