Skip to content
publik.
Browse appsBrowsePricing
+Publish a repoPublish
Browse appsHow it worksPublish a repoGet helpPricingDevelopersGitHubPrivacy
© 2026 publik
← All apps

Hairpin

Try any haircut on your own photo, then hand your barber a brief.

AI: publik API or your key

✓publik verified: the founder reviewed this exact version for malware and approved it

by @aqx

H

Hairpin

open source · on publik

Use Hairpin online

Open the app →

Opens in your browser. Nothing to install.

◆Built on Publik APIBuild yours →

publik API is one option

  • AI chat & tools: Chat completions with tool calls, JSON schemas and images, priced per tier in dollars.
  • Image generation: Images billed per image.
  • By default, Hairpin still runs on your machine, unless you pick the cloud option.
  • Choosing it needs no key to paste. Link your publik account and start the 7-day free trial to try it.
  • Then Hairpin pays publik's published price per use, and your own key still works.
How pricing works →
Vote on Hairpin
0
Open in GitHub↗

Having trouble? Tell us

Where Hairpin’s AI runs, and what it costs

Prices are for one typical use: one request of about 1,500 words sent and 375 words back. A higher quality score is better.

On your computer

Not checked yet: publik has not read whether Hairpin can run its AI on your computer.

publik API

Price
$0.0100 per use, $10.00 per 1,000 usespublik-balanced, the level Hairpin uses most
Quality
MiMo-V2.6-Pro: 46
Setup
Built in. No key to paste; link your publik account and start the 7-day free trial to try it.

Your own key

Price
$0.0013 per use, $1.31 per 1,000 usesMiMo-V2.6-Pro at OpenRouter’s list price, before its fee for buying usage
Quality
MiMo-V2.6-Pro: 46
Setup
Open a provider account, add a card, paste the key into Hairpin.

Quality and price, side by side

Quality score and cost per 1,000 typical uses for local models and the three publik API levels
ModelQualityPer 1,000 uses
On your computer (Ollama, 4-bit download size)
Granite 4.2 3B2.2 GB9$0
Phi-4 Mini2.5 GB6$0
Llama 3.1 8B4.9 GB7$0
gpt-oss 20B14 GB9$0
Gemma 4 31B20 GB19*$0
Qwen3.5 35B-A3B24 GB19*$0
publik API
publik-fastGLM-5.3 Flash42$1.00
publik-balancedMiMo-V2.6-Pro · Hairpin46$10.00
publik-smartGPT-6 Sol48$18.00

Quality: Artificial Analysis Intelligence Index v4.3.2, read 2026-09-22 (publik API models 2026-09-25); * = estimated by Artificial Analysis. Sizes: the Ollama library, read 2026-09-22.

What you pay for

  • On your computer: nothing per use. You pay in disk space, memory and electricity, at lower quality.
  • publik API: publik’s published price for each use, in dollars, from your publik balance. It is above the model’s cost; the difference runs publik and pays the app’s builder.
  • Your own key: the provider’s price, billed to an account you keep with the provider.
Install Hairpin: publik API is built in →How publik API pricing works →

README

Open in GitHub ↗

Hairpin

Hairpin lets you try any haircut on your own photo before you sit in the barber's chair: browse the hair library or upload a screenshot of a cut you've seen, preview it on yourself, decode what it's called, and turn the one you like into a Barber Brief you can show your barber. It is a Next.js web app (installable as a PWA) that opens with Google sign-in followed by Sign in with publik, and runs each person's AI on their own publik plan or, if they prefer, their own OpenAI key. To run it, npm install, copy .env.example to .env.local, replace the PLACEHOLDER_[...] values you have, and npm run dev; anything left as a placeholder simply stays switched off. To fill the landing page, drop a darkened-friendly haircut clip at public/hero/hero.mp4 (with an optional public/hero/poster.jpg) and import photos or clips into the library with node scripts/import-photos.mjs <folder>.