GLM-Image API
- Per image
- $0.015
- Context
- 2K
GLM-Image for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Explore GLM-Image for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses through the unified API. Supported interfaces and current availability are shown below.
- OpenAI-style Image Generation
- Image editing
- OpenAI-style Chat Completions
- Anthropic-style Messages
- OpenAI-style Responses
Model details
- Context window
- 2K tokens
- Max output
- 4K tokens
- Input
- Text
- Output
- Text, images
- Capabilities
- —
- Interfaces
- OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
GLM-Image API pricing
What each generation costs. The Inferray price is what you are charged — no gateway fee is added on top of it.
| Metric | Price |
|---|---|
| / request | $0.015 |
GLM-Image is pay-as-you-go only
GLM-Image is not included in Token Plans. Call it from a pay-as-you-go balance at the list price above, with no gateway fee.
Why teams pick it
- GLM-Image for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Call GLM-Image
GLM-Image answers on any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.
curl https://api.inferray.com/v1/images/generations \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-image",
"prompt": "A quartz crystal on a workbench"
}'curl https://api.inferray.com/v1/images/edits \ -H "Authorization: Bearer inferray_..." \ -F 'model=glm-image' \ -F 'prompt=Make the background blue' \ -F 'image=@input.png'
curl https://api.inferray.com/v1/chat/completions \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-image",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'curl https://api.inferray.com/v1/messages \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-image",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'curl https://api.inferray.com/v1/responses \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-image",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.
More from Z.ai
Alternatives to GLM-Image
- Seedream 5.0 FlashSeedream 5.0 Flash for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.ByteDance
- Grok Imagine ImageGrok Imagine Image for OpenAI-style Image Generation, Image editing.xAI
- Hy Image 3.5 PreviewHy Image 3.5 Preview for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.Tencent Cloud
Questions about this model
- How much does the GLM-Image API cost?
- GLM-Image costs from $0.015 per image on Inferray, the list price with no gateway fee on top.
- Is there a free tier for GLM-Image?
- No. You add credit and pay GLM-Image's list rate for each request — seats, projects, and API keys are free, and pay-as-you-go credit never expires.
- Am I charged for failed requests?
- No. A request that fails without returning a result is not billed. If a response fails part-way, the tokens already processed before the failure are charged.
- Is GLM-Image included in Token Plans?
- No. GLM-Image is pay-as-you-go only; Token Plans cover the other models in the catalog.
- Is it the real GLM-Image?
- Yes. A request for glm-image is answered by GLM-Image from Z.ai, billed at its published list price. Inferray never substitutes a different or smaller model.
Prices from the catalog as of November 12, 2026.