GLM Image creates images from text and edits reference images with written instructions, including changes to lighting, artistic style and scene content.

GLM Image Edit API example
curl -X POST https://api.protoface.com/v1/run/z-ai/glm-image \
-H "Authorization: Bearer $PROTOFACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operation": "image.edit",
"images": "https://example.com/your-image.png",
"prompt": "A red fox resting beside a woodland stream, soft morning light.",
"output_format": "jpeg"
}'Replace example input URLs with your own public URLs or uploaded asset IDs. This request uses the selected mode and settings.
GLM Image Text to Image API example
curl -X POST https://api.protoface.com/v1/run/z-ai/glm-image \
-H "Authorization: Bearer $PROTOFACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operation": "image.generate",
"prompt": "A red fox resting beside a woodland stream, soft morning light.",
"output_format": "jpeg",
"size": "1024*1024"
}'Replace example input URLs with your own public URLs or uploaded asset IDs. This request uses the selected mode and settings.
Supported modes
Edit
Edit uses images and prompt. Adjust the model options to prepare a request for this mode.
image.editText to Image
Text to Image uses prompt. Adjust the model options to prepare a request for this mode.
image.generatePricing
Image editing
Price per run for each listed option.
| Offering | Price (USD) |
|---|---|
| All listed options | $0.12 / run |
- Images count: 1, 2, 3 (same price).
Image generation
Price per run for each listed option.
| Offering | Price (USD) |
|---|---|
| Per run | $0.12 / run |
Edit options
Text to Image options
GLM Image
GLM Image is Z.ai's model for text-to-image generation and reference-guided image editing. A written description can define an original image, while supplied images provide the visual starting point for revisions. These operations support creating a concept and then developing its appearance through directed changes.
Editing instructions can change the lighting, time of day or setting, apply an artistic style, and add or remove scene elements. References guide the transformation, helping retain key visual elements as the requested changes are applied.
What it's good for
For concept art and campaign development, GLM Image can turn an idea into an initial visual, then explore variations around that composition. This is useful when assessing how a scene reads with a different mood or environment.
Existing artwork can become a starting point for seasonal imagery, alternate settings or style studies. A daylight scene can be reworked as a night scene, while a landscape can be adapted to another season.
Run GLM Image on Protoface
Use GLM Image in Protoface Studio without writing code. Choose your inputs and generation settings, then generate with affordable, usage-based pricing. For your own AI app or workflow, use the Protoface API to submit generations and retrieve their outputs.

About Z.ai
Z.ai develops generative AI models including GLM-Image, combining autoregressive methods with diffusion decoding in its image research. That work emphasizes rendering text within images and composing information-rich visuals, while also supporting image edits, style changes and generation that preserves the identity of people and objects.
- Image generation
- Text rendering
- Image editing










