Container:
PING generativelanguage.googleapis.com (172.217.18.10): 56 data bytes
64 bytes from 172.217.18.10: seq=0 ttl=42 time=3.890 ms
→ the api is reachable
API key has been quadruple checked
I also tried using the api endpoint explicitly (/v1beta/models/gemini-2.0-flash), even that the documentation says, that this wouldnt work… and surprise, this doesnt work, too.
I have same problem. The API key is worked fine. I tested with this
curl --location 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=zzzz' \
--header 'Content-Type: application/json' \
--data '{"contents": [{"parts":[{"text": "Write a story about a magic backpack."}] }] }'
It would be helpful if you could share your information to reproduce the issue. Most importantly, this lets the n8n team know that this is not a single case.