{
  "name": "Generate images from text prompts with Google Imagen 3 via Replicate API",
  "nodes": [
    {
      "id": "c8352756-4848-4a5f-8300-c1d8f5b25f50",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -20,
        -100
      ]
    },
    {
      "id": "e4271dac-0119-493d-a481-286fa95c8920",
      "name": "Stop and Error",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2160,
        200
      ]
    },
    {
      "id": "4ce20910-01f0-48c2-927a-e8588f7a2fcf",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1860,
        280
      ]
    },
    {
      "id": "21c0e61a-3d0f-4669-9875-077c7f6822da",
      "name": "Check for errors",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        120
      ]
    },
    {
      "id": "7aeaa726-cbc9-4d10-90b2-8d2c7e729f02",
      "name": "Get the image URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1920,
        -220
      ]
    },
    {
      "id": "2167258a-f51b-425b-ae8d-ca6e6c25623f",
      "name": "Check prediction status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1000,
        -100
      ]
    },
    {
      "id": "da3b4773-d505-4526-8af7-289284302a34",
      "name": "Set fields for prediction",
      "type": "n8n-nodes-base.set",
      "position": [
        800,
        -100
      ]
    },
    {
      "id": "4bfdadb4-0db8-45b9-b27c-e856a27d9725",
      "name": "Pause",
      "type": "n8n-nodes-base.wait",
      "position": [
        600,
        -100
      ]
    },
    {
      "id": "7d4c2649-b444-4dbc-8401-ac89b98cd5cf",
      "name": "Create prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        380,
        -100
      ]
    },
    {
      "id": "52ef99ec-6fcc-4ca1-9f5e-0cd550e129a3",
      "name": "Set prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -100
      ]
    },
    {
      "id": "925f4691-3da6-46c5-93c9-66a180ed7faf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2a176375-a1ce-49d0-b74d-287b31b60b75",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "010a33a7-d815-46b0-b618-3d67b0e04808",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "be727fe6-6c2d-4084-987a-61c6e1c5dad2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c2f0605f-02f4-46fb-8971-6136a99e5c1e",
      "name": "Check for success",
      "type": "n8n-nodes-base.if",
      "position": [
        1240,
        -80
      ]
    },
    {
      "id": "741515e3-fe77-408f-8b69-ccb202241853",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c9c03037-f315-4691-886c-ec5f0fcc9812",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        -280
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "01a34517-52f1-4960-b425-af528854bacd",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -600
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "90864709-1be1-4af9-9625-4b7d159414df",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -600
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Set fields for prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pause": {
      "main": [
        [
          {
            "node": "Set fields for prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set prompt": {
      "main": [
        [
          {
            "node": "Create prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for errors": {
      "main": [
        [
          {
            "node": "Stop and Error",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for success": {
      "main": [
        [
          {
            "node": "Get the image URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check for errors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create prediction": {
      "main": [
        [
          {
            "node": "Pause",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check prediction status": {
      "main": [
        [
          {
            "node": "Check for success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set fields for prediction": {
      "main": [
        [
          {
            "node": "Check prediction status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}