z-ai/glm-5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and co...
Input⌘ / Ctrl + Enter
Try a prompt
OutputReady
Your response will appear here
Choose an example or write a prompt, then click Run.
API details and access
Model Details
ProviderZ-Ai
TypeLlm
Model IDz-ai/glm-5.1
Capabilities
InputText
OutputText
Context-
Max Output65,535
VisionNot supported
Function CallingSupported
Access details
Chat CompletionsBase URLhttps://api.sandbase.ai
API Endpoint/v1/chat/completions
{
"model": "z-ai/glm-5.1",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 512
}Pricing
Input$1.05 / 1M tokens
Output$3.50 / 1M tokens
Cache read$0.53 / 1M tokens

