{
  "id": "wDD4XugmHIvx3KMT",
  "meta": {
    "instanceId": "workflow-dcd1998d",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:51.677162",
    "updatedAt": "2025-09-29T07:07:51.677173",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Image Generation API",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "d743f947-ad45-4e59-97d4-79b98eaddedb",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        260,
        -20
      ],
      "webhookId": "970dd3c6-de83-46fd-9038-33c470571390",
      "parameters": {
        "path": "970dd3c6-de83-46fd-9038-33c470571390",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 1.1,
      "notes": "This webhook node performs automated tasks as part of the workflow."
    },
    {
      "id": "832e993e-69e9-475b-8322-776d88da0440",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1400,
        -20
      ],
      "parameters": {
        "options": {},
        "respondWith": "binary"
      },
      "typeVersion": 1,
      "notes": "This respondToWebhook node performs automated tasks as part of the workflow."
    },
    {
      "id": "53044a93-375f-48f2-971d-bf765bcdb7a0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -120
      ],
      "parameters": {
        "width": 301.7420425026802,
        "height": 260.80333469825376,
        "content": "## Webhook Trigger \n**This Node starts listening to requests to the Webhook URL**\n\n"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "c7b3b04e-903b-4d7c-bbf1-2bc2f1b1a426",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -460
      ],
      "parameters": {
        "width": 469.32758643852594,
        "height": 297.34454352637044,
        "content": "## Creating your Prompt-URL \n**To use this Workflow you need to append your prompt to your Webhook URL in the following way**\n\n1. Take your Webhook URL\n2. Ideate a Prompt and Replace every Space (\" \") by %20 (Url Encoding)\n3. Append \"?input=\" and right after that your encoded prompt to your url\n4. Copy paste this into a webbrowser as soon as you run the Webhook"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "473ff6e5-441a-4706-86a4-190936cc6ac1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -54.959833265087354
      ],
      "parameters": {
        "width": 522.2493371551094,
        "height": 109.59833265087394,
        "content": "## Starting the Workflow\n**To start the workflow paste the encoded URL into your webbrowser**\n\n"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "e8874f52-ef7e-4aea-be5b-81e3276da3d2",
      "name": "OpenAI",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1120,
        -20
      ],
      "parameters": {
        "prompt": "={{ $json.query.input }}",
        "options": {},
        "resource": "image"
      },
      "typeVersion": 1.1,
      "notes": "This openAi node performs automated tasks as part of the workflow."
    },
    {
      "id": "08c073a6-e01e-4b04-8051-502c918998c4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -120
      ],
      "parameters": {
        "width": 329.4629595446998,
        "height": 278.4439182704484,
        "content": "## Response\n**Watch the image being rendered in your webbrowser**\n\n"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "versionId": "19f7e652-5417-4b02-a1f5-8796bbac25c3",
  "connections": {
    "d743f947-ad45-4e59-97d4-79b98eaddedb": {
      "main": [
        [
          {
            "node": "error-handler-d743f947-ad45-4e59-97d4-79b98eaddedb",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-d743f947-ad45-4e59-97d4-79b98eaddedb-7976c64c",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-d743f947-ad45-4e59-97d4-79b98eaddedb-bc0412fc",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-d743f947-ad45-4e59-97d4-79b98eaddedb-f0376532",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-d743f947-ad45-4e59-97d4-79b98eaddedb-c1a292fa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "832e993e-69e9-475b-8322-776d88da0440": {
      "main": [
        [
          {
            "node": "error-handler-832e993e-69e9-475b-8322-776d88da0440",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-832e993e-69e9-475b-8322-776d88da0440-3f27acf8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-832e993e-69e9-475b-8322-776d88da0440-189b8759",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-832e993e-69e9-475b-8322-776d88da0440-a602aaa9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-832e993e-69e9-475b-8322-776d88da0440-587f3025",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e8874f52-ef7e-4aea-be5b-81e3276da3d2": {
      "main": [
        [
          {
            "node": "error-handler-e8874f52-ef7e-4aea-be5b-81e3276da3d2-9bc9671f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "description": "Automated workflow: Image Generation API. This workflow integrates 5 different services: webhook, stickyNote, respondToWebhook, stopAndError, openAi. It contains 12 nodes and follows best practices for error handling and security.",
  "notes": "Excellent quality workflow: Image Generation API. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}