I’m troubleshooting a Gemini API authentication failure in my application.
A newly generated credential from Google AI Studio is rejected by the Generative Language API with HTTP 401 UNAUTHENTICATED and reason ACCESS_TOKEN_TYPE_UNSUPPORTED. The issue reproduces using both direct REST requests and the official @google/genai SDK.
Could you clarify whether this credential type is supported by the public Gemini Developer API, and what the recommended authentication flow is?
I can provide the sanitized request details and response. No API keys or private credentials are included.