Subject: Gemini Node Error: Resource not found & incorrect "2.5-flash" option

Describe support at help@n8n.io

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Please write clearly.

Are you using cloud or self-hosting.

What is the type of setup? What is your workflow?

Are you refering to “gemini-2.5-flash” ?

Hi @abd2001 have you tried using a different model?
Also, I suppose you are using the API key from the AI Studio of Google.

And read this for model deprecation:

could not understand properly but what I think is ‘incorrect model’ here might mean that you do not have credits for that model.

@Aarush_Bisht try using a different model as that might be deprecated, and use Google AI Studio for the API it would work. That resource could not be found can be related to the model being already deprecated.

Hi @abd2001, that “resource not found” usually means the built-in Gemini node is sending a model name the API doesn’t recognize — skip the Gemini node entirely and hit the REST API with an HTTP Request node so you control the exact model string.

Swap gemini-2.0-flash in the URL for whatever model you actually want (check ai.google.dev/gemini-api/docs/models for valid names), drop your API key into the Set node or use an expression, done.