Back to Templates
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.
Purpose: Sends a POST request to Replicate’s API to start generating an image.
Input Parameters:
Benefit: Gives full control over how the model modifies your image.
Purpose: Decides if the prediction has finished.
Paths:
Benefit: Ensures the workflow only ends when a valid image is ready.
Purpose: Cleans up the completed API response and extracts:
simbrams/ri
)Benefit: Delivers a structured and ready-to-use result for display, storage, or further automation.
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 |