Set up Gemini API credentials for image generation
/plugin marketplace add notque/gemini-imagen/plugin install gemini-imagen@notque-gemini-imagenmacOS / Linux (zsh):
echo 'export GEMINI_API_KEY="your_key_here"' >> ~/.zshrc && source ~/.zshrc
macOS / Linux (bash):
echo 'export GEMINI_API_KEY="your_key_here"' >> ~/.bashrc && source ~/.bashrc
Windows PowerShell:
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "your_key_here", "User")
# Restart terminal
Windows CMD:
setx GEMINI_API_KEY "your_key_here"
:: Restart terminal
pip install google-genai Pillow
echo "GEMINI_API_KEY is ${GEMINI_API_KEY:+set}"
Should output: GEMINI_API_KEY is set
Key not found after setting:
Invalid API key error:
pip install fails:
pip3 install google-genai Pillowpython3 -m pip install google-genai Pillow