← 返回 Skills 市场
yzh-q

智谱CogView模型图片生成

作者 代码工坊实验室 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
101
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cogview-image-gen
功能描述
使用智谱AI的CogView模型生成图片。当用户想要AI生成图片时使用此技能,支持中文提示词自动翻译为英文,支持自定义图片尺寸。在首次使用时需要用户配置智谱API密钥。
使用说明 (SKILL.md)

智谱AI图片生成

首次使用配置

首次使用时会检查是否存在API密钥配置。如果不存在,会提示用户输入智谱API密钥。

API密钥获取方式:

  1. 访问 https://open.bigmodel.cn/
  2. 注册/登录账号
  3. 在控制台获取API密钥

图片生成

基本用法

直接告诉AI你想生成什么样的图片,AI会自动:

  1. 将中文提示词翻译成英文
  2. 调用智谱CogView-3-Flash模型生成图片
  3. 返回生成的图片给你

支持的尺寸

  • 1024x1024(默认)
  • 768x768
  • 512x512
  • 1024x768(横版)
  • 768x1024(竖版)

调用方式

使用 scripts/generate_image.ps1 脚本:

# 基本调用
& "scripts/generate_image.ps1" -Prompt "a cute cat"

# 指定尺寸
& "scripts/generate_image.ps1" -Prompt "a cute cat" -Size "1024x768"

注意事项

  • 使用免费的CogView-3-Flash模型
  • 生成的图片URL有效期约24小时
  • 如遇401错误,请检查API密钥是否有效
安全使用建议
This skill's purpose (generate images via Zhipu/CogView) is plausible, but the package is incomplete and inconsistent. Before installing or using it, ask the author to: (1) include the referenced scripts (scripts/generate_image.ps1) or provide exact API call examples; (2) explicitly declare the required credential (e.g., ZHIPU_API_KEY) in the metadata and explain how/where the key will be stored and protected; (3) show the code or request a code review so you can verify it only calls open.bigmodel.cn and does not exfiltrate your key elsewhere. Do not paste your API key into untrusted chat windows; if you must enter it, prefer entering it into a secure agent credential store rather than into the skill's free-form prompt. If the author cannot provide the missing script or clear credential handling, treat this skill as incomplete and avoid using it.
功能分析
Type: OpenClaw Skill Name: cogview-image-gen Version: 1.0.1 The skill bundle documentation (SKILL.md) and metadata (_meta.json) describe a legitimate integration with Zhipu AI's CogView model for image generation. The instructions are transparent, align with the stated purpose, and contain no evidence of prompt injection, data exfiltration, or malicious intent. The referenced URL (open.bigmodel.cn) is the official Zhipu AI platform.
能力评估
Purpose & Capability
The SKILL.md describes using the Zhipu (open.bigmodel.cn) CogView model and asks the user to provide an API key, which is coherent with the stated purpose. However, the skill metadata lists no required env vars or primary credential even though the instructions explicitly require configuring an API key. Additionally, the doc instructs running 'scripts/generate_image.ps1' yet the package contains no code files or script — a direct mismatch between claimed capabilities and provided artifacts.
Instruction Scope
The instructions say the agent will translate prompts and call the CogView model, but they do not include the HTTP/API call details; instead they point to a local PowerShell script ('scripts/generate_image.ps1') that is not present. That makes the runtime behavior vague and grants the agent broad discretion to implement network calls or run arbitrary commands to satisfy the instructions. The SKILL.md also describes checking/storing an API key on first use but gives no specifics about where/how the key is stored or protected.
Install Mechanism
This is an instruction-only skill with no install spec and no code to write to disk. That is the lowest-risk install model — there is nothing in the manifest that automatically downloads or executes external code.
Credentials
The skill logically requires a Zhipu API key to call open.bigmodel.cn, but the registry metadata declares no required env vars or primary credential. The SKILL.md says it will prompt the user for an API key on first use but does not justify why the key isn't declared in requires.env nor explain where the key is stored. This mismatch makes it unclear how credentials are handled and whether they might be exposed or mishandled.
Persistence & Privilege
The skill does not request always:true or other elevated persistence. It is user-invocable and allowed to be invoked autonomously (default), which is normal. There is no evidence it modifies other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cogview-image-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cogview-image-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
更新技能名称
v1.0.0
首次发布:支持智谱AI CogView图片生成,首次使用需配置API密钥
元数据
Slug cogview-image-gen
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

智谱CogView模型图片生成 是什么?

使用智谱AI的CogView模型生成图片。当用户想要AI生成图片时使用此技能,支持中文提示词自动翻译为英文,支持自定义图片尺寸。在首次使用时需要用户配置智谱API密钥。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。

如何安装 智谱CogView模型图片生成?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cogview-image-gen」即可一键安装,无需额外配置。

智谱CogView模型图片生成 是免费的吗?

是的,智谱CogView模型图片生成 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

智谱CogView模型图片生成 支持哪些平台?

智谱CogView模型图片生成 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 智谱CogView模型图片生成?

由 代码工坊实验室(@yzh-q)开发并维护,当前版本 v1.0.1。

💬 留言讨论