Enhance images with Riverflow 2.0 reference-based super-resolution via Replicate
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when someone submits an n8n form (“Input data for Riverflow2.0 refsr”). It uses only n8n's built-in nodes. It also calls api.replicate.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Input data for Riverflow2.0 refsr”).
- Input Handling (Code): runs custom JavaScript code
- POST Request to Replicate API (HTTP Request): calls api.replicate.com (POST)
- Wait: waits 20 seconds
- GET Request to check status (HTTP Request): calls an HTTP API
- Check if finished (If): checks a condition and branches into true / false
- Check for errors (If): checks a condition and branches into true / false
- Stop and Error: stops the run with an error
- Isolate output URL (Edit Fields (Set)): sets 1 field: url
- Retrieve Image (HTTP Request): calls an HTTP API
HTTP calls to: api.replicate.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Wait
n8n-nodes-base.wait - Stop and Error
n8n-nodes-base.stopAndError - n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set
From the author
How it works This workflow can take an image URL and enhance said image using Riverflow 2.0 Reference-Based Super-Resolution. This process involves giving the model an image to enhance along with a reference image to specify a certain element to enhance. For…