Gemini API Randomly returning Invalid API Key

Hello there,

Since I started using “gemini-3-flash-preview“, I have been randomly getting error saying “Invalid API Key“ and whenever I process the request again, I run successfully.

For example, I send about 10 requests to the API, at least, 2 of the requests will come back with invalid API key.

I am currently using the “google.genai“ python sdk.
What could be the problem?