How to pass an api key to the Google Cloud Vision NodeJS API

const vision = require('@google-cloud/vision');

All examples I can find for the NodeJS Cloud Vision API either use credentials they get from environment variables, or use a JSON credentials file, but I'd like to call the API using an api key. How do I do that?