I have the following problem. I have connected Google cloud vision ai api to the project, but when I try to use it with the access key an error occurs:
Cloud Vision API has not been used in project 133692000460 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/vision.googleapis.com/overview?project=133692000460 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
It's been more than a day, but the service is still not available.
What could be the problem and how can I fix it?
Hi @Ksheva1,
Welcome to Google Cloud Community!
The error message clearly indicates the Cloud Vision API is not enabled for your project. Make absolutely sure that you have clicked the ENABLE button and you shall be able to see it changed to MANAGE status which means that API is enabled. See images below for reference:
You may want to wait for its propagation. Sometimes, even after enabling an API, it takes a few minutes for the changes to propagate across Google Cloud's systems. Wait a bit longer, up to 10-15 minutes and try again.
Another workaround that you can do is to check your billing. The Cloud Vision API is not free. Ensure you have a billing account associated with your Google Cloud project and that it has sufficient funds. If you are using a free trial or a limited plan, your project might be subject to usage limits. Review your project's status and billing options.
You may also consider checking your network connectivity. Check if any firewalls or security settings in your network environment are blocking communication to the Cloud Vision API endpoints. Temporarily disable any relevant firewalls or security tools to see if that resolves the issue. If you are using a VPN or proxy, make sure it's properly configured and doesn't interfere with requests to Google Cloud services.
It is also important to ensure you have the necessary permissions to access and use the Cloud Vision API within your Google Cloud project. Check your role, and if needed, contact your project administrator for assistance.
Lastly, carefully review how you are authenticating your requests to the Cloud Vision API. Double-check that your access keys,API keys or service account credentials are correct and valid.
Refer to this set up documentation for more guidance.
I hope the above information is helpful.