My team is migrating Gemini API usage from Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI).
We successfully migrated all Gemini LLMs - still using API Keys.
However, it seems that for gemini-embedding-2 usage with API Key always yields a 401 with: "API keys are not supported by this API...". Using an OAuth bearer works. Couldn't find any docs regarding this. Maybe Google is still migrating themselves?



