New Gemini API keys stop working in Python
CoolAd5798 · reddit · 2026-07-20
A user reports that a newer Gemini API key format starting with AQ no longer works in Python.
They say:
- the old unrestricted AIz... keys are no longer generated
- calling the API through the Google Gen AI SDK now throws ACCESSTOKENTYPEUNSUPPORTED
- updating to the latest google-genai SDK and setting the key in the environment did not help
- similar reports exist in Google forums, but they have not found a fix
The post asks whether anyone has actually solved the issue.
More from coding & agent
- Team demos AI agent Blender skills with impressive 3D results — noahsolomon · 2026-10-26
- A 13KB Markdown file can hijack Claude Code and Codex via your Downloads folder — pbaylies · 2026-10-26
- A Fallback for an Auto-Posting Bot: Silence Is the Default, Posting Is the Exception — petrusenko_max · 2026-10-26
- Claude Code can now edit videos: a 10-prompt workflow from raw footage to final cut — TawohAwa · 2026-10-26
- Developer Moves All Prompts to Skills: AI Coding Workflow v3 Explained — rseroter · 2026-10-26
- charlie Marsh: rewrites beat external deps in the AI era — mohamedmansour · 2026-10-26