← Back to Skills Marketplace
apifox-image-gen
by
balckbeeai
· GitHub ↗
· v1.0.0
· MIT-0
254
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install apifox-image-gen
Description
使用Apifox图像生成API (jyapi.AI-WX.CN) 生成图片。支持gpt-image-1.5和grok-4-1-image模型。
README (SKILL.md)
Apifox Image Generation
使用jyapi.AI-WX.CN图像生成API生成图片。
快速开始
python3 /root/.openclaw/workspace/skills/apifox-image-gen/image_gen.py -p "你的图片描述" -m gpt-image-1.5 -s 1024x1024
参数说明
| 参数 | 简写 | 默认值 | 说明 |
|---|---|---|---|
| --prompt | -p | (必填) | 图片描述 |
| --model | -m | gpt-image-1.5 | 模型: gpt-image-1.5, grok-4-1-image |
| --size | -s | 1024x1024 | 尺寸: 1024x1024, 1536x1024, 1024x1536, 1:1, 2:3, 3:2, 9:16, 16:9 |
| --n | -n | 1 | 生成数量 |
| --output | -o | (自动) | 输出文件路径 |
示例
# 生成小蜜蜂图片
python3 /root/.openclaw/workspace/skills/apifox-image-gen/image_gen.py -p "一只可爱的小蜜蜂" -m gpt-image-1.5 -s 1024x1024
# 生成横版图片
python3 /root/.openclaw/workspace/skills/apifox-image-gen/image_gen.py -p "风景画" -m gpt-image-1.5 -s 1536x1024
# 生成竖版图片
python3 /root/.openclaw/workspace/skills/apifox-image-gen/image_gen.py -p "手机壁纸" -m gpt-image-1.5 -s 9:16
# 使用grok模型
python3 /root/.openclaw/workspace/skills/apifox-image-gen/image_gen.py -p "科技感海报" -m grok-4-1-image -s 16:9
使用方式
- 直接用exec运行脚本
- 图片会保存到 /tmp/ 目录
- 可以用message工具发给用户
Usage Guidance
This skill implements image generation as advertised, but it embeds an API key directly in the script and points at an external domain (jyapi.AI-WX.CN). Before installing or running it: (1) don't use it with any sensitive data; run it in a sandbox; (2) assume the embedded API key is someone else's — it may be revoked, abused, or billable; prefer replacing the hard-coded key with your own key provided via an environment variable; (3) verify the API endpoint and the account owner (jyapi.AI-WX.CN) and review terms/billing; (4) if you published this or rely on it, rotate the exposed key immediately and update the code to read credentials from secure config or env vars. If you cannot confirm the key/endpoint, treat this skill as untrusted.
Capability Analysis
Type: OpenClaw Skill
Name: apifox-image-gen
Version: 1.0.0
The skill contains a hardcoded API key in `image_gen.py` and relies on a third-party API proxy (jyapi.AI-WX.CN). It is classified as suspicious due to security vulnerabilities: the hardcoded credential and the use of `urllib.request.urlretrieve` on external API responses, which could potentially be exploited for local file access (SSRF/Local File Read) if the API returns a malicious file URI.
Capability Assessment
Purpose & Capability
The SKILL.md and image_gen.py both implement an image-generation client for the described jyapi.AI-WX.CN service and support the named models; the functionality implemented (POST /v1/images/generations, download image, save to /tmp) is coherent with the description.
Instruction Scope
Instructions only tell the agent to exec the included script and then send images via message. The script performs network calls to the specified API and downloads generated images to /tmp. The instructions do not mention the embedded API key or billing/account implications; they also reference an absolute workspace path (/root/.openclaw/...) which assumes a specific runtime layout.
Install Mechanism
No install spec is present (instruction-only skill with a single Python script). Nothing is automatically downloaded or executed beyond the included file.
Credentials
The code contains a hard-coded API key (API_KEY = "sk-...") and a BASE_URL for jyapi.AI-WX.CN, yet requires.env lists none. Embedding a secret in the code is disproportionate and risky: a legitimate skill would typically accept a user-provided API key via environment variable or config. The hard-coded key may be a leaked/third-party credential and could result in unexpected billing or abuse. The skill requests no other credentials, but the single embedded secret is a major red flag.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and has no install steps that grant persistent elevated privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install apifox-image-gen - After installation, invoke the skill by name or use
/apifox-image-gen - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of apifox-image-gen:
- Provides image generation via the jyapi.AI-WX.CN API.
- Supports gpt-image-1.5 and grok-4-1-image models.
- Allows customization of image description, model, size, quantity, and output path.
- Includes command-line script for easy usage and sample commands.
- Generated images are saved to the /tmp/ directory.
Metadata
Frequently Asked Questions
What is apifox-image-gen?
使用Apifox图像生成API (jyapi.AI-WX.CN) 生成图片。支持gpt-image-1.5和grok-4-1-image模型。 It is an AI Agent Skill for Claude Code / OpenClaw, with 254 downloads so far.
How do I install apifox-image-gen?
Run "/install apifox-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is apifox-image-gen free?
Yes, apifox-image-gen is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does apifox-image-gen support?
apifox-image-gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created apifox-image-gen?
It is built and maintained by balckbeeai (@darker314159); the current version is v1.0.0.
More Skills