Sending images to gemini

I am setting up an automation, where the workflow downloads an image from Google Drive, and then sends the image to Gemini. I am unable to figure out how to start the image to gemini, I read you have to convert to base64, but it seems not to be working. can anybody offer help on this? Thanks

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

OK, had to try it out, :smiley: This works fine:

2 Likes

Thanks for this, I still I’m not able to parse the image to gemini. I’m getting an error message which says “base64 decoding not successful”. Is it possible to use the Gemini Chat model for this. Thanks for your help

Hm, what advantage do you have in using the Gemini Node vs just using the plain HTTP call? I mean you could still take the output and chain another node.

This also works - make sure to check this option in Agent node

2 Likes

Thanks. This worked. really appreciate the help

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.