You will also I think need to modify the web connection details to use it, at least that was my experience (I tried to use my gmail and the authentication in FME failed saying I was outside of the organisation). The pricing as you suggest is very likely what you linked to and I suspect, like with AWS you will just get a bill at the end of the month.
Perhaps I'm wrong though and Safe have set up something different here for it's users and just wasn't working properly for me.
You will also I think need to modify the web connection details to use it, at least that was my experience (I tried to use my gmail and the authentication in FME failed saying I was outside of the organisation). The pricing as you suggest is very likely what you linked to and I suspect, like with AWS you will just get a bill at the end of the month.
Perhaps I'm wrong though and Safe have set up something different here for it's users and just wasn't working properly for me.
The connection works for me so that's under control.
But I think the documentation for the transformer needs a boost to clarify certain things. I'm building a FME Cloud service and need to know how the transformer will react.
Hi @gabriel_hirsch,
The recommended way to use the GoogleVisionConnector in an FME Cloud service would be to create your own OAuth 2.0 client (for Web Application) in your own Google Cloud Project like @virtualcitymatt suggested, and then update the Web Service for Google AI in FME Desktop with your client ID, client secret & the redirect pointing to your FME Cloud instance (e.g https://<instance-name>-<account-name>.fmecloud.com/fmeoauth). Test your workspace in FME Desktop and then publish it to FME Server. The currently shipped OAuth 2.0 client is not recommended for production and is likely to be changed or removed in the near future as we add a new Web Connection type for Google AI services accepting Service Account keys directly. Without your own OAuth 2.0 client you also wouldn't have any insight into the usage of the API.
Here is also a great eBook describing the process:
https://cdn.safe.com/resources/ebook/Creating-Web-Connections.pdfRegarding pricing, this is the correct table: https://cloud.google.com/vision/pricing
I would also recommend setting
up a budget in your GCP account to make sure you get alerts once you reach a certain amount of charges. The budget alert will not limit or reject any further requests though, so you should also look into
capping the API usage. Once an API limit is reached the features will be rejected.
I hope this helps!