Sign in to check if you already have access, or get started with a purchase or membership.
Build a Generative Photo AI Service
Using FastAPI, Replicate, and Upstash to deliver remarkable imagined images of you.
0:00
3/13/2025
"I want an image of me riding a unicorn" - is now here. In this course we fine-tune the amazing Flux open-source image generation AI model.
To make this happen, we use Replicate's AI services to train and fine-tune Flux with our data. You can upload about 12 images of yourself and automagically have an AI tool like Midjourney with your data. It's incredible. The best part? It costs about $3 USD to fine-tune this model then about $0.05 to generate images with it using Replicate's GPUs.
Once you have a fine-tuned model, we need a reliable way to access it without racking up bills. Enter FastAPI. We create our own API service that we can call at anytime to generate our images. I'm shocked how good image generation is with our own data!
Topics include:
Compressing and optimizing images
Creating zip files from local folders
Building a FastAPI Microservice
Implementing Rate Limiting with Upstash Redis
Creating a Proxy Service for your custom fine-tuned Flux AI Model
Generating new images with your face via text prompts
Watch the first few seconds to see 100% fully generated images from the model I build in this course.