{"uid":"cap_bF7Ymo-oJGvVYotOYy0dG","slug":"leoclaw-hair-formula-api-31cfa262","name":"LeoClaw Hair Formula API","description":"Hair recommendations from a face photo: face-shape analysis + 3 barber-ready haircut recipes + 3 styles to avoid + share cards.","url":"https://api.leoclaw.cc/hair-formula","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image_b64":{"type":"string","minLength":1},"image_url":{"type":"string","format":"uri"},"idempotency_key":{"type":"string"},"side_profile_url":{"type":"string","format":"uri"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WqoxMr-oSGQ73B2rDmbMe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a face photo to determine face shape, then generates 3 personalized barber-ready haircut recommendations plus 3 styles to avoid, with shareable cards.","exampleAgentPrompt":"Look at this photo of me and tell me what face shape I have, which three haircuts my barber should give me, and which styles I should stay away from — here's my image: [image_url].","exampleUseCases":[{"title":"Pre-barbershop selfie consultation","prompt":"I'm heading to the barber tomorrow and have no idea what to ask for — can you analyze this selfie of me and give me three specific haircut styles that would suit my face, plus a few I should definitely avoid?"},{"title":"App feature for hair salon booking","prompt":"A user just uploaded their profile photo to our salon app. Run a face shape analysis on this image URL and generate three personalized haircut recommendations with barber instructions they can screenshot and bring in."},{"title":"Side-profile-aware style matching","prompt":"I've got both a front-facing photo and a side profile shot. Can you use both to figure out my face shape and tell me the best haircuts for me, along with the ones that won't work?"}],"resultDescription":"Returns a face shape classification (e.g. oval, round, square, heart), three barber-ready haircut recipes tailored to that shape, three hairstyles to avoid, and shareable card assets the user can save or send.","failureModes":["No face detected in image — returns error if photo is unclear or not a face","Image too small or low resolution — analysis may fail or return low-confidence results","Invalid image URL or inaccessible image — returns URL fetch error","Both image_b64 and image_url omitted — returns validation error","Side profile URL inaccessible — falls back to front-only analysis or errors"],"whenToPreferThis":"Choose this endpoint when you need AI-driven, personalized hair recommendations derived directly from a face photo rather than manually selected face shapes or generic style guides. It is ideal for consumer apps, barber booking platforms, beauty assistants, or any agent workflow that needs to go from a selfie to actionable, barber-ready haircut instructions in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:21.246Z","isFirstParty":false}