Redesign t shirt mockups to print ready files with GPT 4 vision
🧠 What This Workflow Does This n8n workflow allows you to upload a T-shirt mockup design (even if it's rough or outdated), and automatically turns it into a...
🔌 Nodes & Integrations Used (6)
📖 Implementation & Setup Guide
🧠 What This Workflow Does
This n8n workflow allows you to upload a T-shirt mockup design (even if it's rough or outdated), and automatically turns it into a refined, print-ready artwork using the power of AI.
It starts with an image of a T-shirt design, analyzes it using OpenAI's vision model, and then generates a cleaner, upgraded prompt to be used with OpenAI’s image generation API (gpt-image-1). The final output is a new T-shirt graphic optimized for printing on solid black background, with no visible shirt or mockup framing.
⚙️ How It Works
- User Sends a T-shirt Mockup Image Link
- The workflow begins when the user drops an image link (T-shirt mockup) into a chat interface or input trigger.
2. AI Analyzes the Image (OpenAI Vision) Using OpenAI’s GPT-4 vision capabilities, the workflow extracts the key design elements from the image:
- Characters, text, layout
- Graphic style, composition
- Visual tone and focus
- AI Agent Creates a Refined Prompt
- The extracted details are passed to an AI agent that:
- Preserves the original layout and message
- Enhances the visual composition and typography
- Removes mockup elements like shirt collar, sleeves, shadows.
- Locks the artwork on a pure black background only
- Outputs a clean, artistic, JSON-safe one-line prompt for generation
3. Text Escaping for API Compatibility A JavaScript function node escapes the prompt (quotes, slashes, line breaks) to make it safe for use in downstream JSON requests.
4. Image Generation via GPT-Image-1 API or IMAGEN 4 from GOOGLE The final prompt is sent to OpenAI’s gpt-image-1 to generate a brand-new artwork — ideal for direct printing on a black T-shirt.
⚠️ Cost Notice for gpt-image-1 Usage
This workflow uses OpenAI's gpt-image-1 model to generate high-quality T-shirt artwork from refined prompts. Please note that this model is a paid service, and each image generation request may cost approximately $0.25 per design, depending on resolution and usage.
We strongly recommend users to review their OpenAI API usage plan and be mindful of costs when running this workflow, especially if generating in bulk or integrating into larger automation flows.
You can monitor your usage at: https://platform.openai.com/docs/models/gpt-image-1
5. (Optional) You can send the result to Telegram, upload to Notion, or store it in your design system.
✅ Key Features - - Works from any uploaded mockup image - Converts design concepts into print-ready artwork prompts - Avoids outputting shirt models, collars, or product mockups - Optimized for solid black background with no distractions - Modular and easy to connect with file delivery or approval flows
🚀 How to Use
- Import the .json workflow into n8n
- Configure your OpenAI credentials for both vision and image APIs
- Trigger the flow by sending an image url of a T-shirt mockup
- Let the workflow generate and return a brand-new design from that concept
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Redesign_t_shirt_mockups_to_print_ready_files_with_GPT_4_vision.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....