If you previously ran:
export GOOGLE_GENAI_USE_VERTEXAI=true
in your current terminal session, you do need to unset this environment variable when switching to Google AI Studio’s API (non-Vertex AI). Otherwise, the SDK will keep working in Vertex AI mode.