๐ŸŽฌ Generate product and marketing images using Riverflow 2.0 on Replicate

โšก 29 views ยท ๐ŸŽฌ Content Creation & Video

Description

How it works

This workflow is designed to take user inputs in order to generate an image using the Riverflow 2.0 model through the Replicate API. It can handle both image generation as well as image editing. Additionally, for specific text modifications, the source text and font can be provided to help guide the model. Here is a high-level overview of how this workflow operates:

  1. An initial input form acts as the trigger for this workflow. It takes in all the parameters required by Riverflow 2.0, including:
    • Model
    • Font URLs + Texts
    • Resolution
    • Initial Image
    • Instruction (Required)
    • Aspect Ratio
    • Transparency
    • Enhance Prompt
    • Max Iterations
    • Safety Checker
    • Super Resolution References
    • Number of Outputs
  2. These inputs are then sanitized using a script and passed into a sub-workflow that handles the HTTP requests.
  3. Sub-Workflow: This workflow takes all the given parameters and makes a POST request to start the Riverflow 2.0 generation, followed by a looped GET request to check once the status is complete. The outputs are then stored in a data table, which is very important.
    • This is done in a sub-workflow so that images can be generated in parallel when multiple outputs are required.
    • The data table allows communication between the parent workflow and the parallel-running sub-workflows.
  4. In the parent workflow, we poll the data table to check if outputs from the sub-workflow have been generated. This is done using a loop and querying the data table to see if the outputs have been inserted.
  5. Once we have the outputs (as URLs), the raw image is also provided so that the image can be viewed or downloaded directly from the workflow (the URLs are also given if they need to be used).

Setup

Ideal for

Customization

More Infomation about Riverflow 2.0: www.riverflow.ai

๐Ÿ”— Nodes Used

HTTP Request, Execute Sub-workflow, Execute Workflow Trigger, n8n Form Trigger, Data table

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup