Templates / Generate AI images from form inputs with Kavel’s anonymous API

Generate AI images from form inputs with Kavel’s anonymous API

Ready for 3.0

by hh3use · 137 views · created 2026-09-01 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when someone submits an n8n form (“AI image generator”). It uses only n8n's built-in nodes. It also calls kavel.ai over HTTP.

How it runs

Trigger: When someone submits an n8n form (“AI image generator”).

  1. Prepare request (Code): runs custom JavaScript code
  2. Start generation (HTTP Request): calls kavel.ai (POST)
  3. Free quota used up? (If): checks a condition and branches into true / false
  4. Out of free quota (Edit Fields (Set)): sets 1 field: message
  5. Wait: waits 20 seconds
  6. Check status (HTTP Request): calls kavel.ai
  7. Image ready? (If): checks a condition and branches into true / false
  8. Download image (HTTP Request): calls an HTTP API
  9. Generation failed? (If): checks a condition and branches into true / false
  10. Report failure (Edit Fields (Set)): sets 1 field: message

HTTP calls to: kavel.ai

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow collects an image prompt and aspect ratio via an n8n form, then uses Kavel’s anonymous text-to-image API to generate and download the resulting image, with handling for free-tier quota limits and generation failures. How it works…

Excerpt from hh3use's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.