Skip to content
Agentmart
Submit a tool

autoglm-generate-image

使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。

Skill by mugpeng

IndexedMPL-2.0★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mugpeng-autoglm-generate-image

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/autoglm-generate-image

What's inside

Skill name
autoglm-generate-image
Description
使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
License
MPL-2.0
Instructions
63 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • compatibility: must be text of at most 500 characters

Files (2)

  • SKILL.md
  • generate-image.py

SKILL.md (first lines)

# AutoGLM Generate Image Skill

根据用户输入的文字描述,调用 AutoGLM 文生图 API 生成图片并返回图片链接。

---

## API

| 项目 | 内容 |
|------|------|
| 地址 | `https://autoglm-api.zhipuai.cn/agentdr/v1/assistant/skills/generate-image` |
| 方式 | POST |
| 请求体 | `{"text": "<图片描述文字>"}` |

脚本启动时会先向本地服务发起 HTTP GET 请求获取 token:

| 项目 | 内容 |
|------|------|
| 地址 | `http://127.0.0.1:53699/get_token` |
| 方式 | GET |
| 返回 | `Bearer xxx`(直接作为 Authorization 头使用) |

> 若返回值不含 `Bearer` 前缀,脚本会自动补全。

**签名 Headers(每次动态生成):**

- `X-Auth-Appid`: `100003`
- `X-Auth-TimeStamp`: 当前秒级 Unix 时间戳
- `X-Auth-Sign`: MD5(`100003 + "&" + timestamp + "&" + 38d2391985e2369a5fb8227d8e6cd5e5`)

---

## 执行脚本

使用同目录下的 `generate-image.py`:
```bash
python generate-image.py "澳洲龙虾"
```

---

## 返回结果处理

### 响应结构
```json
{
  "code": 0,
  "msg": "SUCCESS",
  "data": {
    "image_url": "https://..."
  }
}
```

### 输出要求

1. 从响应中提取 `data.image_url`
2. 以 Markdown 图片格式展示给用户:
```markdown
![生成图片](image_url)
```

From mugpeng/oh-my-skills, MPL-2.0.

More from mugpeng/oh-my-skills

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 13, 2026 (6 months ago)
Last release
Apr 13, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MPL-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mugpeng

Cite this page

autoglm-generate-image skill. Agent Mart. https://agentmart.dev/skills/mugpeng-autoglm-generate-image (last updated 2026-10-24)