Automate high-fidelity AI image generation using the digitalhera/heranathalie model on Replicate. This robust n8n workflow handles asynchronous tasks, polling, and error reporting seamlessly.
Download this n8n workflow template and start using it instantly.
Generating complex AI media, such as images using models like digitalhera/heranathalie, is often an asynchronous process requiring the automation platform to initiate a job and then continuously check its status until completion. This dedicated n8n workflow solves this challenge by providing a complete, resilient automation pipeline built around the Replicate API. This specific n8n workflow template manages API credentials, handles all required input parameters (like prompt, size, and seed), initiates the prediction, and implements a crucial status polling loop. By using a series of HTTP Request and If n8n node components, the workflow ensures that the final image URL is only returned after the generation job is successfully finished, providing robust error handling if the prediction fails. This is a perfect example of an advanced n8n automation strategy.
The process begins with the Manual Trigger n8n trigger, allowing for immediate execution when needed.
Set API Token n8n node to securely configure the Replicate API key, followed by the Set Other Parameters n8n node, where all necessary AI parameters (like the 'Create something amazing' default prompt, width, and height) are defined.Create Other Prediction n8n node (an HTTP Request) sends a POST request to the Replicate API, initiating the image generation using the specific digitalhera/heranathalie version. This returns an initial prediction ID.Wait 5s n8n node pauses the flow to give the service time to start the job. Then, the Check Status n8n node begins polling the Replicate endpoint using the prediction ID.Is Complete? n8n node evaluates the job status. Success Response n8n node, returning the generated image URL.Has Failed? n8n node. If the job status is 'failed', it proceeds to Error Response.Wait 10s n8n node introduces a delay before looping back to the Check Status n8n node to re-check the progress. This loop continues until a final status is reached, ensuring reliable task completion for this complex n8n workflow.To deploy this n8n workflow template and begin automating image generation, follow these steps:
Set API Token n8n node. Replace the placeholder value YOURREPLICATEAPITOKEN with your actual Replicate API key. This token is essential for authorizing the HTTP Request n8n node to communicate with the Replicate API.Set Other Parameters n8n node. Here you can customize the prompt, image dimensions (width, height), aspectratio, and other generation settings for the digitalhera/heranathalie model.Manual Trigger n8n trigger node to run a test job. Monitor the execution output to ensure the asynchronous polling loop successfully retrieves the final image URL.This n8n workflow template relies on several key n8n node types to manage the asynchronous API communication:
Manual Trigger: The starting n8n trigger for the entire automation, initiating the AI generation on demand.
Set (Set API Token & Set Other Parameters): These essential n8n node components store and define the necessary data, including the Replicate API token and detailed generation parameters (e.g., prompt: "Create something amazing", width: 512, height: 512).
HTTP Request (Create Other Prediction): This critical n8n node sends the initial POST request to https://api.replicate.com/v1/predictions. It uses expressions to dynamically include the parameters and the authorization header (Bearer {{ $json.api_token }}).
HTTP Request (Check Status): Used within the polling loop. This n8n node sends a GET request to retrieve the status of the prediction job using the unique ID received from the previous step.
Wait (Wait 5s & Wait 10s): These n8n node functions introduce necessary delays, preventing rate-limiting issues during the asynchronous polling process and allowing the AI model time to process the request.
If (Is Complete? & Has Failed?): Core flow control n8n node components that manage the polling logic. They check the incoming status ({{ $json.status }}) and direct the n8n workflow flow to either the success path, the error path, or back into the polling loop.
Use this robust n8n workflow template to automatically generate images via the Replicate API using the Flux Schnell model. Features built-in status polling and error handling.

Use this powerful n8n workflow to generate high-quality images from text prompts using the black-forest-labs/flux-kontext-pro model via Replicate. Features automated status polling and error handling.

Use this robust n8n workflow to automate text-to-image generation with the Replicate API and Flash v2.0.0. Features polling logic and detailed error handling using n8n nodes.

Use this advanced n8n workflow to automate AI image generation using the jhonpiedrahita_ai01 model on Replicate. Set parameters, handle polling, and get results directly in your n8n template.

Automate AI image generation using the creativeathive/lemaar-door-blurrred model and Replicate. This powerful n8n workflow template includes robust status checking and structured error handling.

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos







































