AI-Powered Image-to-Image Generation with Airtable & Fal.ai
detail.loadingPreview
This n8n workflow automates the creation of new images from existing ones using AI. It fetches image descriptions and base images from Airtable, uses Mistral AI to generate detailed prompts, and then leverages Fal.ai for image-to-image generation, finally logging the results back to Airtable.
About This Workflow
Unlock a new era of visual content creation with this powerful n8n workflow. Designed for marketers, content creators, and e-commerce professionals, it seamlessly orchestrates AI-driven image generation. The workflow begins by identifying image generation requests within your Airtable base, extracting key details like base images and desired descriptions. It then intelligently crafts rich, nuanced prompts using Mistral AI's advanced language model. These prompts, combined with your base images, are fed into Fal.ai's state-of-the-art image generation API to produce stunning new visuals, which are then diligently logged back into Airtable, completing your automated content pipeline.
Key Features
- AI-Powered Prompt Engineering: Utilizes Mistral Cloud to intelligently generate detailed and creative prompts from simple descriptions and situations.
- Automated Image-to-Image Generation: Transforms existing base images into new visuals using a third-party AI service (Fal.ai).
- Airtable Integration for Input/Output: Seamlessly reads image generation requests from one Airtable table and writes generated image URLs and prompts back to another.
- Customizable Generation Parameters: Adjust prompt, base image URL, guidance scale, aspect ratio, and more for tailored results directly within the workflow.
- Robust Error Handling & Waiting: Includes mechanisms to check generated image availability and intelligently wait for processing, ensuring reliability.
How To Use
- Configure Airtable Credentials:
- Set up your Airtable Personal Access Token in both the 'Airtable' (Search) node and the 'Log Image Posts' node.
- In the 'Airtable' (Search) node, select your "YTB Outlier Finder" base and "Image Generation" table. Ensure fields like 'ImageDescription', 'Situation', 'BaseImage' are available.
- In the 'Log Image Posts' node, select your "YTB Outlier Finder" base and "Table 2". Ensure this table has 'Name', 'Prompt', and 'FinalImage' (Attachment field) fields.
- Set up Mistral Cloud AI:
- Provide your Mistral Cloud API key in the 'Mistral Cloud account' credentials linked to the 'Mistral Cloud Chat Model' node.
- Ensure the 'Generate Prompt' node is configured to use the 'Mistral Cloud Chat Model' for prompt creation.
- Integrate Fal.ai:
- In the 'Generate Image' HTTP Request node, update the
Authorizationheader's value to include your Fal.ai API key (e.g.,Key YOUR_FAL_AI_TOKEN). - Verify the
image_urlparameter correctly references the base image from Airtable:={{ $('Airtable').item.json.BaseImage[0].url }}.
- In the 'Generate Image' HTTP Request node, update the
- Prepare your Airtable Data:
- In your designated "Image Generation" table, create records with values for
Name,ImageDescription,Situation, andBaseImage(an attachment field containing the URL of your source image). - Leave the
Promptfield empty in this table for records you want the workflow to process.
- In your designated "Image Generation" table, create records with values for
- Execute the Workflow:
- Run the workflow manually via the 'When clicking ‘Execute workflow’' node. It will process records with empty "Prompt" fields, generate new images, and update your 'Table 2' (or specified log table) with the generated prompt and the URL of the final image.
Apps Used
Workflow JSON
{
"id": "c2255c1a-5997-4b41-a64d-910aee3b9023",
"name": "AI-Powered Image-to-Image Generation with Airtable & Fal.ai",
"nodes": 19,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c2255c1a-5997...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
Automate LinkedIn Content Promotion for Your Ghost Blog with AI
Effortlessly promote your latest Ghost blog posts on LinkedIn. This workflow leverages AI to generate engaging, professional LinkedIn messages based on your article content and saves them, along with article metadata, directly to a Google Sheet.
AI-Powered Instagram Comment Automation
This n8n workflow intelligently automates responses to Instagram comments, leveraging advanced AI to engage with your audience. It filters out irrelevant content and personalizes replies, saving you time while boosting your social media presence.