/install autoglm-generate-image
AutoGLM Generate Image Skill
根据用户输入的文字描述,调用 AutoGLM 文生图 API 生成图片并返回图片链接。
API
| 项目 | 内容 |
|---|---|
| 地址 | https://autoglm-api.zhipuai.cn/agentdr/v1/assistant/skills/generate-image |
| 方式 | POST |
| 请求体 | {"text": "\x3C图片描述文字>"} |
脚本启动时会先向本地服务发起 HTTP GET 请求获取 token:
| 项目 | 内容 |
|---|---|
| 地址 | http://127.0.0.1:53699/get_token |
| 方式 | GET |
| 返回 | Bearer xxx(直接作为 Authorization 头使用) |
若返回值不含
Bearer前缀,脚本会自动补全。
签名 Headers(每次动态生成):
X-Auth-Appid:100003X-Auth-TimeStamp: 当前秒级 Unix 时间戳X-Auth-Sign: MD5(100003 + "&" + timestamp + "&" + 38d2391985e2369a5fb8227d8e6cd5e5)
执行脚本
使用同目录下的 generate-image.py:
python generate-image.py "澳洲龙虾"
返回结果处理
响应结构
{
"code": 0,
"msg": "SUCCESS",
"data": {
"image_url": "https://..."
}
}
输出要求
- 从响应中提取
data.image_url - 以 Markdown 图片格式展示给用户:

- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install autoglm-generate-image - After installation, invoke the skill by name or use
/autoglm-generate-image - Provide required inputs per the skill's parameter spec and get structured output
What is Autoglm Generate Image?
使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。 It is an AI Agent Skill for Claude Code / OpenClaw, with 30 downloads so far.
How do I install Autoglm Generate Image?
Run "/install autoglm-generate-image" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Autoglm Generate Image free?
Yes, Autoglm Generate Image is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Autoglm Generate Image support?
Autoglm Generate Image is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Autoglm Generate Image?
It is built and maintained by flyfujian (@flyfujian); the current version is v1.0.0.