zhipu-image-gen
AI text-to-image generation using Zhipu AI's GLM-Image model. Use when the user requests image generation, creating images from text descriptions, or mentions "文生图", "生成图片", "画图". Supports various image sizes and Chinese/English prompts.
Why use this skill?
Integrate Zhipu AI's GLM-Image model into OpenClaw. Generate professional images from text prompts with this simple, command-line enabled AI skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/codeteenager/zhipu-image-genWhat This Skill Does
The zhipu-image-gen skill is a powerful extension for the OpenClaw agent, providing seamless integration with Zhipu AI's advanced GLM-Image model. This skill allows users to generate high-quality, professional-grade images directly from their terminal or within the OpenClaw environment using natural language descriptions. Whether you need photorealistic imagery, artistic illustrations, or conceptual designs, this tool leverages state-of-the-art generative AI to interpret Chinese and English prompts with high precision. By automating the interaction with the GLM-Image API, this skill streamlines the creative process, allowing users to move from abstract ideas to tangible visual assets in seconds.
Installation
To begin using this skill, ensure you have the OpenClaw CLI configured on your workstation. Run the following command in your terminal to install the skill:
clawhub install openclaw/skills/skills/codeteenager/zhipu-image-gen
Once installed, navigate to the skill directory at ~/.openclaw/workspace/skills/zhipu-image-gen/. You must configure your API credentials by either setting a system environment variable ZHIPU_API_KEY or by creating a .env file using the provided .env.example template. Obtaining an API key is simple: register for an account at the Zhipu AI Open Platform, navigate to your console, and generate a new key under the API Management section.
Use Cases
- Rapid Prototyping: Designers can generate quick visual concepts for UI/UX elements, website banners, or product mockups using text descriptions.
- Content Creation: Social media managers can generate unique, copyright-free images for blog posts, tweets, or professional presentations.
- Creative Brainstorming: Writers and artists can use the tool to visualize scenes or characters, providing immediate inspiration based on detailed textual prompts.
- Automation Workflows: Integrate image generation into larger automated pipelines, such as automatically generating documentation diagrams or customized image reports.
Example Prompts
- "生成一张未来城市风格的桌面背景,包含霓虹灯和飞行汽车,尺寸设为1280x1280。"
- "Please create an image of a serene mountain lake at sunrise with reflections, high detail."
- "画一张极简主义风格的咖啡杯图标,放在桌面上。"
Tips & Limitations
- Prompt Engineering: The quality of your image is directly proportional to the detail provided in your prompt. Include lighting, artistic style, and composition details to get the best results.
- Cost Awareness: Be mindful that this skill calls an external API, which operates on a pay-per-use model. Monitor your usage in the Zhipu AI developer console.
- File Management: All generated images are saved in PNG format with a timestamped filename for easy sorting. You can use the
-oparameter to direct output to specific directories, keeping your workspace organized. - Performance: Ensure you have a stable internet connection, as the image generation depends on real-time communication with Zhipu's cloud servers.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-codeteenager-zhipu-image-gen": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, file-write
Related Skills
zsxq-helper
知识星球助手 - 登录、发帖、管理知识星球。当用户需要操作知识星球(登录、发帖、查看内容)时使用此技能。触发词:知识星球、zsxq、发帖、星球登录。
tencent-cloud-article-extractor
提取腾讯云开发者社区文章内容并转换为 Markdown 格式。当用户需要抓取、解析或保存腾讯云文章时使用此技能。支持自动提取标题、作者、发布时间、正文内容,并生成格式规范的 Markdown 文档。触发词:腾讯云文章、抓取文章、解析文章、cloud.tencent.com/developer/article