Google API request timed out (5000ms) mid-call with Gemini Flash 2.5

Hi everyone,

I am encountering an issue with gemini-2.5-flash where the call drops with a timeout error. Error: Error: Google API request timed out after 5000ms. ... at listOnTimeout

Context:

My maxDurationSeconds is set to 1300s.

I've successfully had 9-minute calls with this setup before.

This specific call dropped exactly at the 5:01 mark.

It seems like a latency spike caused the model to take longer than 5 seconds to generate a response, triggering the timeout.

My question: Is the 5000ms request timeout hardcoded for the Google provider, or can I increase this limit in the Vapi configuration? The 5s window seems too tight for occasional latency spikes on experimental models.

Thanks for your help!
Snimka_obrazovky_2025-11-18_o_21.33.03.png
Was this page helpful?