Photo restyler
Runs the bundled nanoodle workflow workflows/photo-restyler.noodle-graph.json against the
NanoGPT API: an image input (Photo) plus a style instruction (Style) feed an image-edit
model that outputs the transformed picture (Restyled). Requires Node.js >= 20 and the
nanoodle npm package (npx nanoodle fetches it).
API key
The run needs a NanoGPT API key. Prefer NANOGPT_API_KEY already in the environment.
Otherwise pass --env-file <path-to-.env> (this CLI: --env-file overrides ambient env).
Never print the key.
Run
From this skill's directory (or prefix paths if running from elsewhere). @path attaches a
local file; replace both values:
npx nanoodle run workflows/photo-restyler.noodle-graph.json \
--input "Photo=@/path/to/photo.jpg" \
--input "Style=make it look like a vintage 1970s film photograph — warm faded colors, soft grain, slight vignette" \
--out ./restyle-out
Add --env-file .env only when the key is not already exported. Add --json for a
structured result (paths, costUsd, remainingBalance).
Inspect the interface anytime with:
npx nanoodle inspect workflows/photo-restyler.noodle-graph.json
Inputs
| Key | Required | What to pass |
|---|---|---|
Photo |
yes | @<path> to the user's image file (jpg/png/webp) |
Style |
yes | The restyle instruction in plain English |
Outputs
- Media is saved under
--outasRestyled.<ext>— extension follows the image MIME. Use the path the CLI prints on theRestyled:line; do not hard-code.png. - With
--json, the path is inoutputs.Restyled.
Cost
Each run costs about $0.04 in NanoGPT credit (one nano-banana-2-lite edit). Runs
spend real credit — tell the user before running repeatedly.