A marketing specialist for dental clinics developed an automated pipeline to generate professional photos of doctors using AI. The system replaces traditional photoshoots, which are often costly and time-consuming for medical practices. The workflow processes doctor portraits from clinic websites to create a variety of professional scenes, such as performing procedures or reviewing scans.
The pipeline was built using FLUX.3 Image Klein, ComfyUI, and RunPod. The infrastructure relies on a network volume for model storage and a CLI-based management system. The total cost for generating 290 approved images across 20 doctors was approximately $3.2. The system utilizes a modular approach, separating doctor profiles, clinical actions, and environmental settings into YAML configurations.
The technical setup involves a secure cloud environment with a 60 GB network volume. GPU selection is automated, prioritizing RTX 4090, RTX PRO 4500, or RTX PRO 4000 Blackwell cards based on availability. The system uses an SSH tunnel for ComfyUI access and ensures that API keys are managed securely via environment variables to prevent exposure.
The generation process incorporates an upsampler model to expand short prompts into detailed descriptions, ensuring high-quality output. The system uses reference images for faces, equipment, and clinic interiors to maintain consistency. The developer implemented specific rules to avoid common AI errors, such as incorrect instrument handling, unrealistic facial features, or unwanted background elements.
The project structure uses a library of 31 predefined scenes, which are customized for each clinic through project-specific YAML files. The planner automatically assigns scenes based on a doctor's specialty, ensuring variety across the staff. This automated approach allows for the rapid creation of new marketing assets as previous ones lose effectiveness.





