autoglm-generate-image

Generate images from text prompts via the AutoGLM endpoint.

Updated May 4, 2026
One-click install
npx skills add https://github.com/234194027-cpu/xianclaw --skill autoglm-generate-image-234194027-cpu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: autoglm-generate-image
Source: https://github.com/234194027-cpu/xianclaw/tree/main/resources/skills/autoglm-generate-image
Command: npx skills add https://github.com/234194027-cpu/xianclaw --skill autoglm-generate-image-234194027-cpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

使用文本描述直接生成图片,省去在复杂图形工具中反复操作与排版的时间成本,同时让用户在需要 AI 绘图与“文字转图片”场景下更高效产出结果。

Core Features & Use Cases

  • 文本到图片生成:将用户的文字描述作为输入,通过 AutoGLM 的文生图接口生成对应图片链接。
  • 本地 Token 自动获取:通过本地服务 http://127.0.0.1:18432/get_token 自动获取并拼接 Authorization,无需手动配置环境变量。
  • 加签鉴权请求:按要求动态生成 X-Auth-* 请求头并完成签名,确保请求可用。
  • Use case:当你需要为社交媒体、演示或产品概念制作插画时,只要输入“某种风格的主题描述”,即可快速获得可展示的图片链接。

Quick Start

使用该 skill 输入你想生成的图片文字描述,例如让它根据“澳洲龙虾”生成一张图片。

Frequently Asked Questions about autoglm-generate-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images from text prompts using AutoGLM?▼

You can generate images from text prompts by providing a text description to the skill, which calls the AutoGLM generate-image endpoint via HTTP POST and returns a usable image URL for your creative illustrations.

Do I need to manually configure an authorization token for text to image generation?▼

No manual authorization token configuration is needed for text to image generation because the skill automatically retrieves the local token from http://127.0.0.1:18432/get_token to handle request signing dynamically.

What is the process for AutoGLM API request signing?▼

AutoGLM API request signing applies MD5 signatures over the app id, timestamp, and app key to dynamically generate X-Auth-* headers, ensuring your HTTP POST request to the generate-image endpoint is authenticated and usable.

Can I use this text to image skill for social media creative illustrations?▼

Yes, you can use this text to image skill for social media creative illustrations by inputting your style and theme descriptions, allowing you to quickly obtain a displayable image URL without operating complex graphic design tools.

Why does my local token retrieval fail when calling the text to image API?▼

Local token retrieval for the text to image API fails when the local service at http://127.0.0.1:18432/get_token is not running, which prevents the skill from fetching the required authorization token to sign the HTTP POST request.