Nvalid Base64 error when sending ScreenshotOne binary to OpenAI Vision

Hi,
I’m facing a persistent “Invalid base64 image_url” error when sending a screenshot from ScreenshotOne to OpenAI (gpt-4o-mini) via HTTP Request.
I’ve tried converting the binary to base64 using a Code node with .toBase64(), but the variable seems to arrive empty or incorrectly formatted at the OpenAI node.

  • n8n version: [METTI QUI LA TUA VERSIONE]
  • Deployment: Desktop App / Docker (specify which)
    Here is my workflow:

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

ow.)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:

Hi @Cashork,

See below workflow for fix. I made a few mods to make it simpler.

  1. You didnt download the image url which came back from ScreenshotOne to get the binary

  2. I replaced the open ai API http call with the OpenAI Analyze image node for simplicity as this handles openai api calls for you.

  3. No need for trying to convert the binary to base64.

  4. Updated the code node after the open ai call since the output response looks different

PS, you copied your API keys into the flow for everyone to see. Please make sure to invalidate those and generate new ones for the services you call