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
- Codex helps build Valdiluce, an open-world game with climbing, gliding and gondolas — Dimillian · 2026-07-22
- HeyGen adds a media-sourcing skill for coding agents with 75k images and 10k tracks — HeyGen · 2026-07-22
- Agent search bottlenecks are now about variance, not raw latency — rohanpaul_ai · 2026-07-22
- LangSmith adds tracing for Pipecat, LiveKit, OpenAI Realtime, and Gemini Live — LangChain · 2026-07-22
- An MCP server signs every AI agent tool call into a verifiable Merkle chain — Funky_Chicken_22 · 2026-07-22
- Annotated transcript of a Claude Code team interview is now available — trq212 · 2026-07-22