P

How to Write an Email with Stable Diffusion

Stable Diffusion is an AI image generation tool, not a text writer. However, it can significantly enrich your professional and marketing emails by creating customized and impactful visuals. In this tutorial, you will learn how to use Stable Diffusion to design illustrations, banners, and custom graphics to accompany your emails. Whether you want to illustrate a newsletter, create an eye-catching header, or generate product images for a commercial email, Stable Diffusion lets you produce unique visuals without hiring a graphic designer. Follow these steps to transform your ordinary emails into visually compelling communications using the power of generative AI.

Prerequisites

  • 1.Have access to Stable Diffusion (local version via Automatic1111/ComfyUI or online service like DreamStudio)
  • 2.Have an email client or emailing tool (Gmail, Mailchimp, Brevo, etc.)
  • 3.Know standard email image dimensions (600px width recommended)
  • 4.Have a clear idea of your email message and tone

Steps

1

Define the goal and structure of your email

Before launching Stable Diffusion, plan your email content. Identify the email type (newsletter, commercial email, invitation, follow-up) and list the necessary visual elements: header banner, section illustrations, product images, or decorative icons. Write your email text leaving placeholders for the visuals you will generate. This planning step is crucial to obtain images consistent with your message.

Tip: Create a simple wireframe of your email on paper, indicating where each image will be placed and its approximate dimensions.
2

Generate the header banner with Stable Diffusion

Open Stable Diffusion and create your main banner. Set the dimensions to 1200x400 pixels (ratio 3:1, ideal for email headers). Write a prompt precisely describing the desired mood, colors, and style. Use a number of steps between 25 and 40 for a good quality/speed balance. Generate several variations and select the one that best matches the visual identity of your email.

Professional email header banner, modern minimalist design, [YOUR_THEME], corporate color palette, clean composition, soft gradient background, no text, high quality, 4k --ar 3:1

Tip: Add 'no text, no letters, no words' to the negative prompt, as Stable Diffusion handles readable text generation poorly.
3

Create content illustrations

For each section of your email requiring a visual, generate a suitable image. Use consistent prompts while keeping the same artistic style (flat design, photorealistic, watercolor, etc.) to maintain visual harmony. Size your images to 600x400 pixels for the email body. If you illustrate products or concepts, be precise in your descriptions and use the CFG Scale parameter between 7 and 12 to control prompt fidelity.

Clean illustration for email content, [DESCRIPTION_OF_YOUR_SUBJECT], consistent flat design style, white background, professional look, centered composition, digital art --ar 3:2

Tip: Use the 'seed' function to lock in a style: note the seed of a successful image and reuse it for other visuals to maintain graphic consistency.
4

Optimize and resize images for email

Images generated by Stable Diffusion are often too heavy for an email. Export your images in PNG or JPEG format and compress them so they do not exceed 200 KB each. Resize them to the exact dimensions planned in your layout (maximum width of 600px for email compatibility). Use a tool like TinyPNG, Squoosh, or GIMP for optimization. Check that the total weight of your email images does not exceed 1 MB to avoid deliverability issues.

Tip: Prefer JPEG format for photos and complex illustrations (better compression) and PNG for graphics with solid colors or transparency.
5

Assemble the final email and test display

Integrate your optimized visuals into your email using your emailing tool. Always add descriptive alt text to each image for accessibility and email clients that block images by default. Test display on different email clients (Gmail, Outlook, Apple Mail) and on mobile. Verify that your email remains readable even if images do not load, as many email clients block images by default.

Tip: Send yourself a test email on at least 3 different clients (Gmail web, Outlook desktop, iPhone Mail) before the final send to verify rendering.

Common mistakes to avoid

  • Using images that are too heavy (over 500 KB each) which slows loading and lands in spam
  • Letting Stable Diffusion generate text in images — the result is always illegible and unprofessional
  • Not maintaining visual consistency between different images in the email (different styles, colors, and tones)
  • Forgetting alt text on images, making the email inaccessible and incomprehensible when images are blocked
  • Creating an email composed solely of images without HTML text, which triggers anti-spam filters

FAQ

Can Stable Diffusion write the text of my email?
No, Stable Diffusion is an image generator, not a text writing tool. To write the textual content of your emails, use a language model like ChatGPT, Claude, or Mistral. Stable Diffusion only comes into play to create the visual elements that accompany and enrich your email.
What are the best Stable Diffusion models for creating professional email visuals?
For professional visuals, opt for SDXL or Stable Diffusion 3 for their superior quality. Fine-tuned models like Juggernaut XL or RealVisXL are excellent for photorealistic renders. For a clean graphic style suitable for corporate emails, design-oriented models like Dreamshaper XL deliver very good results.
Am I allowed to use images generated by Stable Diffusion in my commercial emails?
Yes, images generated with the open-source version of Stable Diffusion are yours to own and can be used for commercial purposes, including in marketing emails. However, check the specific terms of use if you use an online service like DreamStudio. Avoid generating images that reproduce trademarks, recognizable personalities, or copyrighted works.

Related tutorials

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More tutorials

Get new prompts every week

Join our newsletter.