Skip to main content

FME 2020 supports the Google Vision API with the transformer GoogleVisionConnector. The user just have to enter their Gmail address in the transformer (and then approve the connection with FME) to make use of the functionality. The documentation of the transformer informs that The GoogleVisionConnector uses your Google Cloud account credentials to access the Google Vision client services.

With this forum question I just want to clarify the pricing of using the Google Vision API with the GoogleVisionConnector transformer. Is it correct that the transformer uses the API so that this pricing table applies? https://cloud.google.com/vision/pricing

What happens when the amount of API calls exceeds 1000 units/month? I can assume that Google will send an email to the connect Gmail account but what happens in the GoogleVisionConnector transformer? What is the reply from the API and how is it interpreted in FME? Will it come out of the Rejected port?

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.


@gerhardatsafe ping


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.pdf

Regarding 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!

Reply