AI Headshot generator by OpenAI gpt-image-1. :contentReference[oaicite:0]{index=0}
A simple web interface to generate AI headshots using OpenAI’s GPT image-1 API. Source code: GitHub repo
- API Key Configuration
Enter your OpenAI API key via the “Set api key” details. - Multiple Reference Photos
Upload one or more headshot images of the same person to guide the generation. - Custom Text Prompt
Provide a textual description to direct the style and content of the headshot. - In-Browser Preview
View the generated image immediately below the form.
- Host
index.html
on your web server. - (Optional) Set API Key
Click Set api key and paste your OpenAI key. - Upload Photos
Click Reference headshot photos and select your image files. - Enter Prompt
Type your description into the text area. - Generate
Click Generate to send a POST request. - View Result
The generated PNG will appear in the image preview.