AI Agent Hub
Back to skills
ID Photo Generator icon

ID Photo Generator

Design & Media Updated 2026.08.30

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

Please follow https://skillhub.cn/install/skillhub.md to install @ixhlink/ixhlink-skills-id-photo-gen.

About this skill

Problem

In ID photo workflows, the input is usually one real portrait, while the output must satisfy a clean background, formal clothing, half-body 3:4 framing, and a centered head. Hand-written prompts can over-embellish the subject or leak server-side style recipes. ID Photo Generator requires at least one reference image and keeps style, framing, and makeup constraints inside the server workflow.

How it works

  • Analyze the reference image and fill short fields such as options.gender, options.age, and options.clothing; when text and image conflict, the image wins by default.
  • Call the fixed model and capability with image_edit; the full prompt can be omitted because the server assembles the closed-source instructions.
  • Poll the async task until status becomes succeeded, then return the image from data.result.data[].url.
  • When payment is required, the first call returns 402; retry with the same JSON body and complete payment via the weixinpay extension.

Boundaries

Do not generate without a reference portrait. Do not compose long style prompts on the client side. Keep options to short overrides such as background, clothing, and size_hint. On failure, inspect data.error_message instead of inventing third-party endpoints.

Use Cases

  • Create exam registration photos from a casual portrait with formal wear and a light-gray one-inch size.
  • Prepare a visa headshot from a personal photo by specifying a white shirt and light-gray background.
  • Generate a professional job-site avatar with a centered head and formal half-body framing.
  • Produce candidate onboarding photos by filling short options and polling for image URLs.

Best For

  • Exam applicants who want to turn casual half-body selfies into formal ID photos on light-gray backgrounds.
  • Visa document specialists who need 3:4 headshots with white shirts and clean backgrounds.
  • Recruiting ops staff who need batch candidate headshots and retrievable image URLs.
  • Application engineers who need a fixed async image-edit API with payment handling.