Powered by FLUX.2 AI

Let Your Fans Take AI Selfies With You

Create a personalized selfie generator for your fans. They upload their photo, pay with crypto or card, and get an AI-generated selfie with you in seconds.

Everything You Need to Engage Your Fans

A complete solution for influencers who want to offer unique, personalized experiences to their audience.

🎨

Multiple Presets

Create different styles and scenes for your selfies. Set custom prompts, dimensions, and pricing for each preset.

💳

Flexible Payments

Accept payments via Stripe (credit cards), Bitcoin Lightning, or promo codes. You choose what works for you.

🌐

Social Media Integration

Fans can fetch their profile picture from Twitter, Bluesky, GitHub, Mastodon, or Nostr with one click.

🎛️

Easy Admin Panel

Manage everything from a simple dashboard. Upload images, create presets, manage codes, and track generations.

🖼️

Example Gallery

Showcase example selfies to your fans. Generate examples automatically from your admin panel.

🎨

Custom Branding

Upload your logo, banner, and customize colors to match your personal brand perfectly.

Simple for You, Fun for Your Fans

Here's what the experience looks like for your fans.

Choose a Style

Fans pick from your custom presets — maybe a red carpet photo, a casual selfie, or something creative you've designed.

1
2

Upload Their Photo

They can upload a photo directly or fetch their profile picture from their favorite social media platform.

Pay & Generate

After payment (or using a promo code), the AI generates their personalized selfie with you in seconds.

3
4

Download & Share

They download their unique selfie and share it on social media — free promotion for you!

Get Started in 5 Steps

Don't worry if you're not technical — we'll walk you through everything step by step.

1

Create a RunPod Account

RunPod provides the GPU power needed for AI image generation

What is RunPod?

RunPod is a cloud service that rents out powerful graphics cards (GPUs). These GPUs are needed to run the AI that generates the selfies. Think of it like renting a super-powerful computer in the cloud.

Create Your Account

  1. Go to runpod.io
  2. Click "Sign Up" in the top right corner
  3. Create an account using your email or Google/GitHub
  4. Add a payment method (credit card or crypto)
  5. Add some credits to your account ($25-50 is a good start)
💡 Tip

RunPod charges by the hour while your GPU is running. An RTX PRO 6000 costs around $1.84/hour. You can stop the pod when not in use to save money.

2

Get Hugging Face Access

Required to download the FLUX.2 AI model

What is Hugging Face?

Hugging Face is like a library for AI models. The FLUX.2 model we use is hosted there, and you need an account to download it.

Get Access to FLUX.2

  1. Go to huggingface.co and create a free account
  2. Visit the FLUX.2-dev model page
  3. Click "Agree and access repository" to request access
  4. Wait for approval (usually instant, but can take a few hours)

Create an Access Token

  1. Go to Hugging Face Settings → Tokens
  2. Click "Create new token"
  3. Select "Fine-grained" as the token type
  4. Give it a name like "GenSelfie"
  5. Under "Repositories", check "Read access to contents of all public gated repos you can access"
  6. Click "Create token"
  7. Copy and save this token — you'll need it in the next step!
Hugging Face token permissions
⚠️ Important

Keep your token secret! Anyone with this token can access your Hugging Face account. Never share it publicly.

3

Deploy the ComfyUI Server

This is the AI engine that generates the selfies

What is ComfyUI?

ComfyUI is the software that runs the AI model. We've prepared a special version that's ready to use with GenSelfie.

Deploy on RunPod

  1. Click this link to deploy: Deploy ComfyUI on RunPod
  2. Select an RTX PRO 6000 GPU (or equivalent with 96GB+ VRAM)
  3. Under "Environment Variables", add your Hugging Face token:
    HF_TOKEN=your_token_here
  4. Click "Deploy" and wait for the pod to start (this takes a few minutes)

Download the FLUX.2 Models

  1. Once the pod is running, click "Connect" → "Web Terminal"
  2. In the terminal, run this command:
    bash /download_Flux2.sh
  3. Wait for the download to complete (this can take 10-20 minutes)

Test Your Setup

  1. Open the ComfyUI interface (click "Connect" → "HTTP Service [Port 8188]")
  2. Run a test image generation using the default FLUX.2 workflow
  3. This loads the models into memory, making future generations faster
  4. If the test image generates successfully, everything is working!
💡 Tip

The first generation takes longer because the models need to load into GPU memory. Subsequent generations will be much faster.

Get Your ComfyUI URL

  1. In RunPod, click "Connect" on your pod
  2. Look for "TCP Port Mappings" (NOT the proxy URL)
  3. Find the port mapped to 8188
  4. Copy the full address (looks like: 123.45.67.89:12345)
  5. Save this — you'll need it for GenSelfie!
💡 Why RTX PRO 6000?

FLUX.2 requires a lot of GPU memory (VRAM). The RTX PRO 6000 has 96GB, which is enough to run the model smoothly. Smaller GPUs may not work.

4

Deploy GenSelfie

Set up the web app your fans will use

Option A: Deploy on RunPod (Easiest)

You can run GenSelfie on the same RunPod account, on a cheaper CPU-only pod.

  1. In RunPod, go to "Pods" → "Deploy"
  2. Search for "GenSelfie" template, or use the Docker image:
    valyriantech/genselfie:latest
  3. Select a cheap CPU pod (no GPU needed for the web app)
  4. Add environment variables:
    COMFYUI_URL=http://your-comfyui-ip:port
  5. Deploy and wait for it to start

Option B: Run Locally or on Any Server

  1. Make sure you have Python 3.12+ installed
  2. Clone the repository:
    git clone https://github.com/valyriantech/GenSelfie.git
    cd GenSelfie
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create your configuration:
    cp .env.example .env
  5. Edit .env and add your ComfyUI URL
  6. Run the app:
    python main.py

First Login

When you first run GenSelfie, it automatically generates an admin password. Check the console output or your .env file for the password.

  1. Open your GenSelfie URL in a browser
  2. Go to /admin
  3. Enter the generated password
5

Configure Your App

Add your branding, images, and create presets

Set Up Your Branding

  1. In the admin panel, go to "App Settings"
  2. Enter your app name and tagline
  3. Choose your brand colors
  4. Upload your logo and banner image
  5. Click "Save Settings"

Add Your Reference Images

These are photos of you that the AI will use to generate selfies.

  1. Go to "Influencer Reference Images"
  2. Upload 1-5 high-quality photos of yourself
  3. Use clear, well-lit photos with your face visible
📸 Photo Tips

Use photos with good lighting, clear facial features, and minimal background distractions. The AI works best with high-quality source images.

Create Your First Preset

  1. Go to "Generation Presets"
  2. Click "Create New Preset"
  3. Enter a name (e.g., "Red Carpet Selfie")
  4. Select which reference image to use
  5. Set the dimensions (1024x1024 is a good default)
  6. Write a prompt describing the scene
  7. Set your price (in cents, so $5 = 500)
  8. Click "Create Preset"

Set Up Payments (Optional)

You can enable promo codes, Stripe (credit cards), or Lightning (Bitcoin).

  • Promo Codes: Enabled by default. Create codes in the admin panel.
  • Stripe: Add your Stripe API keys to .env
  • Lightning: Add your LNbits URL and API key to .env

Generate Example Images

  1. Upload some example input images (celebrity photos work great)
  2. Select a preset and click "Generate All Examples"
  3. Wait for the AI to generate examples
  4. These will appear in the gallery on your fan page
🎉 You're Done!

Share your GenSelfie URL with your fans and start generating selfies! Consider creating a promo code for your first few fans to test it out.

What Does It Cost to Run?

GenSelfie is free and open source. You only pay for the cloud GPU.

Self-Hosted GenSelfie

$0/forever

Open source, self-hosted

  • Full source code access
  • Unlimited generations
  • All features included
  • No monthly fees
  • Community support
View on GitHub

GenSelfie on RunPod

~$0.06/hour

CPU Pod (web app only)

  • Cheapest hosting option
  • Easy one-click deploy
  • No server management
  • Same RunPod account as GPU
  • ~$44/month if running 24/7
Deploy on RunPod

RunPod GPU

~$1.84/hour

RTX PRO 6000 (96GB VRAM)

  • Required for AI generation
  • ~1 minute per image (1024×1024)
  • Pay only when running
  • Stop anytime to save costs
  • Network storage available (extra)
Get Started

Frequently Asked Questions

Do I need to know how to code?
No! While GenSelfie is a technical product, we've designed the setup process to be as simple as possible. If you can follow step-by-step instructions and click buttons, you can set this up. The admin panel is completely visual — no coding required.
How much does it cost per selfie?
With an RTX PRO 6000 at ~$1.84/hour and each image taking about 1 minute (at 1024×1024), each selfie costs roughly $0.03 in GPU time. You set your own prices for fans — most creators charge $1-10 per selfie.
Can I use a cheaper GPU?
FLUX.2 requires significant GPU memory (VRAM). The RTX PRO 6000 with 96GB is required to run the model properly.
How do I accept payments?
GenSelfie supports three payment methods: Promo codes (free, built-in), Stripe (credit cards, requires a Stripe account), and Bitcoin Lightning (via LNbits). You can enable any combination of these.
Is the AI quality good?
GenSelfie uses FLUX.2, one of the most advanced image generation models available. The quality is excellent, especially with good reference photos. Results look natural and realistic.
Can I customize the AI prompts?
Yes! Each preset can have its own custom prompt. You can also optionally allow fans to modify the prompt for more creative control. The default workflow places both people on a red carpet, but you can customize this.
What if I need help?
GenSelfie is open source, so you can ask questions on our GitHub repository. The community and maintainers are happy to help with setup issues.
Can I run this 24/7?
Yes, but it will cost more. At ~$1.84/hour, running 24/7 would cost ~$1,325/month. Most creators start the GPU when they expect traffic and stop it when not in use.

Ready to Engage Your Fans?

GenSelfie is free and open source. Get started today!

🚀 Get Started on GitHub