Automate AI image generation using the Adamantiamable Lumi model on Replicate. This powerful n8n workflow template includes status polling, custom headers, and dynamic credential handling.
Download this n8n workflow template and start using it instantly.
AI content creators needing automated image generation pipelines.
Developers looking for advanced n8n templates featuring complex API polling logic.
Users wanting to integrate Replicate's models into their existing n8n workflow.
Technical users configuring custom HTTP requests and flow control within n8n.
This comprehensive n8n workflow provides a robust solution for initiating and managing asynchronous AI generation tasks using the Replicate platform's adamantiamable/lumi model. Because AI image generation often requires time, a simple request/response flow is insufficient. This n8n workflow template solves that challenge by implementing a reliable wait-and-check polling loop using core n8n node functionality.
By utilizing the manual n8n trigger, users can easily test and configure their input prompts before deploying this n8n workflow into a production environment. The core value of this n8n workflow is the seamless integration of setting credentials, initiating the prediction, extracting the prediction ID using a Code n8n node, and continuously polling the status until the image generation is complete. This advanced use of the n8n node structure ensures reliability and minimal manual intervention.
The automation begins with the "On clicking 'execute'" manual n8n trigger, designed for immediate testing or scheduled integration.
predictionId and construct the precise polling URL needed for the next steps in the n8n workflow.YOURREPLICATEAPI_KEY with your actual Replicate API key.jsonBody parameter to define your desired generation prompt and model inputs like width, height, and seed. On clicking 'execute' (Manual Trigger n8n node): Serves as the start of the n8n workflow, allowing manual execution and testing.
Set API Key (Set n8n node): A configuration n8n node used to securely define the Replicate API key as a variable, ensuring separation of credentials from the core HTTP requests.
Create Prediction (HTTP Request n8n node): Initiates the long-running AI generation job using a POST request to the Replicate API, configuring the model inputs and authentication header using the key set in the previous n8n node.
Extract Prediction ID (Code n8n node): Uses custom JavaScript to parse the initial response, extracting the crucial id needed for subsequent polling requests. This is a vital part of the polling logic within this n8n workflow.
Wait (Wait n8n node): Pauses the execution of the n8n workflow for 2 seconds, regulating the speed of the polling loop.
Check Prediction Status (HTTP Request n8n node): Polls the Replicate API to check the current status of the prediction job, using the dynamically generated URL.
Check If Complete (If n8n node): A flow control n8n node that checks if the status field equals 'succeeded'. If not, the n8n workflow redirects back to the Wait n8n node to continue polling.
Process Result (Code n8n node): The final custom code scripting n8n node that restructures the output data, focusing on the resulting image URLs and completion metadata.
Use this advanced n8n workflow to generate high-quality images using the IBM Granite Vision 3.3 2B model via Replicate. Easily set up these powerful n8n templates for automated AI art generation.

Use this sophisticated n8n workflow to generate high-quality images using the Prunaai Flux Schnell AI model via Replicate. A complex n8n node setup handles asynchronous polling.

Deploy a robust n8n workflow to generate AI content using the Replicate API. This n8n template features dynamic polling, error handling, and structured results for asynchronous jobs.

Use this powerful n8n workflow to generate custom AI content using the Settyan Flash V2.0.0 Beta.10 model on Replicate. Set up API keys and handle long-running predictions easily in n8n.

Automate DALL-E/GPT image generation using an n8n workflow. Store files in Google Drive and log prompts, links, and estimated costs in Google Sheets. Get started with n8n templates.

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







































