Skip to main content

Generate images with realistic inpainting using Simbrams Ri AI

Workflow preview

Workflow preview
100%
Generate images with realistic inpainting using Simbrams Ri AI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Generate Images with Realistic Inpainting using Simbrams Ri AI This n8n workflow integrates with Replicate’s model to generate images. It takes an input image and mask, applies transformations base...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.wait, n8n-nodes-base.if, 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 Yaron Been.

Original n8n.io source

1.1 Workflow description

Title
Generate images with realistic inpainting using Simbrams Ri AI
Workflow name
Generate images with realistic inpainting using Simbrams Ri AI

Generate Images with Realistic Inpainting using Simbrams Ri AI

This n8n workflow integrates with Replicate’s simbrams/ri model to generate images. It takes an input image and mask, applies transformations based on your parameters, and returns the final generated output automatically.


📌 Section 1: Trigger & Authentication

⚡ On Clicking ‘Execute’ (Manual Trigger)

  • Purpose: Starts the workflow manually.
  • Benefit: Useful for testing and running on demand.

🔑 Set API Key (Set Node)

  • Purpose: Stores your Replicate API key inside the workflow.
  • Benefit: Keeps credentials secure and ensures other nodes can reuse them.

📌 Section 2: Sending the Image Generation Request

🖼️ Create Prediction (HTTP Request Node)

  • Purpose: Sends a POST request to Replicate’s API to start generating an image.

  • Input Parameters:

    • image: Input image URL
    • mask: Mask image URL
    • seed: Randomness control (for reproducibility)
    • steps: Number of refinement steps
    • strength: Intensity of modification (0–1)
    • blur_mask: Whether to blur the mask edges
    • merge_m_s: Whether to merge mask with source
  • Benefit: Gives full control over how the model modifies your image.

🆔 Extract Prediction ID (Code Node)

  • Purpose: Extracts the Prediction ID, status, and URL from Replicate’s response.
  • Benefit: Required to check the status of the generation later.

📌 Section 3: Polling & Waiting

⏳ Wait (Wait Node)

  • Purpose: Pauses the workflow for 2 seconds before rechecking.
  • Benefit: Prevents hitting Replicate’s API too quickly.

🔄 Check Prediction Status (HTTP Request Node)

  • Purpose: Checks whether the prediction is complete using the stored Prediction ID.
  • Benefit: Automates monitoring of job progress.

✅ Check If Complete (If Node)

  • Purpose: Decides if the prediction has finished.

  • Paths:

    • True → Sends result to processing.
    • False → Loops back to Wait and keeps checking.
  • Benefit: Ensures the workflow only ends when a valid image is ready.


📌 Section 4: Processing the Result

📦 Process Result (Code Node)

  • Purpose: Cleans up the completed API response and extracts:

    • Status
    • Output (final generated image)
    • Metrics
    • Created & completed timestamps
    • Model name (simbrams/ri)
    • Final image URL
  • Benefit: Delivers a structured and ready-to-use result for display, storage, or further automation.


📊 Workflow Overview Table

Section Node Name Purpose
1. Trigger & Auth On Clicking ‘Execute’ Starts the workflow manually
Set API Key Stores API credentials
2. AI Request Create Prediction Sends image generation request
Extract Prediction ID Extracts ID + status for tracking
3. Polling Wait Adds delay between checks
Check Prediction Status Monitors job progress
Check If Complete Routes based on job completion
4. Result Process Result Extracts and cleans the final output

🎯 Key Benefits

  • 🔐 Secure authentication with API key management.
  • 🖼️ Custom image generation with parameters like mask, strength, and steps.
  • 🔄 Automatic polling ensures results are fetched only when ready.
  • 📦 Clean structured output with final image URL for easy use.

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 - On clicking 'execute'

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

Block 2 - Set API Key

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

Block 3 - Create Prediction

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

Block 4 - Extract Prediction ID

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Wait

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

Block 6 - Check Prediction Status

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

Block 7 - Check If Complete

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

Block 8 - Process Result

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Sticky Note

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

Block 10 - Sticky Note9

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

Block 11 - Sticky Note4

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

3. Summary Table

Workflow Generate images with realistic inpainting using Simbrams Ri AI
Complexity intermediate
Nodes 14
Categories Content Creation, Multimodal AI
Author Yaron Been
Published 07 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7113/7113.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 with realistic inpainting using Simbrams Ri AI do?

Generate Images with Realistic Inpainting using Simbrams Ri AI This n8n workflow integrates with Replicate’s model to generate images. It takes an input image and mask, applies transformations base...

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.