GLM-Image is Here
Industrial-grade AI image generation with 16 billion parameters. Best-in-class text rendering, exceptional semantic alignment. 2 images FREE, then just $0.015/image.
Try GLM-Image
Generate stunning images with state-of-the-art text rendering
Try an example:
Selected: 1024x1024 • Custom sizes: 512-2048px, multiples of 32
API Key
FREE (2 left)
0 of 2 free generations used
About GLM-Image
GLM-Image is a state-of-the-art 16 billion parameter image generation model developed by Zhipu AI. It represents a significant advancement in AI-powered visual content creation, combining unprecedented text rendering capabilities with exceptional semantic understanding.
Built on cutting-edge transformer architecture, GLM-Image excels at generating images with accurate text, complex compositions, and diverse artistic styles. Whether you need marketing materials, creative artwork, or technical illustrations, GLM-Image delivers professional-quality results.
With competitive pricing at just $0.015 per image after your 2 free generations, GLM-Image makes industrial-grade AI image generation accessible to developers, designers, and businesses of all sizes.
Powerful Capabilities
GLM-Image brings industrial-grade AI image generation with cutting-edge features
Best-in-Class Text Rendering
Industry-leading text generation in images with precise font rendering, multi-language support, and accurate character placement.
Exceptional Semantic Alignment
Advanced understanding of complex prompts with accurate interpretation of spatial relationships, attributes, and scene composition.
High Resolution Output
Generate stunning images up to 1536x1536 pixels with exceptional detail and clarity for professional-grade results.
Fast Generation Speed
Optimized inference pipeline delivers high-quality images in seconds, enabling rapid iteration and production workflows.
Versatile Style Control
Create images across diverse artistic styles from photorealistic to illustrated, with fine-grained control over aesthetics.
Easy API Integration
Simple REST API with comprehensive documentation, SDKs for popular languages, and seamless integration into existing workflows.
API Reference
Integrate GLM-Image into your applications with our simple REST API
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Must be "glm-image" |
| prompt | string | Yes | Text description of the image |
| size | string | No | "1024×1024", "1280×1280", etc. (512-2048, multiples of 32) |
| image_url | string | No | Reference image URL for image-to-image |
curl -X POST https://api.z.ai/api/paas/v4/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-image",
"prompt": "A majestic dragon with glowing text 龍",
"size": "1024x1024"
}'
# Response:
{
"data": [{
"url": "https://cdn.z.ai/generated/xxx.png"
}]
}Supported Sizes
Custom sizes: width and height must be 512-2048px and multiples of 32.
Resources
Everything you need to get started with GLM-Image
API Documentation
Full API reference and guides
https://docs.z.ai/guides/image/glm-image
Get API Key
Sign up for Z.ai API access
https://z.ai/manage-apikey/apikey-list
GitHub Repository
Open source model and code
https://github.com/THUDM/GLM-Image
HuggingFace Model
Download model weights
https://huggingface.co/zai-org/GLM-Image
Python SDK
Official Python client library
https://github.com/zai-org/z-ai-sdk-python
Release Blog
Technical details and benchmarks
https://z.ai/blog/glm-image
Z.ai Platform
Full AI platform overview
https://z.ai
THUDM GitHub
More models from Tsinghua
https://github.com/THUDM
SGLang Serving
Self-host with SGLang
https://github.com/sgl-project/sglang
Connect with developers and creators using GLM-Image
Join Our Community
Introducing GLM-Image: A new milestone in open-source image generation. GLM-Image uses a hybrid auto-regressive plus diffusion architecture, combining strong global semantic understanding with high fidelity visual detail.
GLM-image model spotted on the Transformers Github repository 🔥
Open Source AI is at its peak right now... just look at the current Hugging Face trending list: Qwen, Gemma, Hunyuan, GLM, DeepSeek... incredible times! 🔥
Benchmark Results
See how GLM-Image compares to leading image generation models