Google 愿景 API 达到请求限制,即使我发送的请求数量更少

Google Vision API hitting request limit even though I am sending way less no of requests

Google Vision API 有每秒 10 个请求的限制。我在每个请求之间设置了 10 秒的时间间隔,即使这样,在第二个或第三个请求之后我得到的每个请求的响应如下所示。第一个请求总是工作正常。

, https://vision.googleapis.com/v1/images:annotate?alt=json returned "Insufficient tokens for quota group and limit DefaultGroupUSER-100s using the limit by ID ******@*******.

发生这种情况的原因可能是什么。有没有我遗漏的文件?我尝试传递的图像仅在 100-150 KB 大小的范围内。

您需要做服务认证 看一眼: http://googlecloudplatform.github.io/google-cloud-dotnet/docs/Google.Cloud.Vision.V1/

Note that the default credentials obtained by running gcloud auth application-default login from the Google Cloud SDK are not suitable for use with this API. (They will work initially, but implicitly have a very small request quota.)