I was given access to imagen 3. However I got the following exception response:
com.google.firebase.vertexai.type.ServerException: Unexpected Response:
{
"error": {
"code": 429,
"message": "Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: imagen-3.0-fast-generate. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai.",
"status": "RESOURCE_EXHAUSTED"
}
}
I have checked the quota should already be 20. And my app can successfully generate response from other model s.a. gemini-1.5-flash-preview-0514. I use the same logic to query and no avail.
Thanks
Hi @pielip,
Welcome to Google Cloud Community!
When you encounter a "quota exceeded" error message related to "generate_content_requests_per_minute_per_project_per_base_model” while using Imagen 3.0, it means that the number of your requests exceeds the capacity allocated to process them. Quotas are in place to ensure fair usage and to prevent any single user from overloading the system. With regard to the issue you are encountering, here are some things you can consider to address the issue:
If the issue persists, I suggest contacting Google Cloud Support, as they can provide more insights and take a deeper look at your issue regarding resource limits.
I hope the above information is helpful.
I had to throttle my usage (with a sleep timer) for Google's Imagen. I have 3 uses per minute so I sleep for 20 seconds against every call to Vertex AI (including LLMs etc)..remember they all count towards your quota. If you are a personal user and don't have a sales rep, you won't be able to increase your quota.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |