keevx-image-generate
Use the Keevx API to generate images from prompts and reference images. Supports standard and professional modes, multiple quality levels (1K/2K/4K), various aspect ratios, and batch generation. Use this skill when the user needs to: (1) Generate images from text prompts (2) Create AI images with reference images (3) Batch image generation (4) Query image generation task status. Keywords: image generate, Keevx, AI image, text to image.
Best use case
keevx-image-generate is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use the Keevx API to generate images from prompts and reference images. Supports standard and professional modes, multiple quality levels (1K/2K/4K), various aspect ratios, and batch generation. Use this skill when the user needs to: (1) Generate images from text prompts (2) Create AI images with reference images (3) Batch image generation (4) Query image generation task status. Keywords: image generate, Keevx, AI image, text to image.
Teams using keevx-image-generate should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/keevx-image-generate/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How keevx-image-generate Compares
| Feature / Agent | keevx-image-generate | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use the Keevx API to generate images from prompts and reference images. Supports standard and professional modes, multiple quality levels (1K/2K/4K), various aspect ratios, and batch generation. Use this skill when the user needs to: (1) Generate images from text prompts (2) Create AI images with reference images (3) Batch image generation (4) Query image generation task status. Keywords: image generate, Keevx, AI image, text to image.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
SKILL.md Source
# Keevx Image Generate Skill
Generate high-quality AI images via the Keevx API using text prompts and optional reference images. Each request generates one or more images with configurable quality, ratio, and mode.
## Prerequisites
Set the environment variable `KEEVX_API_KEY`, obtained from https://www.keevx.com/main/home. Documentation: https://docs.keevx.com
```bash
export KEEVX_API_KEY="your_api_key_here"
```
## API Endpoints
- Base URL: `https://api.keevx.com/v1`
- Upload image: `POST /figure-resource/upload/file` (Content-Type: `multipart/form-data`)
- Create task: `POST /image_generate` (Content-Type: `application/json`)
- Query status: `GET /image_generate/{task_id}`
- Auth: All endpoints use `Authorization: Bearer $KEEVX_API_KEY`
- Source identifier: All endpoints require the `source: skill` Header
## Request Parameters
- `prompt` (required): Generation prompt, max 1000 characters
- `reference_images` (optional): Array of reference image URLs, max 5 images, each under 20MB. Supported formats: JPG/JPEG/PNG/BMP/WebP/GIF
- `module` (optional): Generation mode, `std` (standard, default) or `pro` (professional)
- `generate_count` (optional): Number of images to generate, 1-8, default 1. Each image produces a separate task ID
- `image_quality` (optional): Output quality: `1K`, `2K` (default), `4K`
- `image_ratio` (optional): Aspect ratio, default `9:16`. Valid values: `1:1`, `3:2`, `2:3`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
- `callback_url` (optional): Callback URL for task completion notification
## Image Input Handling
User-provided images may be URLs or local file paths, handle accordingly:
- **URL** (starts with `http://` or `https://`): Use directly in `reference_images`
- **Local file path**: Upload via the upload endpoint first, then use the returned URL
### Upload Local File
```bash
curl --location 'https://api.keevx.com/v1/figure-resource/upload/file' \
--header 'Authorization: Bearer $KEEVX_API_KEY' \
--header 'source: skill' \
--form 'file=@"/path/to/local/image.png"'
```
Response:
```json
{
"code": 0,
"success": true,
"message": { "global": "success" },
"result": {
"url": "https://storage.googleapis.com/.../image.png",
"fileId": "c5a4676a-...",
"fileName": "image.png"
}
}
```
Extract the image URL from `result.url` for use in `reference_images`. For multiple local files, upload each one and collect all URLs.
## Quick Examples
### Basic Generation (Prompt Only)
```bash
curl -X POST "https://api.keevx.com/v1/image_generate" \
-H "Authorization: Bearer $KEEVX_API_KEY" \
-H "source: skill" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A serene mountain lake at sunset with golden light reflecting on the water",
"image_quality": "2K",
"image_ratio": "16:9"
}'
```
### Generation with Reference Images
```bash
curl -X POST "https://api.keevx.com/v1/image_generate" \
-H "Authorization: Bearer $KEEVX_API_KEY" \
-H "source: skill" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Product shot on white background with soft lighting",
"reference_images": ["https://example.com/product.jpg"],
"module": "pro",
"generate_count": 4,
"image_quality": "4K",
"image_ratio": "1:1"
}'
```
### Query Task Status
```bash
curl -X GET "https://api.keevx.com/v1/image_generate/i2is-xxxxxxxx" \
-H "Authorization: Bearer $KEEVX_API_KEY" \
-H "source: skill"
```
## Response Format
### Task Created Successfully
```json
{
"code": 0,
"msg": "ok",
"data": {
"task_ids": ["i2is-a1b2c3d4e5f6", "i2is-g7h8i9j0k1l2"]
}
}
```
The `task_ids` array contains one ID per generated image (count equals `generate_count`). Query each ID individually.
### Task Query - Generating
```json
{
"code": 0,
"msg": "ok",
"data": {
"task_id": "i2is-a1b2c3d4e5f6",
"status": "GENERATING",
"image_url": "",
"thumbnail_url": "",
"error_message": ""
}
}
```
### Task Query - Succeeded
```json
{
"code": 0,
"msg": "ok",
"data": {
"task_id": "i2is-a1b2c3d4e5f6",
"status": "SUCCEEDED",
"image_url": "https://storage.googleapis.com/.../image.png",
"thumbnail_url": "https://storage.googleapis.com/.../thumb.webp",
"error_message": ""
}
}
```
### Task Query - Failed
```json
{
"code": 0,
"msg": "ok",
"data": {
"task_id": "i2is-a1b2c3d4e5f6",
"status": "FAILED",
"image_url": "",
"thumbnail_url": "",
"error_message": "Image generation failed due to content policy"
}
}
```
### Status Values
- `GENERATING`: Task is in progress
- `SUCCEEDED`: Image generated successfully
- `FAILED`: Generation failed, check `error_message`
### Error Response
```json
{
"code": 100001,
"msg": "Parameter error: prompt is required"
}
```
## Callback Notification
Provide `callback_url` when creating a task. The system will send a POST request to that URL upon task completion:
```json
{
"code": 0,
"msg": "ok",
"task_type": "image_generate",
"data": {
"task_id": "i2is-18e830d27ea041658e4accd576ea7008",
"status": "SUCCEEDED",
"image_url": "https://storage.googleapis.com/.../image.png",
"error_message": ""
}
}
```
Callback field descriptions:
- `code`: Status code, 0 indicates success
- `task_type`: Fixed as `image_generate`
- `data.task_id`: Task ID
- `data.status`: `SUCCEEDED` or `FAILED`
- `data.image_url`: Generated image URL (on success)
- `data.error_message`: Error message (on failure)
## Polling Strategy
Image generation typically completes within a few minutes. Recommended: 10-second intervals, max 60 retries (up to 10 minutes). If timeout is reached, direct the user to https://www.keevx.com/main/meta/creations to retrieve the result.
```bash
MAX_RETRIES=60
INTERVAL=10
for i in $(seq 1 $MAX_RETRIES); do
status=$(curl -s -X GET "$API_BASE/image_generate/$TASK_ID" \
-H "Authorization: Bearer $KEEVX_API_KEY" \
-H "source: skill" | jq -r '.data.status')
if [ "$status" = "SUCCEEDED" ]; then echo "Success"; break
elif [ "$status" = "FAILED" ]; then echo "Failed"; break; fi
sleep $INTERVAL
done
echo "Maximum wait time (10 minutes) reached. The task may still be processing."
echo "Please visit https://www.keevx.com/main/meta/creations to check and retrieve the result."
```
When `generate_count > 1`, poll each `task_id` from the response individually.
## Error Codes
| HTTP Status Code | Description |
|-----------------|-------------|
| 200 | Success |
| 400 | Parameter error |
| 401 | Authentication failed |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
| Business Error Code | Description | Solution |
|--------------------|-------------|----------|
| 100001 | Parameter error | Check parameter format and required fields |
| 100002 | Validation failed | Verify parameter values are within valid ranges |
| 530002 | Image processing error | Ensure image URL is accessible, format supported, size under 20MB |
| 530003 | Task creation failed | Retry the request |
| 110002 | Task not found | Verify task_id is correct |
## Notes
- Generated image URLs are retained for **7 days** only; download promptly
- Max reference image size: 20MB per image, supported formats: JPG/JPEG/PNG/BMP/WebP/GIF
- Max prompt length: 1000 characters
- Reference images exceeding 5 will be silently truncated to 5
- Images over 15MB are automatically compressed to WebP before processing
- Prompt tips: describe subject, style, composition, lighting, mood, and color palette for best resultsRelated Skills
alphashop-image
AlphaShop(遨虾)图像处理 API 工具集。支持11个接口:图片翻译、图片翻译PRO、 图片高清放大、图片主题抠图、图片元素识别、图片元素智能消除、图像裁剪、 虚拟试衣(创建+查询)、模特换肤(创建+查询)。 触发场景:图片翻译、翻译图片文字、放大图片、高清放大、抠图、去背景、 检测水印/Logo/文字、消除水印、去牛皮癣、裁剪图片、虚拟试衣、AI试衣、 模特换肤、换模特、AlphaShop图像、遨虾图片处理。
image-gen
Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".
minimax-imagegen
Expert image generation skill using MiniMax image-01. Use this skill ANY TIME the user asks to create, generate, make, or produce an image, visual, graphic, banner, illustration, icon, screenshot mockup, hero image, thumbnail, social media asset, app icon, website visual, or any other image — even if they just say "make me a picture of X." This skill should also trigger when the user asks to improve or iterate on a previous image prompt, or when image output would enhance a task (e.g., "I need a hero image for my blog post"). Covers all use cases: website assets for tonyreviewsthings.com and tonysimons.dev, app/software media, marketing visuals, social media content, UI mockups, character/portrait generation, and general creative requests.
image-to-editable-ppt-slide
Rebuild one or more reference images as visually matching editable PowerPoint slides using native shapes, text, fills, and layout instead of a flat screenshot. Use when the user wants an image, flowchart, infographic, dashboard, process diagram, or designed slide converted into an editable PPT/PPTX deck that stays editable and closely matches the source.
openrouter-image-generation
Generate or edit images through OpenRouter's multimodal image generation endpoint (`/api/v1/chat/completions`) using OpenRouter-compatible image models. Use for text-to-image or image-to-image requests when the user wants OpenRouter, `OPENROUTER_API_KEY`, model overrides, or provider-specific `image_config` options.
save-article-with-images
Save web articles locally with images. Automatically downloads images, generates Markdown, and converts to PDF. Supports WeChat Official Account articles via subagent isolation. Triggers: save article, save this article, download article, clip article, wechat article.
blog-image-claw-skill
Generate ai blog image generator images with AI via the Neta AI image generation API (free trial at neta.art/open).
image-review
用户说评价、改进、优化图片时触发。
generate-image
用户请求画图时触发。
modelscope-image-gen
通过魔搭社区(ModelScope) API 生成图片。先使用 --list-models 查看可用模型,然后根据用户需求由 AI 生成专业的提示词,最后调用 API 生成图片。支持 Kolors、Stable Diffusion XL、FLUX 等多种文生图模型。当用户需要使用魔搭社区、ModelScope 或中文 AI 模型生成图片时使用此技能。
ai-ppt-generate
The intelligent PPT generation tool is provided by Baidu. It is a tool that intelligently generates PPTS based on the themes or questions given by users. Users can choose PPT themes, templates, or even customize their own templates. It also provides image or resource files (such as pdf,word,txt, etc.). The download address for the final generated PPT file is provided
keevx-video-translate
Translate videos into a specified target language using the Keevx API. Supports audio-only translation, subtitle generation, and dynamic duration adjustment. Use this skill when the user needs to (1) Translate/dub a video (2) Translate a video from one language to another (3) Query the list of supported translation languages (4) Check the status of a video translation task. Keywords video translate, Keevx, dubbing.