-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
So I logged into Google AI Studio and created an API key. I don't use Vertex at all. And I always log in to Gemini via the same Google account I use for AI Studio. I set both environment variables
NANOBANANA_GEMINI_API_KEY & GEMINI_API_KEY
I am on Windows so I had to use set NANOBANANA_GEMINI_API_KEY="..."
getting an API key error
MCP error -32603: An unexpected error occurred: {"error":{"code":400,"message":"API key not valid. Please pass a valid API │
│ key.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_INVALID","domain":"googleapis.com","metadata" │
│ :{"service":"generativelanguage.googleapis.com"}},{"@type":"type.googleapis.com/google.rpc.LocalizedMessage","locale":"en-US","message":"API key not valid. │
│ Please pass a valid API key."}]}}
What could I have done wrong?
Metadata
Metadata
Assignees
Labels
No labels