Gemini API - 429 Resource has been exhausted (e.g. check quota).

Possibly that you are sending too many requests in a short period of time. If possible can you place a delay for your request to avoid the error. As for quota increase you can follow the instruction provided here. Sample instructions below:

  1. Go to the Quotas page:> > Go to Quotas> > schoolThe remaining steps will appear automatically in the Google Cloud console.> > 1. On the Quotas page, find the quota you want to increase in the Quota column.> > You can use the Filter search box to search for your quota.> > 1. Select the checkbox to the left of your quota.> > 1. Click create EDIT QUOTAS. The Quota changes form displays.> > 1. In the Quota changes form, enter the increased quota that you want for your project in the New limit field.> > 1. Complete any additional fields in the form, and then click DONE.> > 1. Click SUBMIT REQUEST.
2 Likes