Skip to main content

Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4

Workflow preview

Workflow preview
100%
Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.converttofile

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Thong.

Original n8n.io source

1.1 Workflow description

Title
Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4
Workflow name
Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4

đź§  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

  1. 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
  1. 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.

  2. 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

  1. (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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 4 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 13 - Gemini Generate Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Analyze image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

3. Summary Table

Workflow Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4
Complexity intermediate
Nodes 14
Categories Content Creation, Multimodal AI
Author Thong
Published 09 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3959/3959.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4 do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.