← All models
Z.ai logo

GLM 5.1

Chat

z-ai:glm-5.1

Added March 27, 2026

Usage

import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://api.tributary.cc/openai/v1",
    apiKey: "<TRIBUTARY_API_KEY>",
});

const completion = await client.chat.completions.create({
    model: "z-ai:glm-5.1",
    messages: [
        { role: "user", content: "Hello!" }
    ],
});

console.log(completion.choices[0].message.content);

Providers

Provider Model Context Output Input $/M Output $/M
DeepInfra zai-org/GLM-5.1 203K 203K $1.40 $4.40
Novita zai-org/glm-5.1 203K 131K $1.40 $4.40
Parasail zai-org/GLM-5.1-FP8 203K 203K $1.40 $4.40
Together zai-org/GLM-5.1 203K 131K $1.40 $4.40
Z.ai glm-5.1 200K 128K $1.40 $4.40
Context/output in tokens. Prices in USD per 1M tokens.