Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Vertex AI with Gemini - API - random delays and errors

Hi!

I'm facing inconsistent performance with the Vertex AI Gemini API (Flash 2.0). Latency fluctuates significantly, sometimes exceeding a minute, and I'm seeing intermittent, random errors. The issues are temporary, with performance returning to normal after a delay. I've ruled out input/output as the cause. Is it possible these problems are related to quota or other service limitations?

 

Screenshot 2025-02-26 at 7.14.08 AM (2).png

Solved Solved
0 2 1,340
1 ACCEPTED SOLUTION

Hi @TomerH,

Welcome to Google Cloud Community!

When encountering inconsistent performance, including latency fluctuations and intermittent errors, with the Vertex AI Gemini API, it's important to consider quota and service limitations as potential causes. Here are the possible causes and solutions:

1.Quota Limits:

  • Vertex AI APIs may have quota limits on the number of requests, usage per minute, or specific resource limits. If you’re hitting these limits, the system might be throttling requests, causing the latency spikes and errors.
  • You can check your quota in the Google Cloud Console under IAM & Admin > Quotas. Look for any quotas related to the Vertex AI service or API calls that might be nearing their limit.

2. API Rate Limits:

  • APIs often implement rate limiting to avoid overloading the service. If too many requests are sent in a short amount of time, you might encounter temporary performance degradation or error responses.
  • Look into the API rate limits and make sure you're adhering to the recommended thresholds.

3. Service Availability and Regional Issues:

  • Fluctuating latency could be related to service disruptions in specific regions. Check if there are any ongoing outages or maintenance activities affecting the Vertex AI service in your region you can monitor the Google Cloud Status Dashboard

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

2 REPLIES 2

Hi @TomerH,

Welcome to Google Cloud Community!

When encountering inconsistent performance, including latency fluctuations and intermittent errors, with the Vertex AI Gemini API, it's important to consider quota and service limitations as potential causes. Here are the possible causes and solutions:

1.Quota Limits:

  • Vertex AI APIs may have quota limits on the number of requests, usage per minute, or specific resource limits. If you’re hitting these limits, the system might be throttling requests, causing the latency spikes and errors.
  • You can check your quota in the Google Cloud Console under IAM & Admin > Quotas. Look for any quotas related to the Vertex AI service or API calls that might be nearing their limit.

2. API Rate Limits:

  • APIs often implement rate limiting to avoid overloading the service. If too many requests are sent in a short amount of time, you might encounter temporary performance degradation or error responses.
  • Look into the API rate limits and make sure you're adhering to the recommended thresholds.

3. Service Availability and Regional Issues:

  • Fluctuating latency could be related to service disruptions in specific regions. Check if there are any ongoing outages or maintenance activities affecting the Vertex AI service in your region you can monitor the Google Cloud Status Dashboard

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Thank you for your response.


I had increased quota limits. Therefore, I don't believe that's the issue.
I suspect it might have been a service availability issue. Moving forward I will keep an eye on the Status dashboard.

(I did notice that another user reported the same issue on this board. Hopefully it's now resolved).