M
ModelMeta
</> API
657 Models·21 Providers·Updated 2h ago
All systems operational
Back to models

GLM-4

Flagship modelRecommended

Powerful general-purpose intelligence with balanced speed and accuracy.

Context window128,000 tokens
Max output tokens4,096 tokens

Pricing

TypeInputOutput
Standard$14.00 / 1M tokens$14.00 / 1M tokens

Parameters

ParameterDefaultRange
Temperature10 to 2
Top P10 to 1
Frequency penalty0-2 to 2
Presence penalty0-2 to 2
Max stop sequences4

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 IDglm-4
Familyglm
Access typeClosed
Input modalitiestext, image
Output modalitiestext