Generated pictures¶
Finished → Picture makes a picture of somebody wearing what the mannequin wears. It sends one to five views of the mannequin, what the outfit is made of, and a scene in your own words to an image model at OpenRouter, and shows what comes back.
The tab is only there when the page is served by a small Flask server on your own machine. The page on the web has no server and sends nothing.
Setting it up¶
You need a copy of the code, Python 3.11 or later, and your own OpenRouter key. There you can also give the key a spending limit.
-
Put your key in a file named
.env. It is not in git, and the key never reaches the browser.cp .env.example .env -
Install what the server needs, once:
python3 -m venv .venv .venv/bin/pip install -r server/requirements.txt -
Start it, and open http://127.0.0.1:5050:
.venv/bin/python server/app.py
What it costs¶
The page says what the picture will cost before it is made. The models with a fixed price come first, and the cheapest is chosen when the page opens:
| Model | With two views, in December 2026 |
|---|---|
| Flux 3 Image Klein | 0.9 cents |
| Seedream 5.0 Flash | 1.8 cents |
| Qwen Image 2.1 Turbo | 1.8 cents |
| Krea K3 Edit | 7 cents, of which 2 for each view |
| Nano Banana and the GPT image models | paid by the token: about 4 to 13 cents, sometimes more |
Prices and the shapes a model can make are looked up at OpenRouter. The fixed-price models are asked for pictures of 1K, the
size the price is for. A failed call is not tried again by itself. To start with another model, set OPENROUTER_MODEL in
.env.
Good to know¶
- Back and front. A model may put what it sees in the back view, such as back pockets, where it can be seen. For a picture from the front, leave out the back view if that happens.
- Woman or man. The model is told who to show: as the mannequin (Woman or Man under Model), a woman, a man, a person who is neither, or nothing, which leaves it to the model.
- The face is invented. The model is told to make an adult who resembles no real person.
- Nothing is left bare. Where an outfit leaves the breasts or the lower body bare, as jeans without a top do, the model is told to add a plain white top or underwear.
- Pictures are kept in
server/pictures/, with the text the model was given and what each cost. - Your choices are kept in the browser: the views, the person, the scene, the model and the shape.
- Only for your own machine. The server listens on this machine only and takes requests only from its own page. It is not made to be put on the web: it has no accounts, and anyone who could reach it could spend your credit.
How it is built is under The local server.