How to upload an image for Gemini api

Describe the problem/error/question

Hi guys, I am using the analyse image feature of Gemini node.

How do I input an image?

What is the error message (if any)?

No image data.

Please share your 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:

@Brad_Luo Is your image stored locally, hosted online or generated with N8n?

Hi Carolyn,

Thanks for replying! I think I have found the issue.

Because I hosted my n8n on the cloud, so when I use read files from disk node, there is no output.

But I used http request for an online image as input for gemini node, it worked.

So I think my question has been solved.

Thanks anyway.

you guys are helpful

1 Like

Hey, use a Form Trigger node to upload the image from your computer. Otherwise, you can use one of the various nodes such as Google Drive or the HTTP node to fetch one from the net.

2 Likes

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