glm-image-gen

Generate images from text prompts via the GLM-Image API.

458|40|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/zai-org/GLM-skills --skill glm-image-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glm-image-gen
Source: https://github.com/zai-org/GLM-skills/tree/main/skills/glm-image-gen
Command: npx skills add https://github.com/zai-org/GLM-skills --skill glm-image-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Converts natural-language descriptions into high-quality visual assets so users don't need manual image editing or specialist design skills to produce illustrations, portraits, social graphics, or posters.

Core Features & Use Cases

  • Text-to-image generation: Produce HD or standard quality images from detailed prompts with options for model selection and watermark control.
  • Size and aspect ratio validation: Enforces dimension rules for glm-image and other supported models to avoid invalid requests.
  • CLI workflow and safe output: Returns temporary image URLs, content filtering results, and optional local file saving for downstream use.
  • Use Case: Create a scientific illustration or a social media poster from a product brief without hiring a designer, specifying size, quality, and user-id for moderation.

Quick Start

Generate an HD 1280x1280 image of "a smiling elderly scientist holding a vintage microscope, watercolor style, soft natural lighting" using the glm-image model.

Frequently Asked Questions about glm-image-gen

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

FAQPage Schema
How do I generate high-quality images from text prompts via CLI?

To generate images from text prompts via CLI, provide prompt, model, size, and quality parameters to the GLM-Image API. The process requires a ZHIPU_API_KEY for authentication and returns temporary image URLs with content filtering metadata.

Can I control watermarks and aspect ratios when generating AI art?

Yes, you can control watermarks and aspect ratios during AI art generation. The system enforces dimension rules for supported models and includes watermark control parameters to ensure your output meets specific visual requirements.

Do I need a ZHIPU_API_KEY to use text-to-image generation?

Yes, a ZHIPU_API_KEY is required for authentication to use text-to-image generation. Without this key, the CLI cannot validate your requests or return generated images from the GLM-Image API.

What size and quality options are supported for social media graphics and posters?

For social media graphics and posters, the system supports HD and standard quality options with multiple aspect ratios. It validates dimension rules specific to the glm-image model to prevent invalid requests before processing your prompt.

Why does my text-to-image request return content filtering metadata?

Text-to-image requests return content filtering metadata because the API performs safety checks during generation. This metadata accompanies your temporary image URLs to indicate if the prompt or output triggered any moderation filters.

Can I save generated images locally instead of using temporary URLs?

Yes, you can save generated images locally. The CLI workflow supports optional local file saving for downstream use, alongside returning temporary image URLs and content filtering results from the API response.