Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Image Gen Low Cost

v1.0.5

低成本 AI 图片生成 CLI 工具。支持文生图、图片编辑。触发词:生成图片、画图、AI 作图、文生图、图片编辑、imgen。

0· 158·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for enihsago/image-gen-low-cost.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Image Gen Low Cost" (enihsago/image-gen-low-cost) from ClawHub.
Skill page: https://clawhub.ai/enihsago/image-gen-low-cost
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install image-gen-low-cost

ClawHub CLI

Package manager switcher

npx clawhub@latest install image-gen-low-cost
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Name, README, SKILL.md and scripts/imgen.js all implement a Node.js CLI for text-to-image and image-editing via an OpenAI-compatible API. The models, CLI commands, token storage, and download logic are consistent with the stated purpose.
Instruction Scope
Runtime instructions stay within the image-generation scope (configure token, set IMGEN_API_URL, run imgen commands). The tool saves tokens to ~/.imgen/token and suggests adding a symlink to /usr/local/bin (optional). One mismatch: code will also read process.env.OPENAI_API_KEY as a fallback token, but SKILL.md documents only IMGEN_TOKEN/IMGEN_API_URL (it does warn broadly about tokens and endpoints).
Install Mechanism
No install spec is provided (instruction-only repo plus a CLI script). The README mentions npm install -g, but the package files included are just the script—no network installs or archive downloads by the skill itself. Risk is low from the install mechanism as shipped.
!
Credentials
The code uses IMGEN_TOKEN/IMGEN_API_URL (documented) but also silently accepts OPENAI_API_KEY. The default API URL is a third‑party endpoint (https://api.laozhang.ai). If a user has OPENAI_API_KEY set but does not set IMGEN_API_URL to api.openai.com, their OpenAI key could be sent to the laozhang endpoint. This is a design/usability hazard that could lead to inadvertent credential disclosure.
Persistence & Privilege
Skill is not always-enabled, does not request elevated platform privileges, and does not modify other skills. The only persistent change is saving the token to ~/.imgen/token (file mode 600), which is expected for a CLI but worth reviewing.
What to consider before installing
This skill appears to be what it claims (a Node.js CLI for low-cost image generation), but it has a potentially dangerous usability/credential handling issue: it defaults to a third-party API (laozhang) and will read OPENAI_API_KEY as a fallback token. Before installing or using it: (1) Decide which service you intend to use and explicitly set IMGEN_API_URL to that service (e.g., https://api.openai.com/v1/chat/completions) before providing any token. (2) Prefer creating and using a dedicated token for this tool/service (do not reuse your primary OpenAI key). (3) If you have OPENAI_API_KEY set in your environment and you do not want it used, unset it or use an isolated environment. (4) Inspect the included script (scripts/imgen.js) yourself (it is short and readable) and confirm you are comfortable with the token being saved to ~/.imgen/token; you can instead run with IMGEN_TOKEN in-memory to avoid disk storage. (5) Avoid creating system-wide symlinks (e.g., into /usr/local/bin) unless you trust the package and understand the implications. If you want higher assurance, run the CLI in an isolated environment (container or VM), or use a dedicated, low-privilege API key for this tool.

Like a lobster shell, security has layers — review code before you run it.

latestvk971d90n8xzanqy4ct0hqzn9gh84527g
158downloads
0stars
6versions
Updated 3w ago
v1.0.5
MIT-0

Image Gen Low Cost - AI 图片生成 CLI

统一的命令行图片生成工具,支持任何 OpenAI 兼容的 API 端点。

快速开始

1. 获取 API Token

访问 https://api.laozhang.ai/register/?aff_code=lfa0 注册,在控制台获取 token。新注册自动获得 $0.5 开发测试额度。

2. 配置 Token

# 使用 imgen config 命令(推荐)
imgen config --token YOUR_API_TOKEN

# 或使用环境变量
export IMGEN_TOKEN=YOUR_API_TOKEN

2. 文生图

# 生成图片
imgen "一只可爱的猫咪在花园里玩耍"

# 指定输出路径
imgen "夕阳下的海滩" -o beach.png

# 只显示 URL 不保存
imgen "未来城市" --no-save

# 使用不同模型
imgen "可爱的小狗" -m fast

3. 图片编辑

# 编辑图片
imgen edit "https://example.com/cat.jpg" "把猫咪的毛色改成彩虹色"

# 使用预设风格
imgen edit "https://example.com/photo.jpg" --style cartoon

# 多图融合
imgen edit "https://a.jpg,https://b.jpg" "将两张图片融合"

命令参考

imgen "prompt"                     文生图
imgen edit <url> "prompt"          图片编辑
imgen config --token <token>       配置 API Token
imgen models                       列出可用模型

选项

选项说明
-m, --model <name>模型选择 (cheap/fast/quality)
-o, --output <path>保存到指定路径
--size <size>图片尺寸 (1024x1024 等)
--no-save不保存,只打印 URL
-s, --style <style>预设风格
-v, --verbose详细输出

模型

别名模型 ID价格说明
sorasora_image$0.01/张默认, Sora Image, URL 返回
gpt4ogpt-4o-image$0.01/张GPT-4o Image, URL 返回
cheapgemini-2.5-flash-image$0.025/张Nano Banana, base64, 1K 固定
fastgemini-3.1-flash-image-preview$0.045/张Nano Banana2, base64, 4K 支持
qualitygemini-3-pro-image-preview$0.05/张Nano Banana Pro, base64, 4K + 高级特性

💡 默认使用 sora 模型 ($0.01/张),如 鍗 鍘- 追求极致性价比: 选 sora 或 **- 追求高质量稳定: 选 cheap | **- 追求 4K + 性价比: 选 fast | **- 追求最高质量 + 复杂指令: 选 quality |

预设风格

  • cartoon - 迪士尼卡通风格
  • oil - 古典油画风格
  • ink - 中国水墨画风格
  • cyberpunk - 赛博朋克霓虹风格
  • sketch - 铅笔素描风格
  • watercolor - 水彩画风格

API 端点

默认使用老张 API (https://api.laozhang.ai/v1/chat/completions)。

# 切换到其他 OpenAI 兼容端点
export IMGEN_API_URL=https://api.openai.com/v1/chat/completions

# 使用其他兼容服务
export IMGEN_API_URL=https://your-api-endpoint.com/v1/chat/completions

⚠️ 重要:如果你使用非老张 API 的 token,请确保设置对应的 IMGEN_API_URL,否则 token 会发送到错误的端点。

安装

# 克隆或下载 skill 后
chmod +x scripts/imgen.js

# 添加到 PATH(可选)
ln -s $(pwd)/scripts/imgen.js /usr/local/bin/imgen

环境变量

变量说明
IMGEN_TOKENAPI Token
IMGEN_API_URL自定义 API 端点

注意事项

  1. 返回的图片 URL 通常是临时的,建议及时保存
  2. 默认保存到当前目录的 generated-images/ 文件夹
  3. Token 存储在 ~/.imgen/token,权限为 600

与 image-gen-cheap 的区别

特性image-gen-cheapimage-gen-low-cost
实现Python 脚本Node.js CLI
依赖requests无外部依赖
API固定老张 API任意 OpenAI 兼容
配置独立 token 文件统一 imgen config

Comments

Loading comments...