title: How to pass an api key to the Google Cloud Vision NodeJS API
body: <p>const vision = require('@google-cloud/vision');</p>
  
  <p>All examples I can find for the <a href="https://github.com/googleapis/nodejs-vision" rel="noreferrer">NodeJS Cloud Vision API</a> 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?</p>