← 返回 Skills 市场
237
总下载
1
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install cs-free-image-generator-nv
功能描述
使用 NVIDIA MoCL 模型(via NVIDIA API Playground)进行免费文图生成(Text-to-Image)。当用户要求"生成图片"、"画一张图"、"text to image"、"文生图"时触发。
使用说明 (SKILL.md)
NVIDIA MoCL 文图生成
基于 NVIDIA API Playground 的 MoCL 模型,将自然语言描述转化为图像。
使用方式
python3 scripts/cs-free-image-generator-nv.py \
--prompt "描述文字" \
--width 1024 \
--height 1024
参数说明
| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
--prompt |
✅ | — | 图像描述文本(英文效果更佳) |
--width |
✅ | — | 图像宽度(1-4096) |
--height |
✅ | — | 图像高度(1-4096) |
输出
- 响应 JSON 保存至:
/tmp/cs-free-image-generator/nv/\x3CUnix时间戳>.json - 包含 base64 编码的图像数据,可解码保存为 PNG/JPEG 文件
示例
# 生成一只可爱的柯基犬 (1024×1024)
python3 scripts/cs-free-image-generator-nv.py \
--prompt "一只可爱的柯基犬" \
--width 1024 \
--height 1024
注意事项
- 环境变量:使用
dotenv自动从~/.openclaw/.env加载NVIDIA_API_KEY(override=True),强制从.env读取最新值,避免旧进程缓存干扰。 - 宽高限制:1-4096,超出范围会报错
- 响应体自动保存,方便追溯调用结果
安全使用建议
This skill appears to do what it says (POST your prompt to an NVIDIA image-generation endpoint and save the JSON), but it has two practical red flags you should address before use:
- NVIDIA_API_KEY is required at runtime but is not declared in the skill metadata. Confirm where you will supply this key (agent secret storage is preferable) and don't rely on undocumented behavior.
- The script force-loads ~/.openclaw/.env with override=True. That will read and overwrite environment variables from that file — review its contents for any sensitive keys before allowing the skill to run.
Recommendations:
- If you trust the source, set NVIDIA_API_KEY explicitly in a controlled secret store (do not leave it in an accessible .env file) and verify the endpoint matches NVIDIA's official API.
- Ask the skill author to update metadata to declare NVIDIA_API_KEY as a required primary credential and to avoid override=True or at least document it clearly.
- Inspect or sandbox runs initially; check the /tmp/cs-free-image-generator/nv/ files to confirm only expected data is saved. If you do not trust the author or cannot confirm the .env contents, avoid installing.
功能分析
Type: OpenClaw Skill
Name: cs-free-image-generator-nv
Version: 1.3.0
The skill bundle provides a legitimate implementation for image generation using the NVIDIA API. The Python script (cs-free-image-generator-nv.py) correctly validates input parameters, uses standard environment variable loading for the API key from the expected path (~/.openclaw/.env), and communicates exclusively with the official NVIDIA API endpoint (ai.api.nvidia.com). No evidence of data exfiltration, obfuscation, or malicious intent was found.
能力评估
Purpose & Capability
The name/description (NVIDIA MoCL text-to-image) matches the script behavior: it POSTS prompts to an NVIDIA GenAI endpoint and returns/saves image JSON. However, the registry metadata declares no required environment variables while both SKILL.md and the script rely on NVIDIA_API_KEY — a clear mismatch.
Instruction Scope
Runtime instructions and script are narrowly scoped to: load environment, call the NVIDIA API, print the JSON response, and save it under /tmp/cs-free-image-generator/nv/<timestamp>.json. That scope aligns with the stated purpose. The instructions explicitly tell the agent to force-load ~/.openclaw/.env (override=True), which can alter environment values and should be treated as potentially surprising behavior.
Install Mechanism
No install spec; this is effectively an instruction + small script that uses standard Python libraries and requests. Nothing is downloaded from untrusted URLs or installed automatically; risk from install mechanism is low.
Credentials
The skill requires NVIDIA_API_KEY at runtime but the package metadata lists no required env vars or primary credential. The script uses dotenv.load_dotenv with override=True against ~/.openclaw/.env, which will forcibly replace existing environment values in-process — this can unexpectedly expose or overwrite secrets. Requesting a single provider API key would be proportionate, but failing to declare it and forcing a local .env read is concerning.
Persistence & Privilege
The skill is not always-enabled, does not modify other skills or global settings, and does not request persistent elevated privileges. Autonomous invocation is allowed by default (normal for skills) and not by itself a reason to flag.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cs-free-image-generator-nv - 安装完成后,直接呼叫该 Skill 的名称或使用
/cs-free-image-generator-nv触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
- 强制使用 `dotenv` 从 `~/.openclaw/.env` 加载 `NVIDIA_API_KEY`(`override=True`),确保始终读取最新的环境变量,避免缓存问题
- 其余功能和参数说明保持不变
v1.2.0
- Now automatically loads `NVIDIA_API_KEY` from `~/.openclaw/.env` using `dotenv` (`override=False`), so manual configuration is no longer needed when running in the OpenClaw environment.
- Documentation updated to reflect automatic environment variable loading.
- No functional changes to command usage or output.
v1.0.1
更新 ownerId
v1.0.0
初始版本
元数据
常见问题
Cs Free Image Generator Nv 是什么?
使用 NVIDIA MoCL 模型(via NVIDIA API Playground)进行免费文图生成(Text-to-Image)。当用户要求"生成图片"、"画一张图"、"text to image"、"文生图"时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 237 次。
如何安装 Cs Free Image Generator Nv?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cs-free-image-generator-nv」即可一键安装,无需额外配置。
Cs Free Image Generator Nv 是免费的吗?
是的,Cs Free Image Generator Nv 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cs Free Image Generator Nv 支持哪些平台?
Cs Free Image Generator Nv 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cs Free Image Generator Nv?
由 Chenfeng(@savior1987)开发并维护,当前版本 v1.3.0。
推荐 Skills