Skip to main content

Flux AI image generator

Workflow preview

Workflow preview
100%
Flux AI image generator preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Easily generate images with Black Forest's Flux Text to Image AI models using Hugging Face’s Inference API. This template serves a webform where you can enter prompts and select predefined visual s...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.s3, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.switch

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Max Tkacz.

Original n8n.io source

1.1 Workflow description

Title
Flux AI image generator
Workflow name
Flux AI image generator

Easily generate images with Black Forest's Flux Text-to-Image AI models using Hugging Face’s Inference API. This template serves a webform where you can enter prompts and select predefined visual styles that are customizable with no-code. The workflow integrates seamlessly with Hugging Face's free tier, and it’s easy to modify for any Text-to-Image model that supports API access.

Try it

Curious what this template does? Try a public version here: https://devrel.app.n8n.cloud/form/flux

Set Up

Watch this quick set up video 👇

Accounts required

Key Features:

  • Text-to-Image Creation: Generates unique visuals based on your prompt and style.
  • Hugging Face Integration: Utilizes Hugging Face’s Inference API for reliable image generation.
  • Customizable Visual Styles: Select from preset styles or easily add your own.
  • Adaptable: Swap in any Hugging Face Text-to-Image model that supports API calls.

Ideal for:

  • Creators: Rapidly create visuals for projects.
  • Marketers: Prototype campaign visuals.
  • Developers: Test different AI image models effortlessly.

How It Works:

You submit an image prompt via the webform and select a visual style, which appends style instructions to your prompt. The Hugging Face Inference API then generates and returns the image, which gets hosted on 托管平台 S3. The workflow can be easily adjusted to use other models and styles for complete flexibility.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Vivid Pop Explosion

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - AI Dystopia

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Post-Analog Glitchscape

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Neon Fauvism

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - None

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Serve webpage

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 7 - Respond with error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Upload image to S3

Type / Role
n8n-nodes-base.s3 - s3
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Hyper-Surreal Escape

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - n8n Form Trigger

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.1

Block 16 - Call hugginface inference api

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Route by style

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.1

3. Summary Table

Workflow Flux AI image generator
Complexity advanced
Nodes 19
Categories Content Creation, Multimodal AI
Author Max Tkacz
Published 17 Sept 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2417/2417.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Flux AI image generator do?

Easily generate images with Black Forest's Flux Text to Image AI models using Hugging Face’s Inference API. This template serves a webform where you can enter prompts and select predefined visual s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.