Enabling the Google Cloud Natural Language API

The setup steps for the Google Cloud Natural Language API, from creating the project through to calling it from a FlutterFlow app.

This is the part that is fiddly the first time and trivial afterwards, which is exactly the kind of thing worth writing down.

1. Create a Google Cloud project

2. Enable the API

An API that exists in the catalogue is not an API your project can call. Enabling it per-project is a separate step, and forgetting it produces a permission error that reads like a credentials problem.

3. Create a service account

4. Generate the service account key

Store this file securely. It is a credential, not a config file — anyone holding it can call the API and bill it to your project. Keep it out of version control.

5. Upload the key to FlutterFlow

6. Define the API calls

7. Wire the calls to the interface

Testing and optimisation

Keeping it working