n8n - 💡(How to fix) Fix Google Gemini(PaLM) credentials

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Bug Description

Dear Community,

with the forced change by Google for new API Key generation

New key creation: to use Agent Platform (Vertex) or Gemini APIs with an API key, you must bind it to a service account by selecting 'Authenticate API calls through a service account' before applying the API restriction.

the credentials test is failing and node execution too (n8n version: 2.20.4). Same API key used by google py sdk works.

Documentation Ref: https://docs.n8n.io/integrations/builtin/credentials/googleai/

To Reproduce

Steps taken:

  • Create new Service Account with permission: Gemini for Google Cloud User
  • Create API key and link to above Service Account with permission: Gemini API
  • Use API Key as Google Gemini(PaLM) credentials

Expected behavior

Use of API on Gemini Node

Debug Info

  • Test the credentials: Authorization failed - please check your credentials

Operating System

Docker Image

n8n Version

2.20.4

Node.js Version

Docker Image

Database

PostgreSQL

Execution mode

main (default)

Hosting

self hosted

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Use of API on Gemini Node

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING