BaseLook
Dressing you…

How I built this

This showroom started with a single prompt and a conversation with an AI coding agent. No templates and no code written by hand: I described what I wanted, and we iterated from there.

  • Images cost~US$3.60
  • Credit neededUS$5
  • Try it onFree
  • Cost per image~US$0.08
  • Images generated46
  • Pieces17
  • CodingNone
  • NeedsPython 3 · ImageMagick · API key
  1. CatalogReal pieces from the brand's store: names, prices, sizes and product photos.
  2. ModelOne base photo, then one image per piece with the same pose, light and framing.
  3. PageFull-screen model, 3D card carousel, bag, saved items, compare and share.
  4. Try it onRuns in the browser: your photo never leaves the device.

The prompt

I want a virtual showroom for a clothing brand: a model who changes outfits with one click, and a "Try it on" button so I can see myself wearing the piece, using my own photo. Everything you need is in this message. I may not have read anything else and I don't know how to code: walk me through it from start to finish, in this folder.

## How you talk to me
- Plain language and short messages. If you use a technical word, explain it in a few words.
- Very visual: show progress as a list (✅ done · ⏳ in progress · ⬜ to do), use tables when comparing things, and when there is something to see, open it in the browser and show me.
- When I have to do something, give me one step at a time: numbered, with the exact link and the name of the button to click. Wait for my "done".
- Ask my permission before installing anything, spending money or publishing anything. Do the rest without asking.

## Step 0 · Check I have everything
Before building, check it yourself (don't ask me to run commands) and show me this list with ✅ or ❌:
- Model and effort: this project runs best on Claude Opus 5.5 at high effort. If you know you are a different model, tell me, and remind me in one line to confirm it at the top of this conversation. If it doesn't match, I switch it in the model picker (Cmd+Shift+I on Mac, Ctrl+Shift+I on Windows) or by typing /model opus and /effort high.
- Python 3 (runs the fitting room on my computer): check with python3 --version.
- ImageMagick (crops and converts photos): check with magick -version.
- An API key for GPT Image 2.6 (the model that creates the photos). Look for it in the .env file in this folder, as OPENAI_API_KEY if it's from OpenAI or FAL_KEY if it's from fal.ai. If I don't have one, let me choose and guide me:
  - **OpenAI:** at https://platform.openai.com/api-keys I add credit and click **Create new secret key**. It may ask me to verify my organization before using its image models.
  - **fal.ai:** I create the account, add credit and at https://fal.ai/dashboard/keys click **Create Key**. That key also gives me many other image and video models.
  - About US$5 of credit is enough. The key is shown only once: I should copy it right away.

If something is ❌, tell me in one sentence what it is and what it's for, and we'll fix it together. If you can install it, ask permission and do it. If it's on me (creating an account, adding credit), guide me step by step and wait for my "done". Don't continue until everything is ✅.

The key never goes in the chat: create a .env file in this folder with an empty line (OPENAI_API_KEY= or FAL_KEY=, depending on my choice), open it so I can paste and save it, and read it from there. Never show it or copy it to another file.

## Step 1 · Ask me the minimum
In a single message, each question with a recommended option:
1. Which brand? Ask for a link to its website. Recommended: mine, if I have a store.
2. Menswear or womenswear? Recommended: whichever the brand has more of.
If I answer "you decide", use the recommended one.

## Step 2 · Build it

### The experience
A single full-screen page: a photorealistic photo of a minimalist showroom with a model standing in the center. Frosted-glass cards float at the sides with real pieces from the brand. When I pick one, the model appears wearing it: the new photo is revealed top to bottom behind a soft band of light (about 1 s). It should feel like a luxury fitting room: warm, clean, with lots of air. And a "Try it on" mode: I upload a photo of myself and I appear in the showroom wearing the chosen piece.

### Tools
- Images: GPT Image with my OpenAI key, read from the .env file. Always in edit mode with reference photos: that is what keeps the same model in every photo. Models: with OpenAI, gpt-image-2.6-sunburst and gpt-image-2.6-flare; with fal.ai, openai/gpt-image-2.6/sunburst/edit and openai/gpt-image-2.6/flare/edit. Sunburst for the base photo and the looks (more detail); Flare for the cutouts and the live try-on (faster).
- Before generating in bulk, estimate the cost and ask my permission. Budget: about US$3 for everything pre-generated (each photo costs around US$0.08).
- ImageMagick to crop, compare and convert to webp. Save each image's prompt next to it (*.in.json) so it can be repeated.

### 1. Catalog
Pull the brand's catalog (if the store runs on Shopify it is at https://your-domain/products.json?limit=250; otherwise find it on the site). Pick 12–17 pieces across categories (for example Tops, Bottoms, Jackets and Accessories; adapt them to what the brand sells). Prefer pieces that are hard to draw well: collars, embroidered logos, zippers, hoods, pockets. One top and one bottom must be basics (a white tee, light trousers): they are the model's base outfit. For each product, build a contact sheet of its photos and choose the cleanest front packshot. Save name, price in the store's currency, chosen photos and description.

### 2. Base photo
Edit with the packshots of the two base pieces as reference. An invented model who doesn't exist, around 28 years old and fitting the brand's audience, centered, facing front, full body (head to shoes), arms relaxed. The showroom: warm white plaster walls, light polished concrete, skylight, a travertine bench at the far left and an olive tree at the far right. The left and right thirds stay empty (that's where the cards go), and there is plenty of ceiling above the head (the top 15 %) so the menu never touches the hair. Generate it directly at 1920×1280.

### 3. One look per piece
For each piece that isn't in the base: edit with image 1 = the base, plus 2 or 3 product photos. The prompt says "keep EVERYTHING identical to image 1 (same person, pose, framing, room and light) and change only the top" (or "the trousers", or "add the jacket / cap / bag"), and describes the piece's details taken from its description and photos (logo, collar, pockets, closures). Accessories are added on top of the base. Check each look: compare the background with the base and zoom in on logos and collars. Redo any that drift. Show me a strip with all the looks before continuing.

### 4. Cutouts for the cards
Edit each packshot with a transparent background ("cut out this exact product, no mannequin, no shadow"). Then trim and convert to webp at about 560 px.

### 5. The page (site/index.html, no frameworks)
- Full-screen photo (object-fit cover), two layers for the look change, all looks preloaded.
- Top left, the brand name in spaced letters. Top center, category tabs in a glass pill. Top right, a bag with a counter.
- A vertical icon rail on the left (try, save, compare, share) and arrows at the sides.
- The cards form a 3D carousel around the model. The selected one tucks "inside" the model. Neighbors move away to each side with more rotation, less scale, more blur and less opacity. Everything with smooth transitions.
- At the bottom, a glass dock: thumbnail, name, color and fit, price in the store's currency, sizes and a black "Add to bag" button.
- Style: warm frosted glass (backdrop blur, white borders, soft shadows), Inter font, near-black ink on cream.
- Keyboard arrows switch pieces. Space (or ?demo in the address) walks through the catalog by itself, every 2.2 s, so I can record a video.
- On mobile: cards at the bottom, tabs above the dock, and it must work great with touch.
- If the brand isn't mine, add a footer note: "Concept, not an official site".

### 6. "Try it on"
- server.py (Python standard library only, port 4178) serves site/ and handles the try-on. Prefer a free option that runs in the browser: your photo never leaves the device and it costs nothing. If you use the paid image model instead: POST /api/tryon {photo, look} calls the fast model with two images (the look and the person) and this prompt: "put the person from image 2 in place of the model, with their face, hair, skin and build; leave the clothes, logos, pose, framing, room and light identical". Output at 1920×1280, saved in site/tryon/ named by photo hash + look, and returned instantly if it already exists. Each try costs about US$0.07 and the photo is sent to OpenAI or fal.ai, depending on where the key is: tell me first.
- Photos the browser can't open (iPhone HEIC) are converted with ImageMagick to a 1024 px JPG.
- In the page: a black "Try it on" button (on mobile it opens the camera). With the photo in place, a "Model / You" switch appears with my thumbnail and a button to change the photo. While it works, the light band sweeps over the model and a pill shows progress. If something fails, show the real reason; never fail silently.

## Step 3 · Test it before showing me
- Open it in the browser at 1600×900 and at phone size, with no console errors. Try every tab and check that no card or menu covers the model's face.
- Test the try-on end to end with a fictional person you generate (not a real photo) and with a HEIC file. Delete those tests at the end.
- Write a short README: how to run it, the shortcuts and what is in each folder.

## Step 4 · Hand it over
Close with a short, visual summary:
- What's done, open in the browser or with a screenshot.
- Where it lives and how to open it again in one step (python3 server.py, then open http://localhost:4178).
- How much was really spent on images.
- Ask me to try it with my own photo.
- If I want to put it in my real store, what it would take (a server, never leaving a key in plain sight). Don't publish anything unless I ask.

Recommendations

What we learned building it. Add these to the prompt (or tell your agent) so nothing charges your balance by surprise.

  • Generate the images once. Looks and cutouts are made one time and saved as files. The page only reads files, so visitors never trigger a charge.
  • Make the try-on free by default. Run it in the browser (a face-detection library plus a bit of image processing) instead of calling the image model. Your photo never leaves the device and it costs nothing.
  • Keep the paid try-on switched off. If you build it anyway, put it behind a flag (for example TRYON_ENABLED = False) so it can't run until you turn it on yourself.
  • Set a budget and ask before bulk runs. Have the agent estimate the cost, show it, and wait for your yes. About US$3 covers all the pregenerated photos.
  • Keep a spending log. One line per call: model, size, time and estimated cost, so you can see what was really spent.
  • Test on one image first. Check one look before generating all of them, and redo only the ones that drift, not the whole set.
  • Protect the key. It lives only in .env, never in the chat, never in the page code, and .env is in .gitignore. If you publish the site, publish only the site/ folder.
  • Cap your account too. In your provider's dashboard set a low monthly spending limit and turn off auto-recharge.

Concept project, not an official store.