{
  "name": "Transform images with AI image editor using FLUX.1 Kontext",
  "nodes": [
    {
      "id": "",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -680,
        -180
      ]
    },
    {
      "id": "",
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -380,
        -180
      ]
    },
    {
      "id": "",
      "name": "Generate Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -180
      ]
    },
    {
      "id": "",
      "name": "Log Image Posts",
      "type": "n8n-nodes-base.airtable",
      "position": [
        640,
        -200
      ]
    },
    {
      "id": "",
      "name": "Check IF Generated",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        340,
        -180
      ]
    },
    {
      "id": "",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        500,
        -120
      ]
    },
    {
      "id": "",
      "name": "Mistral Cloud Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        -140,
        -20
      ]
    },
    {
      "id": "",
      "name": "Generate Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -220,
        -180
      ]
    },
    {
      "id": "",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -280
      ],
      "parameters": {
        "width": 760,
        "height": 400,
        "content": "## Image Generation"
      }
    },
    {
      "id": "",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -280
      ],
      "parameters": {
        "width": 780,
        "height": 400,
        "content": "## Base Image & Prompt"
      }
    },
    {
      "id": "",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -700
      ],
      "parameters": {
        "width": 780,
        "height": 400,
        "content": "## SETUP\n\n**Setup Input :** The first part of the workflow can be replaced with anything else. You need as input a Prompt and the Base Image URL (publicly available).\n\n**Setup Output :** In this Workf"
      }
    },
    {
      "id": "",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -1200
      ],
      "parameters": {
        "width": 500,
        "height": 480,
        "content": "## How it works?\n**1 -** Retrieve Base Image, Image Description and Situation from Airtable\n**2 -** Generate Image Prompt\n**3 -** Generate Image via Fal AI\n**4 -** Verify if Image is generated\n**5 -**"
      }
    },
    {
      "id": "",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -920
      ],
      "parameters": {
        "width": 380,
        "height": 620,
        "content": "## Base Image\n![Base Image](https://res.cloudinary.com/dhvhddcz5/image/upload/v1751021415/YFBULl-W-39oeY1zbJqzuMfL55NHbz6IOlVF8b2BjO8_kw0tjr.jpg)\n\n**Prompt** : A tower standing tall in the heart of a "
      }
    },
    {
      "id": "",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -720
      ],
      "parameters": {
        "width": 360,
        "height": 420,
        "content": "## Generated Image\n![Generated Image](https://res.cloudinary.com/dhvhddcz5/image/upload/v1751021411/yP2qhPt15mZAb3lakteeok2F6_0_XgxzaHfXbj848FE_slelrp.jpg)\n\n"
      }
    },
    {
      "id": "",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -520,
        -180
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check IF Generated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "main": [
        [
          {
            "node": "Generate Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image": {
      "main": [
        [
          {
            "node": "Check IF Generated",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Generate Prompt": {
      "main": [
        [
          {
            "node": "Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check IF Generated": {
      "main": [
        [
          {
            "node": "Log Image Posts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}