AI Agent Hub
Back to skills
Smart Hairstyle Design icon

Smart Hairstyle Design

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Install @showapi/smart-hairstyle-design-showapi by following https://skillhub.cn/install/skillhub.md.

About this skill

Problem Addressed

When guiding a client through a haircut or image refresh, a single portrait photo is often enough to start, but designers still need several visible hairstyle options on the same face. Manual iteration is slow and hard to compare. This skill solves that by taking a clear face image and producing a 3x3 preview grid of nine hairstyle variants, while also keeping the original image and nine split sub-images for review.

How It Works

  • Input handling: accepts portrait_image as Base64 or an accessible URL, then runs safety and compliance review before generation.
  • Prompt generation: uses the person's appearance and settings such as aspect_ratio and need_text to build hairstyle prompts, constrained to a 3x3 grid layout.
  • Async generation: submits the image generation job without blocking, returns a task_id, and polls until the result is ready, which fits longer generation jobs.
  • Output split: after the combined image is available, it splits the 3x3 grid into nine independent images and returns the source image, combined image, and sub-image URLs.

Boundaries

Best for clear front-facing portraits that pass review and can be supplied as Base64 or a URL. Real generation depends on ShowAPI credentials; without them, the system may return a simulated preview only. The workflow is asynchronous, so the caller should keep polling and surface each poll response to the user.

Screenshots

Use Cases

  • In a hair salon, a stylist takes a client's front-facing photo and quickly generates nine face-fitting hairstyle previews to discuss options on the spot.
  • When an image-refresh consultant needs a labeled comparison, they use a half-body photo to build a 3x3 preview and split it into individually saveable sub-images.
  • When a QA team verifies the image generation endpoint, they use a no-appKey simulated call to get the 9-grid result and split-image URLs and confirm the response shape.
  • When content ops produces hairstyle concept images for a drama character, they upload a front-facing base image at 1:1 ratio and batch-fetch nine comparable options.

Best For

  • Hair salon stylists who need to show clients several face-fitting hairstyle options and confirm one on the spot.
  • Image-refresh consultants who need to turn a client's front-facing photo into a labeled, comparable preview quickly.
  • Film content operators who need to batch-produce multiple comparable hairstyle concept images that can be saved individually.
  • API test engineers who need to verify the image generation endpoint's async response shape, image splitting, and safety review flow.