This n8n workflow automates the process of generating images using the vcollos/trefilio model from Replicate, triggered manually or via user interaction. It begins with a manual trigger, then sets an API key for authentication. The workflow creates a prediction request for image generation by sending a POST request to the Replicate API, specifying parameters like the prompt and seed. Once the prediction is initiated, it extracts the prediction ID for polling. The workflow then waits briefly before checking the prediction status with repeated GET requests until the process succeeds. Upon completion, it processes the result, extracting relevant output data, metrics, and timestamps. A sticky note node provides an overview of the process, highlighting setup steps and model details. This workflow is practical for users who want automated, API-driven image creation integrated into their content workflows or web applications.
Automated AI Image Generation with Replicate Integration
Node Count | 6 – 10 Nodes |
---|---|
Nodes Used | code, httpRequest, if, manualTrigger, set, stickyNote, wait |
Reviews
There are no reviews yet.