28 September 2025

The pain of image generation in Kandinsky from n8n

Input data:
  • n8n Self-Hosted Community Edition 1.112.6
  • Fusion Brain (Kandinsky) AI service — offers 100 free image requests per month
Goal: Create a workflow in n8n to generate images using the Fusion Brain API.

This turned out to be harder than I expected.
I found a community node "n8n-nodes-fusionbrain". But “This node is no longer maintained”. The reason is “Due to recent updates, the Fusion Brain API has become too unstable and unreliable for production use”.

So, it doesn’t work anymore. When I tried it, I got this error: “Cannot read properties of undefined (reading 'length')” 

Okay, let’s do it ourselves!

There is official documentation here: https://fusionbrain.ai/docs/en/doc/api-dokumentaciya/

The Python example in the docs works perfectly. But how can I use it in n8n?

Image generation workflow in Fusion Brain consist of 3 stages:
  1. Get the pipeline ID
  2. Send the generate request
  3. Get the generated image
I just need 3 “HTTP Request” nodes. But I had a big problem in step 2.

Fusion Brain expects two parameters in the body (Content-Type: multipart/form-data):
  • pipeline_id (as form data)
  • params (as JSON, so Content-Type: application/json)


But n8n’s HTTP Request node can only use one Content-Type at a time.
  • If I choose “Form-Data”, I get this error: “Unsupported Media Type, status=415. Content-Type 'application/octet-stream' is not supported.” 
  • If I choose “Raw”, n8n auto-generates a boundary and the API doesn’t understand it.

I tried many options, but nothing worked.
As far I understand, at the moment there is no way do to it by HTTP Request node.

The Solution

I installed the “n8n-nodes-curl” community node.
This node lets me send requests exactly like in curl - with full control over headers and body format.



Hope it helps someone.

No comments:

Post a Comment