Introduction¶
In conversational development environments, when a user says something like “Help me generate a 16:9 cover” or “Change the style based on this reference image,” Agents often guess the model or aspect ratio, or mistakenly use non-generation capabilities like video or OCR if they lack clear guidance. By writing invocation rules into a Skill, we can align a consistent set of conventions regarding trigger words, parameter structures, and authentication methods. Below is an introduction to the community Skill image2-kancyai (Coordinate: @user_4bd21536/image2-kancyai, Version 1.0.1), which encapsulates the image2 asynchronous task interface of Kexiang AI, supporting text-to-image (text2img) and reference-to-image (img2img).
What is this¶
image2-kancyai is a community Skill on SkillHub categorized under design-media, published by user_4bd21536. In one sentence: When a user wants to generate images, perform image-to-image, create posters, or covers, or explicitly provides an aspect ratio (such as 16:9, 9:16), the Agent should use this Skill to call image2’s asyncCreateWithCost to create an asynchronous generation task with billing information.
The Skill page indicates requires_api_key=true; an x-api-key must be prepared on the kexiangai.com side. The official description also states: Do not use this for video generation, OCR, or non-generative image editing.
Core Features¶
The verified capabilities revolve around the interface /api/v1/user_task/asyncCreateWithCost, with core input parameters located within user_input:
| Field / Concept | Description |
|---|---|
user_input.modelType |
text2img: Text-to-image; img2img: Reference-to-image |
prompt |
Generation description |
size |
Image size (can correspond to aspect ratios like 16:9, 9:16 requested by the user) |
urls |
Required for img2img, reference image addresses, up to 8 images max |
Text-to-image only requires text2img along with prompt and size; reference-to-image must provide accessible image links in urls, otherwise it does not comply with the interface agreement.
Installation and Activation¶
The materials do not provide specific installation commands for Cursor, Codex CLI, or Claude Code. This section only lists verifiable paths and configuration points.
-
View the Skill description and package contents on SkillHub:
https://www.skillhub.cn/skills/user_4bd21536/image2-kancyai -
Depending on the Skill loading method of your Agent product, add the coordinate
@user_4bd21536/image2-kancyai(or the official distribution address) to your workspace Skill list. Official API Entry:
https://api.skillhub.cn/user_4bd21536/image2-kancyai -
Configure the x-api-key in the environment or location required by the Skill (Source: kexiangai.com). If not configured, asynchronous task creation will fail due to authentication errors.
Typical Usage¶
The Skill’s responsibility is to tell the Agent: When to call, Which path to call, and What are the required fields. The actual HTTP request is initiated by the Agent or supporting scripts; below are structural examples to illustrate how user_input should be organized (field names are based on the official introduction).
For Text-to-Image (text2img), first select modelType, then clearly specify the prompt and size:
{
"user_input": {
"modelType": "text2img",
"prompt": "Flat illustration style product poster with ample white space",
"size": "16:9"
}
}
For Reference-to-Image (img2img), on top of the same fields, urls must be included, and must not exceed 8 images:
{
"user_input": {
"modelType": "img2img",
"prompt": "Keep the composition, switch to a neon night scene style",
"size": "9:16",
"urls": [
"https://example.com/reference-1.png"
]
}
}
The request must carry the x-api-key header and be POSTed to /api/v1/user_task/asyncCreateWithCost. Task creation is asynchronous; polling or callback methods should follow the current documentation of the Kexiang AI / image2 platform. This Skill introduction does not elaborate on this, and no response fields are speculated upon in this text.
The mapping between user utterances and Skill trigger conditions can be summarized as follows:
- “Generate image”, “poster”, “cover image” → Prioritize text2img, unless the user explicitly provides a reference image.
- “Image-to-image” or accompanied by image URLs → img2img, and
urlsis mandatory. - Explicit ratio → Write to
size(e.g., 16:9, 9:16).
Use Cases & Notes¶
Who is it for
- Teams or individuals who need to stably produce covers, posters, and illustrations within IDE / CLI Agents and wish to align with Kexiang AI image2 billing tasks.
- Developers who want to drive generation using natural language ratios (16:9, 9:16) instead of manually writing full API documentation every time.
Limitations and Notes
- Boundary: Not for video, OCR, or non-generative photo editing; if out of scope, switch to other Skills or tools.
- Authentication: Relies on x-api-key, do not commit keys to public repos; the Skill tag indicates
requires_api_key=true. - Reference Image Quantity: The
urlsfor img2img are limited to a maximum of 8; exceeding this requires cropping or batching tasks. - Community Source: Classified as design-media, source is community; the SkillHub page shows a rating of 100000 and 882 downloads (statistics are based on the SkillHub page and are subject to change over time).
Conclusion¶
image2-kancyai encodes “when to draw” and “the minimum parameters required for image2 asynchronous tasks” into a Skill readable by Agents, reducing false triggers and missing urls. If your workflow frequently involves covers, posters, or reference-to-image requirements, you can install it from SkillHub, configure the Kexiang AI API Key, and let the Agent route to /api/v1/user_task/asyncCreateWithCost when users mention image generation or ratios.
- SkillHub Page: https://www.skillhub.cn/skills/user_4bd21536/image2-kancyai
- Official Address: https://api.skillhub.cn/user_4bd21536/image2-kancyai