image-generation

Generate images from text prompts via Z.ai's glm-image endpoint.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill image-generation-archibate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/minor-skills/image-generation
Command: npx skills add https://github.com/archibate/archibate-skills --skill image-generation-archibate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert text prompts into usable image assets without manual image editing by calling a remote image generation API, enabling rapid prototyping and automated content creation.

Core Features & Use Cases

  • Generate images via Z.ai's glm-image model using simple prompt and size parameters.
  • Support programmatic workflows for UI mockups, illustrations, and content assets with an OpenAI-compatible endpoint.
  • Handle post-generation steps including downloading temporary image URLs and basic error checks for authorization and parameter validation.
  • Cost and usage guidance to avoid repeated expensive invocations and conserve budget.

Quick Start

Use the image-generation skill to create a 1280x1280 image of a cute kitten on a sunny windowsill using the glm-image model and save the resulting file locally.

Frequently Asked Questions about image-generation

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

FAQPage Schema
How do I generate images from text prompts via the Z.ai API?

To generate images from text prompts using the glm-image endpoint, you provide model, prompt, and size parameters in your API call. The endpoint processes the request and returns a temporary image URL containing your visual asset.

What do I need to set up to use the glm-image endpoint for programmatic image creation?

To use the glm-image endpoint for programmatic image creation, you must configure the Z_AI_API_KEY environment variable. This authorizes your requests to the remote image generation API for producing visual assets.

Does the glm-image API return permanent image files directly?

No, the glm-image API does not return permanent image files directly. It returns temporary image URLs that you must download immediately to save the generated visual assets locally before the links expire.

What is the best way to automate UI mockup generation using a text prompt API?

The best way to automate UI mockup generation using a text prompt API is integrating the glm-image endpoint into your workflow. Pass descriptive prompts and size parameters to programmatically produce on-demand visual assets.

Why does my image generation API call fail with an authorization error?

Your image generation API call fails with an authorization error when the Z_AI_API_KEY environment variable is missing or invalid. Ensure you configure this prerequisite key properly to authenticate requests to the glm-image endpoint.