TL;DR: If you just created a Gemini API key in Google AI Studio and it starts with "AQ." instead of the familiar "AIza…", nothing is wrong. That's the new key format. One practical trap: the key list shows a masked, shortened display — open the key's details and use "Copy key" to get the full 53-character key.
Verified on November 18, 2026.
What I saw when I issued a key
On November 18, 2026, I created a new API key in Google AI Studio, and it came out starting with "AQ." — not the "AIza…" prefix I was used to. My first reaction was that something had gone wrong: a mis-issued key, or worse, something fraudulent.
It was neither. This is the legitimate new format.
According to Google's official documentation-based explanations, keys newly issued in AI Studio have switched to the new "AQ."-prefixed format (a new style of auth key) as of May 28, 2026. The old "AIza" keys are being phased out gradually.
The part that actually trips people up: copying the key
The key list in AI Studio shows a shortened, masked version of your key. If you copy that display value and paste it into your app, it will not work — it's not the complete key.
The correct flow is:
- Open the key's detail view.
- Use "Copy key" there.
- That gives you the full key (53 characters).
If you're debugging an authentication error with a freshly issued key, check this first: "Did I paste the truncated list display instead of the full key?" It's a fast way to narrow down the problem.
One genuine advantage of the new format
The new-format keys are restricted to the Gemini API. That scoping is a real benefit: if a key ever leaks, the blast radius is smaller than with the old format, because the key can't be used beyond that one API.
Caveats / what I did not verify
- This is based on a key I actually issued and checked on November 18, 2026. Google's specifications may change after that date.
- An API key is a credential. Never publish a full key, and never include one in an article or screenshot.
- Old-format keys don't stop working immediately; it's newly issued keys that have moved to the new format.
By Fujiko P. hD
Top comments (0)