我想在我的Android应用程序中使用视觉API进行测试,是否有任何选项可以在不启用计费帐户的情况下进行?
我收到此错误:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "global",
"message": "This API method requires billing to be enabled. Please enable billing on project #308443572622 by visiting https://console.developers.google.com/billing/enable?project=308443572622 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.",
"reason": "forbidden"
}
],
"message": "This API method requires billing to be enabled. Please enable billing on project #308443572622 by visiting https://console.developers.google.com/billing/enable?project=308443572622 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED"
}
答案 0 :(得分:0)
您可以启用计费功能,只需查看剩余资金即可免费获取。
答案 1 :(得分:0)
根据Quickstart: Using Client Libraries和收到的错误消息,如果不为云项目启用计费,就无法使用Cloud Vision API服务。但是,您可以监控您的使用配额,使其低于每个Cloud Vision API pricing的免费配额,以避免出于测试目的而产生任何费用。