Back to Models
GLM Image
Available
Description
GLM Image is a text-to-image model with flexible sizing, prompt expansion, and JPEG/PNG/WebP output formats.
At a Glance
Key pricing and model details available for this model.
Starting price
$0.03
per image
Hallucination rate
0%
Supported sizes
1024x1024, 1024x1536, 1536x1024, 768x1024, 1024x768, 512x512, 256x256
Image Pricing
Image generation pricing currently exposed by the models API.
Starting price
$0.03
per image
Resolution Pricing
Resolution-specific prices returned for this image model.
| 1024x1024 | $0.03 |
| 1024x1536 | $0.03 |
| 1024x768 | $0.03 |
| 1536x1024 | $0.03 |
| 256x256 | $0.03 |
| 512x512 | $0.03 |
| 768x1024 | $0.03 |
| auto | $0.03 |
Image Details
Additional image-related pricing and format support.
| Pricing unit | per image |
| Supported sizes | 1024x1024 1024x1536 1536x1024 768x1024 1024x768 512x512 256x256 |
Feature Availability
Capabilities explicitly listed in the current payload.
Image
Available
Yes
Vision
Not listed
No
Function calling
Not listed
No
Reasoning
Not listed
No
Code Samples
Quick start with the Routeway API
const response = await fetch('https://api.routeway.ai/v1/images/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer <YOUR_API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'glm-image',
prompt: 'A futuristic city skyline at sunset',
size: '1024x1024',
})
});
const imageData = await response.json();
console.log(imageData);