AutomationFlowsDevOps › Flux AI Image Generation to AWS S3

Flux AI Image Generation to AWS S3

Original n8n title: Flux 이미지 생성

Flux 이미지 생성. Uses httpRequest, awsS3, executeWorkflowTrigger. Event-driven trigger; 9 nodes.

Event trigger★★★★☆ complexity9 nodesHTTP RequestAWS S3Execute Workflow Trigger
DevOps Trigger: Event Nodes: 9 Complexity: ★★★★☆ Added:

This workflow follows the Execute Workflow Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Flux \uc774\ubbf8\uc9c0 \uc0dd\uc131",
  "nodes": [
    {
      "parameters": {
        "url": "={{ $json.output[0] }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        780,
        -360
      ],
      "id": "57237b28-b534-4303-af04-d8869456d891",
      "name": "\uc774\ubbf8\uc9c0 \ub2e4\uc6b4\ub85c\ub4dc"
    },
    {
      "parameters": {
        "operation": "upload",
        "bucketName": "dante-n8n",
        "fileName": "=flux/{{ $json.id }}.{{ $json.input.output_format }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.awsS3",
      "typeVersion": 2,
      "position": [
        980,
        -360
      ],
      "id": "26fd15fc-287f-48de-ad74-1e3119ed31ff",
      "name": "\uc774\ubbf8\uc9c0 \uc800\uc7a5",
      "credentials": {
        "aws": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "aspect_ratio"
            },
            {
              "name": "prompt"
            },
            {
              "name": "output_quality",
              "type": "number"
            },
            {
              "name": "checkExistsUrl"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        -260,
        -360
      ],
      "id": "3fcb4e9d-7f37-4eef-a9e0-5b63debb7473",
      "name": "\ubcc0\uc218 \uc124\uc815"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Prefer",
              "value": "wait"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"input\": {\n      \"prompt\": \"{{ $json.prompt }}\",\n      \"go_fast\": true,\n      \"num_outputs\": 1,\n      \"aspect_ratio\": \"{{ $json.aspect_ratio ?? \"1:1\" }}\",\n      \"output_format\": \"webp\",\n      \"output_quality\": {{ $json.output_quality ?? 80 }},\n      \"num_inference_steps\": 4\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        540,
        -360
      ],
      "id": "1b02948a-9c1e-470b-8704-9ca91aec2288",
      "name": "\uc774\ubbf8\uc9c0 \uc0dd\uc131",
      "credentials": {
        "notionApi": {
          "name": "<your credential>"
        },
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "7cc3a358-3d50-46ef-b13e-92d9d4e0f8a2",
              "leftValue": "={{ $json.checkExistsUrl }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -40,
        -360
      ],
      "id": "b90e3aa5-e896-42d5-9916-398ce5cee138",
      "name": "\uc774\ubbf8\uc9c0\ud30c\uc77c \uccb4\ud06c \uc694\uccad \uc5ec\ubd80"
    },
    {
      "parameters": {
        "url": "={{ $json.checkExistsUrl }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        160,
        -520
      ],
      "id": "a75a4da7-4e09-40c9-bf88-e8dcdcba590b",
      "name": "HTTP Request",
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "cb102296-a7ca-433b-bba2-891387beb9bf",
              "leftValue": "={{ $json.error }}",
              "rightValue": "",
              "operator": {
                "type": "object",
                "operation": "notExists",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        340,
        -520
      ],
      "id": "075041af-87f9-4db1-bf5d-4e1ddd71708f",
      "name": "\ud30c\uc77c \uc874\uc7ac\uc5ec\ubd80"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "={\n  \"image_path\": \"{{ $json.checkExistsUrl.replace('https://d3v6z7pi3x0q53.cloudfront.net', '')}}\",\n  \"image_url\": \"{{ $json.checkExistsUrl }}\",\n  \"new\" : false\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1180,
        -540
      ],
      "id": "1a0e9c6b-0029-458c-9d42-ea8fcf61fb8a",
      "name": "\uc774\ubbf8\uc9c0 \ubcc0\uc218 \uc124\uc8151"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "={\n  \"image_path\": \"flux/{{ $('\uc774\ubbf8\uc9c0 \uc0dd\uc131').item.json.id }}/{{ $('\uc774\ubbf8\uc9c0 \uc0dd\uc131').item.json.input.output_format }}\",\n  \"image_url\": \"https://d3v6z7pi3x0q53.cloudfront.net/flux/{{ $('\uc774\ubbf8\uc9c0 \uc0dd\uc131').item.json.id }}.{{ $('\uc774\ubbf8\uc9c0 \uc0dd\uc131').item.json.input.output_format }}\",\n  \"new\" : true\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1180,
        -360
      ],
      "id": "d7746ad6-7406-40be-b1c2-57c02691ecd8",
      "name": "\uc774\ubbf8\uc9c0 \ubcc0\uc218 \uc124\uc8152"
    }
  ],
  "connections": {
    "\uc774\ubbf8\uc9c0 \ub2e4\uc6b4\ub85c\ub4dc": {
      "main": [
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \uc800\uc7a5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\uc774\ubbf8\uc9c0 \uc800\uc7a5": {
      "main": [
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \ubcc0\uc218 \uc124\uc8152",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ubcc0\uc218 \uc124\uc815": {
      "main": [
        [
          {
            "node": "\uc774\ubbf8\uc9c0\ud30c\uc77c \uccb4\ud06c \uc694\uccad \uc5ec\ubd80",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\uc774\ubbf8\uc9c0 \uc0dd\uc131": {
      "main": [
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \ub2e4\uc6b4\ub85c\ub4dc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\uc774\ubbf8\uc9c0\ud30c\uc77c \uccb4\ud06c \uc694\uccad \uc5ec\ubd80": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \uc0dd\uc131",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "\ud30c\uc77c \uc874\uc7ac\uc5ec\ubd80",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ud30c\uc77c \uc874\uc7ac\uc5ec\ubd80": {
      "main": [
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \ubcc0\uc218 \uc124\uc8151",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\uc774\ubbf8\uc9c0 \uc0dd\uc131",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\uc774\ubbf8\uc9c0 \ubcc0\uc218 \uc124\uc8152": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "eb037a61-4ebd-45c0-b618-2a552816add1",
  "id": "sd8kr2LYSRGnSQsc",
  "tags": [
    {
      "createdAt": "2025-03-19T00:58:37.383Z",
      "updatedAt": "2025-03-19T00:58:37.383Z",
      "id": "bI9TsEf2xPud61jF",
      "name": "\uc601\uc5b4\uad50\uc721"
    },
    {
      "createdAt": "2025-03-19T00:58:51.304Z",
      "updatedAt": "2025-03-19T00:58:51.304Z",
      "id": "BTk3FhPoDQuFgyt3",
      "name": "\uc774\ubbf8\uc9c0"
    }
  ]
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Flux 이미지 생성. Uses httpRequest, awsS3, executeWorkflowTrigger. Event-driven trigger; 9 nodes.

Source: https://github.com/dandacompany/dandacompany.github.io/blob/42e2fc2751d2219a10ccc0dfb6a6d86e8bda047c/n8n-workflows/workflows/english/flux-image-generator.json — original creator credit. Request a take-down →

More DevOps workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

DevOps

Code Github. Uses manualTrigger, stickyNote, n8n, httpRequest. Event-driven trigger; 25 nodes.

n8n, HTTP Request, GitHub +1
DevOps

Code Github. Uses manualTrigger, stickyNote, httpRequest, noOp. Event-driven trigger; 24 nodes.

HTTP Request, GitHub, Execute Command +1
DevOps

Code Github. Uses manualTrigger, stickyNote, n8n, httpRequest. Event-driven trigger; 23 nodes.

n8n, HTTP Request, GitHub +1
DevOps

Backup Squarespace code Injections to Github. Uses manualTrigger, splitInBatches, scheduleTrigger, stickyNote. Event-driven trigger; 17 nodes.

HTTP Request, GitHub
DevOps

Save Your Workflows Into A Github Repository. Uses manualTrigger, httpRequest, github, noOp. Event-driven trigger; 16 nodes.

HTTP Request, GitHub