AutomationFlowsWeb Scraping › Generate Images From Text Prompts with Google Imagen 3 via Replicate API

Generate Images From Text Prompts with Google Imagen 3 via Replicate API

ByAudun @xqus on n8n.io

This n8n workflow is designed for developers, digital artists, and content creators who want to leverage the power of AI-generated images using the Replicate API.

Event trigger★★★★☆ complexity19 nodesStop And ErrorHTTP Request
Web Scraping Trigger: Event Nodes: 19 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #3176 — we link there as the canonical source.

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

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

About this workflow

This n8n workflow is designed for developers, digital artists, and content creators who want to leverage the power of AI-generated images using the Replicate API.

Source: https://n8n.io/workflows/3176/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

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

Web Scraping

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.

HTTP Request, GitHub, Stop And Error +1
Web Scraping

[](https://youtu.be/c7yCZhmMjtI)

HTTP Request, GitHub, Stop And Error +1
Web Scraping

Episode 22: sleep. Uses httpRequest, stopAndError. Event-driven trigger; 42 nodes.

HTTP Request, Stop And Error
Web Scraping

Upload files from any source to your account Kommo or AmoCRM with a simple and reusable workflow. It can split a large file into small ones and upload chunks. Works for Kommo and amoCRM There are 3 re

HTTP Request, Execute Workflow Trigger, Stop And Error
Web Scraping

This workflow provides everything you need to package and deploy multiple workflows from a single workflow you distribute.

n8n, Stop And Error, GitHub +1