glm-image

Generate and edit images with the GLM Image API via the Pixazo gateway.

Updated May 2, 2026
One-click install
npx skills add https://github.com/Pixazo-AI/skills --skill glm-image-pixazo-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: glm-image
Source: https://github.com/Pixazo-AI/skills/tree/main/skills/glm-image
Command: npx skills add https://github.com/Pixazo-AI/skills --skill glm-image-pixazo-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets an AI coding agent call Zhipu AI's GLM Image model through the Pixazo API to generate images from text prompts or edit existing reference images, without the user writing API integration code themselves. ## Core Features & Use Cases - Text-to-Image Generation: Send a prompt with size, steps, guidance scale, and output format parameters to produce images synchronously. - Image-to-Image Editing: Pass a reference image as a URL or base64 data URL to restyle or edit it. - Built-in Key Management & Error Handling: Guides the agent through storing the Pixazo API key once and maps 401/402/429/5xx responses to clear user messages. - Use Case: Ask your agent to create a watercolor-style menu card in square format, and it builds the request, calls the endpoint, and shows you the resulting image URL. ## Quick Start Ask your agent to generate an image with GLM Image, for example: create a square watercolor menu card with golden accents using GLM Image.

Frequently Asked Questions about glm-image

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

FAQPage Schema
How do I generate an image with the GLM Image API?▼

Send a POST request to https://gateway.pixazo.ai/glm-image/v1/glm-image-request with your Pixazo API key in the Ocp-Apim-Subscription-Key header and a JSON body containing prompt, image_size, num_inference_steps, guidance_scale, and output_format. The response returns image URLs synchronously.

How do I edit an existing image with GLM Image?▼

Use the image-to-image endpoint at https://gateway.pixazo.ai/glm-image-image-to-image/v1/glm-image-image-to-image-request and pass your reference image as a URL or base64 data URL along with the editing prompt.

Where do I get a Pixazo API key for GLM Image?▼

Sign in at https://api-console.pixazo.ai/api_keys, click Create new key, and copy it. The skill saves it to ~/.pixazo/api-key so you only provide it once.

What image sizes does GLM Image support?▼

The image_size parameter accepts square_hd for square formats, portrait_16_9 for vertical output, and landscape_16_9 for horizontal output. Map user phrases like Instagram or 16:9 to these enum values.

Why am I getting a 401 or 402 error from the Pixazo API?▼

A 401 means the API key is missing or invalid, so generate a fresh key at the API console. A 402 means the account is out of credits and needs a top-up at the Pixazo dashboard.

Does GLM Image support video or audio generation?▼

No, GLM Image only handles text-to-image and image-to-image tasks. Video, music, voice, 3D, and try-on requests are handled by separate dedicated Pixazo skills.