

GLM 5.1 and GLM 4.7 FlashX side by side: specs, capabilities, parameters, and live pricing from the EmpirioLabs catalog.
GLM 5.1 and GLM 4.7 FlashX are both Z.ai models in the Text Generation category, available through the EmpirioLabs API.
| Spec | GLM 5.1 | GLM 4.7 FlashX |
|---|---|---|
| Model ID | glm-5-1 | glm-4-7-flashx |
| Author | Z.ai | Z.ai |
| Released | Apr 7, 2026 | Jan 19, 2026 |
| Context window | 202.7K tokens | 202.8K tokens |
| Max output | 128,000 tokens | 131,072 tokens |
| Input | Text | Text |
| Output | Text | Text |
| Structured output | JSON Mode | JSON Mode |
| Region | China | Singapore |
| Endpoints | POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/glm-5-1:generateContent | POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/glm-4-7-flashx:generateContent |
| Capabilities |
Live rates from the EmpirioLabs catalog for both models. Each rate card always matches what the API charges.
Request parameters each model lists on EmpirioLabs, with the allowed values or range where one applies. A dash marks a parameter the model does not list.
| Parameter | GLM 5.1 | GLM 4.7 FlashX |
|---|---|---|
| max_tokens | 1 to 128000 | 1 to 131072 Default: 4096 |
| temperature | 0 to 1.99 Default: 1 | 0 to 1 Default: 1 |
| top_p | 0 to 1 Default: 0.95 | 0.01 to 1 Default: 0.95 |
| top_k | 1 to 100 Default: 20 | - |
| repetition_penalty | min 0.1 Default: 1 | - |
| reasoning_effort | none, low, medium, high, max Default: medium | - |
| enable_thinking | boolean Default: true | boolean Default: true |
| thinking_budget | 1 to 38912 Default: 32768 | - |
| tool_stream | boolean Default: false | boolean Default: false |
| tools | array Default: [] | array |
| tool_choice | object | auto Default: auto |
| parallel_tool_calls | boolean | - |
| stop | array | array |
| response_format | enum | enum |
| web_search_linkup | boolean Default: false | - |
| disable_formatting | boolean Default: false | - |
Built-in web search is optional through tool_web_search and adds $0.033 per request when enabled.
GLM 5.1 serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id glm-5-1. Both models are called through the same endpoint. Set model to glm-5-1 or glm-4-7-flashx. Get an API key from the EmpirioLabs dashboard.
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5-1",
"messages": [
{"role": "user", "content": "Write a haiku about the ocean."}
]
}'GLM 5.1 is the newer release (Apr 7, 2026); GLM 4.7 FlashX was released on Jan 19, 2026. GLM 4.7 FlashX has the larger context window: 202.8K tokens, against 202.7K for GLM 5.1. GLM 4.7 FlashX returns up to 131,072 output tokens per response, GLM 5.1 up to 128,000. The specs, rate cards, and parameters on this page come from the live EmpirioLabs catalog.
GLM 5.1 is the newer release (Apr 7, 2026); GLM 4.7 FlashX was released on Jan 19, 2026.
The two models are priced on different units or tiers, so compare the live rate cards on this page. They always match what the API charges.
Yes. Both models use POST /v1/chat/completions with the same EmpirioLabs API key, so most integrations switch by changing the model value. Check the parameters table on this page first if you rely on a model-specific parameter.
Yes. Open each model in the EmpirioLabs playground and run the same prompt on both, with the parameters the API exposes.
Check out our pricing or reach out if you want your own model deployed on our stack.