Introduction¶
Wedding invitations need to carry the visual aesthetic of the couple’s photos, arrange dates, locations, and names appropriately, and accommodate different aspect ratios such as vertical feeds and horizontal large screens. Manual template filling often results in a disconnect between style and photos; pure text-to-image generation tends to miss fields or result in unstable layouts. If you want an Agent to complete compliance, analysis, layout, and image generation through structured inputs in a conversation, you can install the enterprise skill from SkillHub, Wedding Invitation Generation - ShowAPI (@showapi/wedding-invitation-generation-showapi), into your current Agent. The ShowAPI workflow maintained by ShowAPI (Wan Wei Yi Yuan) will handle the backend capabilities.
What is this¶
Wedding Invitation Generation - ShowAPI is an enterprise skill under the design-media category on SkillHub, currently at version 1.0.2, published by ShowAPI. The official page indicates requires_api_key=true; calling ShowAPI requires configuring an AppKey.
In one sentence: It automatically analyzes visual styles based on wedding photos and wedding information, designs invitation text layouts, and fuses them to generate high-quality, personalized wedding invitation images. Applicable scenarios include wedding invitation creation, wedding creative design, personalized invitation customization, and wedding planning.
On SkillHub, this skill has a rating of 100000 and 33398 downloads (page statistics, as of data capture).
Core Functionality¶
The skill’s SKILL.md breaks the pipeline into six serial stages. Inputs undergo compliance validation before entering analysis and layout, followed by asynchronous image generation and polling:
- Compliance Validation & Optimization (prompt_guardian): Validates and optimizes text regarding the couple’s names, wedding date, and venue for compliance.
- Wedding Photo Visual Style Analysis (wedding_photo_analyze): Outputs the overall style (e.g., Chinese/Western/Modern), color tone, emotional atmosphere, and composition features, providing a direction for invitation design.
- Invitation Text & Layout Design (invitation_text_layout): Generates
formatted_textandlayout_designbased on wedding information and the couple’s names. - Image Generation Prompt Fusion (invitation_image_prompt): Merges photo analysis, optional user-specified styles, image ratios, and layout schemes to generate the final prompt.
- Initiate Invitation Image Generation (Interface 3373): Submits the task asynchronously using the wedding photo as a reference image, returning a
task_idandresult_url. - Status Polling (polling): Queries approximately every 6 seconds, with a maximum wait of 1500 seconds, until
task_statusbecomesSUCCEEDED, yielding theinvitation_image_url.
Main input fields: img_url, groom, bride, wedding_date, and wedding_venue are required; wedding_time, style, and ratio are optional. If style is empty, the photo analysis result is used; ratio can be 1:1, 3:4, 4:3, 16:9, or 9:16, defaulting to 9:16.
Without an AppKey, the skill instructions support a simulation mode (a one-time POST to a simulation interface for preview); real generation requires configuring showapi_appkey and including appKey in the API URL query parameters. Official documentation notes an estimated cost of 0.22 CNY/call for a real invocation (including model inference). Script dependencies are limited to the Python standard library.
Installation and Activation¶
Install SkillHub CLI¶
If the CLI is not installed, check the version first:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation to perform a full installation (example is the officially recommended command):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which may not be recognized. The skill coordinates are @showapi/wedding-invitation-generation-showapi. An equivalent installation command example:
skillhub install wedding-invitation-generation-showapi --namespace showapi --dir <skills directory>
Common skills paths for Agents (from SkillHub installation instructions):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also ask the AI in conversation to install @showapi/wedding-invitation-generation-showapi by referencing https://skillhub.cn/install/skillhub.md. After installation, restart or refresh the skill list as required by the client.
Configure AppKey¶
Credential name: showapi_appkey. If not registered, you can obtain an app_key via ShowAPI’s agent_sendCode and agent_verify interfaces using a mobile verification code, as described in the skill documentation. Subsequent requests should include appKey={app_key} in the URL.
Typical Usage¶
In the skill directory, after configuring the AppKey, follow the mandatory asynchronous flow: submit the task to get a task_id, then poll until success.
1. Collect Information
Confirm the accessible URL of the wedding photo, the names of the groom and bride, the wedding date, and venue. Supplement with wedding time, style (e.g., Cute, Chinese), and ratio as needed.
2. Submit Async Task
Execute in the skill package root directory (parameters match the official SKILL.md example):
python scripts/execute_task.py --img-url "Wedding Photo URL" --groom "Zhang San" --bride "Li Si" --wedding-date "August 29, 2026 (Saturday)" --wedding-venue "Rock Hotel Haitang Hall" --wedding-time "18:00" --style "Cute" --ratio "9:16"
3. Poll for Results
python scripts/query_task.py --task-id "Returned task_id value"
Query approximately every 6 seconds as per documentation rhythm, with a maximum wait of 1500 seconds; provide core progress feedback to the user in each round. Upon success, read invitation_image_url and task_id from the response. You can download the image or generate a simple HTML page to display the invitation and text.
Example format of showapi_res_body upon success:
{
"invitation_image_url": "Access URL for the final generated high-definition wedding invitation image",
"task_id": "Unique identifier for the image generation task",
"task_status": "SUCCEEDED"
}
Applicable Scenarios and Notes¶
Who it is for: Developers and operators who need to quickly produce electronic invitation images consistent with wedding photo styles within Agent conversations, or integrate invitation generation into wedding-related products. It is also suitable for scenarios requiring regeneration during the planning phase due to text or ratio changes.
Things to note:
- The wedding photo URL must be accessible by the backend; missing required fields will prevent the workflow from starting.
- Image generation is entirely asynchronous; you cannot simply call
execute_task.pywithout polling withquery_task.py. - Simulation mode is for effect preview only and differs from the real AppKey call path. Authentication and billing confirmation must be completed before going live.
- Enterprise skills depend on the availability and account quota of ShowAPI. Network security and AppKey leakage risks must be managed by yourself.
Conclusion¶
Wedding Invitation Generation - ShowAPI encapsulates compliance, photo style analysis, text layout, and asynchronous image output into an Agent-executable SKILL workflow, reducing the manual effort required to align styles and layouts across multiple tools. For installation and details, visit SkillHub:
- https://www.skillhub.cn/skills/showapi/wedding-invitation-generation-showapi
- https://api.skillhub.cn/showapi/wedding-invitation-generation-showapi