Skip to main content

Generate images from text prompts with Google Imagen 3 via Replicate API

Workflow preview

Workflow preview
100%
Generate images from text prompts with Google Imagen 3 via Replicate API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? 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. What problem is t...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stopanderror, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Audun.

Original n8n.io source

1.1 Workflow description

Title
Generate images from text prompts with Google Imagen 3 via Replicate API
Workflow name
Generate images from text prompts with Google Imagen 3 via Replicate API

Who is this for?

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.

What problem is this workflow solving? / Use case

The workflow automates the process of generating images from textual prompts using the Replicate API. It allows users to generate, check the status of, and retrieve images with minimal manual intervention.

What this workflow does

  • Initialize Workflow: Triggered by a manual click, the workflow starts with a prompt for image generation.
  • Set Image Generation Parameters: The user can define a prompt and other parameters, which will be sent to the Replicate API for processing.
  • Create Prediction: The workflow sends a request to generate an image based on the provided input.
  • Check Prediction Status: After a short waiting period, the workflow checks the status of the image generation process.
  • Handle Errors: If the status indicates an error (e.g., "failed" or "canceled"), the workflow stops and reports an error.
  • Retrieve Image URL: If the image generation is successful, it retrieves and outputs the URL of the generated image.

Setup

  1. Replicate API Key:
    • Go to the Replicate website and sign up for an account if you don’t have one.
    • Generate an API key from your Replicate dashboard.
  2. Configure HTTP Credentials:
    • In n8n, navigate to the "Credentials" section and create a new HTTP Header Authentication credential.
    • Set the name to Authorization, and enter Bearer YOUR_REPLICATE_API_KEY in the value field, replacing YOUR_REPLICATE_API_KEY with your actual API key.

How to customize this workflow to your needs

  • Edit the Prompt Text: Change the text in the "Set prompt" node to customize the image you want to generate. This can be adjusted to include dynamic input from other parts of your n8n workflow.
  • Change Image Generation Settings: In the "Create prediction" node, you may modify any parameters such as aspect ratio, safety filter level, or even the model being used by changing the URL.
  • Add More Logic: If you want to add more complex logic or branching conditions based on the image generation results, modify the "Check for success" and "Check for errors" nodes accordingly.
  • Modify Wait Duration: Depending on your application, you may want to adjust the waiting times in the "Wait" and "Pause" nodes to optimize processing time based on expected image generation speed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Stop and Error

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 3 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 4 - Check for errors

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Get the image URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Check prediction status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Set fields for prediction

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Pause

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Create prediction

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Set prompt

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Check for success

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate images from text prompts with Google Imagen 3 via Replicate API
Complexity advanced
Nodes 19
Categories Content Creation, Multimodal AI
Author Audun
Published 15 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3176/3176.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate images from text prompts with Google Imagen 3 via Replicate API do?

Who is this for? 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. What problem is t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.