Back to models
GLM-4
Flagship modelRecommended
Powerful general-purpose intelligence with balanced speed and accuracy.
| Context window | 128,000 tokens |
| Max output tokens | 4,096 tokens |
Pricing
| Type | Input | Output |
|---|---|---|
| Standard | $14.00 / 1M tokens | $14.00 / 1M tokens |
Parameters
| Parameter | Default | Range |
|---|---|---|
| Temperature | 1 | 0 to 2 |
| Top P | 1 | 0 to 1 |
| Frequency penalty | 0 | -2 to 2 |
| Presence penalty | 0 | -2 to 2 |
| Max stop sequences | 4 | — |
Supported features
Capabilities
- Streaming
- Function Calling
- System Prompt
Endpoints
- Chat Completions
- Vision
Tools
- Web Search
- Code Interpreter
Use cases
- vision
- text-chat
- function-calling
Model specifications
| Model ID | glm-4 |
| Family | glm |
| Access type | Closed |
| Input modalities | text, image |
| Output modalities | text |