WhoBuilt

Build an AI Headshot App in 15 Minutes

Oct 1, 2025· 16 min· 5.8K views·Watch on YouTube

Peter Yang, from an unstated company, walks through building an AI headshot app with Google’s Nano Banana image model in a tutorial; no co-host or venue is stated.

Draft and simplify the spec

Yang starts with an empty Cursor project and Claude Code, then asks AI to draft an app specification with a tech stack and two milestones. He reviews and trims it before building, removing features such as image preview and swipe comparison. He recommends specifying React with Vite and Tailwind CSS version 3, and including the API documentation for context.

Build the first version and fix setup issues

Yang asks AI to build the first milestone, including the interface, and uses a reference image to guide the layout. Tailwind causes problems, so he asks AI to troubleshoot and then requests a fix for the app’s width. The initial interface lets users choose among three headshot styles, but image generation does not work yet because the API is not connected.

Create style prompts and connect Google’s API

Yang demonstrates creating a prompt from a reference portrait, then uses prepared prompts for Corporate Classic, Creative Professional, and Executive Portrait. He adds a reminder to preserve the subject’s appearance. To connect the API, he provides a Google AI Studio key and image-to-image sample code from Google’s documentation.

Troubleshoot the model and test results

The first API result changes Yang’s appearance and does not use his uploaded photo as intended. He gives the coding agent feedback and identifies a model mismatch: the app uses Gemini 2.0 Flash, while the documentation specifies Gemini 2.5 Flash Image Preview. After another correction, the app generates headshots from uploaded photos, with mixed results across examples.

Review the workflow and costs

Yang recaps the process: draft a spec, build the interface and backend, create style prompts, connect the API, and fix bugs. He says developers should check the model and provide relevant documentation and sample code when integrating an API. At the end, he notes that image generation costs a fraction of a cent per image and cautions against sharing the app publicly without considering usage.

Takeaways

  • Review and simplify an AI-generated spec before asking a coding agent to implement it.
  • Pin library versions and give the agent a visual reference to reduce setup and layout problems.
  • For API integrations, provide current documentation and sample code, then verify the model and input handling.
  • Test image generation with different photos; output quality and resemblance can vary.
  • Estimate per-image API costs before sharing a generative app with others.

Mentioned in this talk

Search inside this talk

What was claimed 3

Related talks