{
  "name": "Generate images from text with IBM Granite Vision 3.3 2B AI model",
  "nodes": [
    {
      "id": "4329b4aa-8904-456b-a382-cdb1eb6831b8",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        64,
        144
      ]
    },
    {
      "id": "72600d86-2ff3-46df-ae23-335cb01f0e59",
      "name": "Set API Key",
      "type": "n8n-nodes-base.set",
      "position": [
        288,
        144
      ]
    },
    {
      "id": "a1310c30-6206-4016-a0c3-e32e6a0524ba",
      "name": "Create Prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        144
      ]
    },
    {
      "id": "c79ea010-0525-4c61-8ca7-bdbcc84b426f",
      "name": "Extract Prediction ID",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        144
      ]
    },
    {
      "id": "d8fc6cb6-f37f-4c45-b005-83407697ca34",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        944,
        144
      ]
    },
    {
      "id": "53f39db2-e688-46ce-9a3d-b50c2365d11b",
      "name": "Check Prediction Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1168,
        144
      ]
    },
    {
      "id": "32f0b031-596d-4e32-bc58-a002a46a2c29",
      "name": "Check If Complete",
      "type": "n8n-nodes-base.if",
      "position": [
        1392,
        144
      ]
    },
    {
      "id": "f9e3961d-ee2f-47e7-9b61-23f694091cca",
      "name": "Process Result",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        48
      ]
    },
    {
      "id": "776eb5ba-cfc1-4505-9ba9-35fa7b10a6d2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -288
      ],
      "parameters": {
        "width": 406,
        "height": 639,
        "content": "## 🟢 Section 1: Trigger & API Setup\n\n🔗 **Nodes:**\n\n* **Manual Trigger** → Starts when you click *Execute*.\n* **Set API Key** → Stores your Replicate API Key safely in the workflow.\n\n💡 **Beginner takea"
      }
    },
    {
      "id": "8f6c9ce5-1c0c-4d66-94e3-d4d8e2dfdbb5",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1760,
        -480
      ],
      "parameters": {
        "width": 1300,
        "height": 320,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tip"
      }
    },
    {
      "id": "09a0a691-f7ac-4d4d-b90e-d33e5c8d3f92",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1760,
        -144
      ],
      "parameters": {
        "width": 1289,
        "height": 2286,
        "content": "# Generate Images from Text with IBM Granite Vision 3.3 2B AI Model\n\n### 🌍 **Overview**\n\nThis workflow uses the **ibm-granite/granite-vision-3.3-2b** model (hosted on Replicate) to generate AI images."
      }
    },
    {
      "id": "6c367d94-4ec5-44f8-9a90-4e3e2df00608",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        -464
      ],
      "parameters": {
        "width": 230,
        "height": 815,
        "content": "## 🟦 Section 2: Create Prediction\n\n🔗 **Nodes:**\n\n* **HTTP Request (Create Prediction)** → Sends a request to Replicate with the chosen model (`granite-vision-3.3-2b`) and input parameters (seed, tempe"
      }
    },
    {
      "id": "7b765db4-0283-47d4-8ab9-df75aa64f6ad",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -336
      ],
      "parameters": {
        "width": 806,
        "height": 687,
        "content": "## 🟣 Section 3: Polling & Status Check\n\n🔗 **Nodes:**\n\n* **Extract Prediction ID (Code)** → Saves the unique job ID.\n* **Wait (2s)** → Pauses before checking status.\n* **Check Prediction Status (HTTP R"
      }
    },
    {
      "id": "8fbd6a2c-dcfb-4723-8d4e-caf5c3a563ca",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1536,
        -576
      ],
      "parameters": {
        "width": 230,
        "height": 927,
        "content": "## 🔵 Section 4: Process Result\n\n🔗 **Nodes:**\n\n* **Process Result (Code)** → Extracts the final data:\n\n  * ✅ Status\n  * ✅ Output image URL\n  * ✅ Metrics (time taken, etc.)\n  * ✅ Model info\n\n💡 **Beginne"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check Prediction Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Key": {
      "main": [
        [
          {
            "node": "Create Prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Complete": {
      "main": [
        [
          {
            "node": "Process Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Prediction": {
      "main": [
        [
          {
            "node": "Extract Prediction ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Prediction ID": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Set API Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Prediction Status": {
      "main": [
        [
          {
            "node": "Check If Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}