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 an AI Headshot App in 15 Minutes
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.
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.
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.
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.
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
- feature
Nano Banana: Transforms uploaded photos into professional headshots in three styles“converts any photo into a professional headshot in three different styles”
YouTube Unverified1 source· Talk
- integrates with
Nano Banana integrates with
Google“hook up Google's Nano Banana API”
YouTube Unverified1 source· Talk
- uses
Cursor uses
Claude Code
“I've loaded Claude Code in a terminal”
YouTube Unverified1 source· Talk







