AI Cloud Architect

Ultimate guide for fixing your team’s API keys

GoogleHow-to by Sergio VillaniGoogle Cloud Blog (AI & machine learning)

Most Gemini prototypes start the same way. You grab an API key from Google AI Studio, then paste it into your coding agent to start building a prototype. That speed is the point, and shouldn’t be slowed down. The trouble starts later, when the prototype gets real users and the key comes along unchanged. By then it usually isn't one key. Every developer has their own, often several, sitting in .env files, shell profiles and chat threads. The app has one more, baked into its config. For example…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Replaces raw AI Studio API keys with Application Default Credentials, per-app service accounts, narrow IAM roles, Secret Manager and spend caps for Gemini and partner models.

Who it is for

Startup teams moving a Gemini prototype to production that need to stop sharing and leaking API keys.

Key points

  • Steps use roles/aiplatform.user granted to a Google group for people and a service account for the app.
  • Spend cap budgets are in Preview and cover one project and one service; enforcement runs on estimated cost and is not instant.
  • Partner models such as Claude need a one-time Enable in each project's Model Garden.
  • Post says OpenAI GPT-6 models are in private preview for select enterprise customers.

The same at other vendors