Introduction¶
When working with “text-to-image,” “reference image-to-image,” or “generative image editing” in environments like Cursor or Claude Code, a common approach is to hand-write HTTP requests, cross-reference documentation to assemble modelType, resolution, and quality tiers, then inject API keys into configuration. With many interface fields and asynchronous task creation, it’s easy to miss parameters or inadvertently use an unsupported use case (e.g., video or OCR).
Below we introduce a community Skill on SkillHub — image2-official-kancyai — which aligns the official image2-official capabilities with an Agent’s trigger intent, routing through a unified entry point asyncCreateWithCost in the appropriate conversational context to reduce the cost of repeatedly consulting documentation.
What Is This¶
image2-official-kancyai (version 1.0.0, coordinate @user_4bd21536/image2-official-kancyai) is a SkillHub community source Skill categorized under design-media, published by user_4bd21536. The tag requires_api_key=true indicates that an API key must be configured before use.
The Skill’s purpose is: to use the image2-official API to create official image generation tasks, covering three capabilities:
- Text-to-image (
text2img) - Reference image-to-image / image-to-image (
img2img) - Generative image editing (
imgEdit)
Official Skill page: https://www.skillhub.cn/skills/user_4bd21536/image2-official-kancyai
Skill API endpoint: https://api.skillhub.cn/user_4bd21536/image2-official-kancyai
Core Features¶
Based on the SkillHub description and documentation, this Skill performs two main tasks on the Agent side: identifying whether to use the official image generation pipeline, and invoking the asynchronous task creation endpoint with the agreed-upon parameters.
When to Activate This Skill¶
When a user mentions phrases like “generate an image,” “image-to-image,” “edit an image,” “poster,” “cover image,” or explicitly requests:
- Quality:
low/medium/high - Resolution:
1k/2k/4k - Aspect ratio: e.g.,
16:9,9:16
This Skill should be used instead of manually assembling calls to other image APIs.
Endpoint & Core Parameters¶
The calling endpoint is:
POST /api/v1/user_task/asyncCreateWithCost
The user_input in the request body must include (excerpt; refer to the official API documentation for the complete list):
| Field | Description |
|---|---|
modelType |
One of text2img, img2img, imgEdit |
prompt |
Text prompt |
size |
Canvas size / aspect ratio configuration |
resolution |
e.g., 1k, 2k, 4k |
quality |
low, medium, high |
output_format |
Output format |
image_urls |
Reference image or image-to-edit URL (img2img, imgEdit scenarios) |
Authentication uses the x-api-key request header, with the key sourced from kexiangai.com (as stated in the Skill description).
Explicitly Unsupported Capabilities¶
The Skill documentation states: Do NOT use for
- Video generation
- OCR
- Non-generative image editing
Do not route the above requirements through this Skill.
Installation & Activation¶
The SkillHub reference materials attached to this task do not include unified installation commands or local directory names for Cursor, Codex CLI, or Claude Code. After verification, this article only records verifiable metadata to avoid fabricating installation steps.
On SkillHub, you can search by coordinate and view Skill details:
- Name:
image2-official-kancyai - Coordinate:
@user_4bd21536/image2-official-kancyai - Category:
design-media - Rating: 100000; Downloads: 788 (page statistics)
Before activation, prepare an x-api-key from kexiangai.com and comply with the Skill tag requires_api_key=true. For specifics on how to attach the Skill to your chosen Agent product, refer to the SkillHub page and that product’s current documentation.
Typical Usage (Parameter Level)¶
The examples below illustrate the interface shape the Agent should align with after understanding user intent, for easy cross-reference with the official user_input; the hostname and full JSON wrapper are subject to the image2-official and kexiangai.com live documentation.
1. Text-to-image (poster / cover, 16:9, 2k, quality medium)
User says: “Create a 16:9 tech product launch cover, 2k, quality medium.”
The Agent should use this Skill and set approximately:
{
"user_input": {
"modelType": "text2img",
"prompt": "科技发布会封面,主视觉简洁,留出标题区",
"size": "16:9",
"resolution": "2k",
"quality": "medium",
"output_format": "png"
}
}
2. Reference image-to-image (img2img)
The user uploads or provides a reference image URL and requests: “Keep the composition, switch to a watercolor style”:
{
"user_input": {
"modelType": "img2img",
"prompt": "水彩插画风格,保留原构图",
"image_urls": ["https://example.com/reference.png"],
"resolution": "1k",
"quality": "high",
"output_format": "png"
}
}
3. Generative image editing
The user provides an image URL to edit and requests: “Change the background to a night scene”:
{
"user_input": {
"modelType": "imgEdit",
"prompt": "背景改为城市夜景,主体不变",
"image_urls": ["https://example.com/source.png"],
"resolution": "2k",
"quality": "medium",
"output_format": "jpeg"
}
}
After task creation, the flow is asynchronous: results must be retrieved per the image2-official task query protocol, rather than assuming a synchronous binary image return.
Use Cases & Notes¶
Who It’s For
- Developers or design collaborators who want stable integration with image2-official within Agent conversations
- Teams that need to switch between text-to-image, reference image-to-image, and generative editing within a single conversation, with the model uniformly filling parameters based on
modelTypeand resolution / quality tiers
Usage Notes
- API Key: Tasks cannot be created without a valid
x-api-key; key permissions and billing are governed by the kexiangai.com account. - Asynchronous & Cost: The endpoint is named
asyncCreateWithCost; task creation typically involves asynchronous status tracking and cost settlement, requiring polling or callback handling on the business side (subject to the official API). - Capability Boundaries: Do not use for video, OCR, or traditional non-generative image editing; route such needs to dedicated tools or Skills instead.
- Document Version: This article is compiled based on the 1.0.0 description on the SkillHub page; field additions or changes are subject to official API updates.
Conclusion¶
image2-official-kancyai consolidates “when to use the official image generation pipeline” and “how to fill in parameters for text2img / img2img / imgEdit” into a single Skill, reducing the risk of omissions when hand-writing calls to /api/v1/user_task/asyncCreateWithCost in Agent workflows.
For reference and citation, please refer to the official SkillHub page:
https://www.skillhub.cn/skills/user_4bd21536/image2-official-kancyai