This sample, demonstrating how to access the Cloud Translation API from Google Cloud serverless platforms (App Engine, Cloud Functions, Cloud Run) can be found at https://github.com/googlecodelabs/cloud-nebulous-serverless/tree/main/cloud. Versions in Python (2.7 and 3.7+) and Node.js (10+) are available along with hands-on tutorials.