Use this comprehensive n8n workflow to integrate Replicate's creativeathive/lemaar-door-mockedup AI model. Automate image generation, handle async processing via status polling, and manage structured success/error responses in n8n.
Download this n8n workflow template and start using it instantly.
Markdown-formatted text:
AI Developers needing to integrate complex, asynchronous AI models (like Replicate) into business processes.
Users looking for high-quality, production-ready n8n templates for image generation.
Engineers who require reliable polling logic within an n8n workflow to handle long-running API tasks.
Automation Specialists looking to customize the creativeathive/lemaar-door-mockedup model parameters via a low-code platform.
This specialized n8n workflow is designed to streamline the use of the Replicate API for AI content creation, specifically utilizing the creativeathive/lemaar-door-mockedup model. Since AI generation tasks are often asynchronous, this n8n template provides a robust solution for initiating the prediction and then continuously polling the API until the result is ready or the process fails. Unlike simple HTTP requests, this n8n workflow includes built-in retry logic and comprehensive success/error handling, making it a reliable foundation for any production environment. It starts by configuring your API token and generation parameters, allowing for highly customized inputs like prompt, image mask, and dimensions, before automating the entire polling cycle. This is a crucial n8n workflow for anyone working with modern AI services.
The execution begins with the Manual Trigger, which acts as the starting point for this specific n8n workflow.
Markdown-formatted text:
YOURREPLICATEAPI_TOKEN value with your actual token obtained from your Replicate account settings.prompt, image, mask, width, and height to match your desired output for the creativeathive/lemaar-door-mockedup model.Markdown-formatted text:
Manual Trigger: The starting n8n trigger. Initiates the AI generation process when executed manually.
Set API Token (Set n8n node): Stores the necessary API key (apitoken) required for authenticating requests to the Replicate service.
Set Other Parameters (Set n8n node): Central configuration point. Defines all input variables for the AI model, including prompt ("Create something amazing"), image (a placeholder URL), and various control parameters like width, height, and numinference_steps.
Create Other Prediction (HTTP Request n8n node): Submits the generation request to https://api.replicate.com/v1/predictions. It dynamically injects all parameters from the previous set node into the JSON body and uses the API token in the Bearer Authorization header.
Log Request (Code n8n node): Executes JavaScript code to log key details of the request (like the prediction ID and timestamp) for monitoring and debugging purposes within the n8n execution log.
Wait 5s / Wait 10s (Wait n8n node): Used to implement non-blocking delays in the polling loop. Ensures the workflow waits for the asynchronous AI process to make progress before checking the status again.
Check Status (HTTP Request n8n node): Performs a GET request using the prediction ID received earlier. This n8n node is central to the polling mechanism, fetching the current status of the AI job.
Is Complete? (If n8n node): Logic gate that checks if the returned status from Replicate is succeeded. Routes the n8n workflow down the success path if true.
Has Failed? (If n8n node): Logic gate that checks if the status is failed. Routes the n8n workflow to error handling if the generation job failed.
Success Response / Error Response (Set n8n node): These nodes structure the final output, providing a clear JSON response indicating success (with the result URL) or failure (with error details).
Use this powerful n8n workflow to instantly generate detailed Ideal Customer Profiles (ICP) from any URL, combining Telegram as the input trigger with AI language models (Gemini) and sophisticated web scraping via HTTP requests.

Implement a powerful RAG chatbot using this comprehensive n8n workflow. Automatically ingest Google Drive files, embed content using Gemini, store in Pinecone, and answer queries via an AI Agent.

Use this specialized n8n workflow to deploy an IPQualityScore API tool server. Enable AI agents to validate emails, phones, and scan URLs using a single n8n trigger endpoint.

Use this powerful n8n workflow to build a custom API endpoint for image data extraction. Leveraging the Gemini AI model, it fetches images and returns structured, clean JSON output.

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







































