Ditch the Photographer, Embrace the AI: Generate Stunning Headshots for Free

Why pay for a professional photographer when AI can generate beautiful, varied headshots for the price of a coffee? A walkthrough of the workflow I used to ship my own.

In today’s digital world, having a professional headshot is a must. But who wants to spend a fortune on photographers and studios? With the power of AI, you can now generate high-quality headshots right from your computer, and it won’t cost you an arm and a leg.

Prerequisites

  • A collection of your photos
    The more diverse the photos (different angles, lighting, expressions), the better the AI can learn your facial features.
  • A computer with internet
    That’s it! No fancy hardware required.
  • A few dollars
    Training an AI model costs around $4, and generating each image is just a couple of cents.

Step-by-Step Guide

1. Gather Your Photos

  • Collect 20–25 high-resolution photos of yourself in various settings
  • Compress these photos into a zip folder

2. Set Up Your Hugging Face Account

  1. Go to Hugging Face and create a free account
  2. Create a new model and name it (e.g., “MyHeadshots”)
  3. Keep this model private
  4. Copy the model’s repo ID, you’ll need it later
  5. Go to “Settings” -> “Access Tokens” and create a new token
  6. Grant full permissions to the token and copy it. This is your secret key

3. Train Your AI Model on Replicate

Steps to train your model:
1. Visit the Flux Dev LORA trainer page on Replicate
2. Create an account if needed
3. Select "Create Model" and name it
4. Upload your photo zip folder
5. Choose a trigger word (e.g., "myface")
6. Set training steps to 2000
7. Enter your Hugging Face credentials
8. Start training (15-30 minutes)

4. Generate Your Headshots

  • Go to the LORA inferencing model page on Replicate
  • Enter your Hugging Face repo ID in the “HF LORA” section
  • Use your trigger word in the prompt (e.g., “myface wearing a suit and tie”)
  • Adjust settings like:
    • Aspect ratio
    • Number of outputs
    • Prompt strength
  • Click “Generate” and watch the magic happen!

Benefits

Benefit Description
Cost-effective No expensive photoshoots needed
Flexibility Experiment with unlimited styles
Convenience Generate anytime, anywhere
Control Full control over the output

Pro Tips

Background Removal:
Consider using a background remover tool to further enhance your headshots.

Privacy First:
Always respect privacy and obtain consent before using someone else’s photos for AI training.

Technical Requirements

Minimum Requirements:
- Internet connection: Stable broadband
- Storage: 1GB free space
- Browser: Chrome/Firefox (latest version)
- Account: Hugging Face & Replicate

References


Note: This guide is meant for personal use. For commercial applications, please consult relevant terms of service and licensing agreements.

Keep reading

Three Paths to Agentic UI Automation (and the One I'd Bet On)
May 10, 2026 · 17 min

Three Paths to Agentic UI Automation (and the One I'd Bet On)

Every Web Page Is Becoming a Function Call
May 9, 2026 · 12 min

Every Web Page Is Becoming a Function Call