Generate images via webhook with Sublyx image generation API
Ready for 3.0What this workflow does
This workflow has 5 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.sublyx.org over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Generate Image (Sublyx) (HTTP Request): calls api.sublyx.org (POST)
- Extract Image (Code): runs custom JavaScript code
- Base64 to Image File (Convert to File): converts data to a file (to binary)
- Respond with Image (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: api.sublyx.org
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 (5)
- Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow exposes a webhook that accepts an image prompt and optional parameters, sends them to the Sublyx Images Generation API, and returns the generated image back in the webhook response as a PNG file. How it works 1. Receives a POST…