Community Node: Leonardo.ai - Generate Image

I published the Leonardo.ai - Generate Image node.
It is not affiliated with Leonardo.ai.

https://www.npmjs.com/package/n8n-nodes-selfhosthub

  • In n8n, Click Settings → Community Nodes
  • In the npm Package Name field, enter n8n-nodes-selfhosthub then Install.

To add it to your workflow:

  • Click add node → Advanced AI
  • Type Leonardo
  • Click Self-Host Hub (Leonardo)
    • You may have to expand “Results in other categories”

1 Like

how do i get the api key for the node?

You get it from leonardo.ai.

:rocket: Self-Host Hub (Leonardo) v0.5.0 — new async/webhook response mode

Just shipped an update to the n8n-nodes-selfhosthub Leonardo node that fixes a pain point a lot of you have hit: Leonardo image generations that take minutes and time-out while the node sits there polling.

What’s new — a “Response Mode” dropdown:

  • Wait for Image (Poll) - the original behavior: submit, poll, return the finished image. Still the default, so nothing changes for existing workflows.
  • Submit Only (Async / Webhook) - submits the generation and returns the generationId immediately, no waiting, no timeout. You then catch the finished image with an n8n
    Webhook trigger node.

How async mode works: Leonardo delivers completed images to the webhook callback URL configured on your Production API key (set in the Leonardo dashboard — it’s
account-level, not per request). Point that at an n8n Webhook node, match the incoming image_generation.complete payload to the generationId the node emits, and continue
the workflow. No more 15-minute hangs or failed executions.

Get it / upgrade: Settings → Community Nodes → n8n-nodes-selfhosthub (or hit Update if you already have it). Fully backward compatible.

Feedback and issues welcome :folded_hands: