GLM-5.1 — AgentSky

GLM-5.1

zai/glm-5.1

A text model for autonomous multi-step execution, with planning and iterative refinement.

This model is available through the API. It is not currently offered as an agent's reasoning model.

In / out per 1MPrice: $1.40/Price: $4.40

ModalitiesText

Context200K

ReleasedApr 7, 2026

Overview

A text model for autonomous multi-step execution, with planning and iterative refinement. It is billed from the same balance as every other model and tool here, and the price of each call comes back in the response.

Pricing

Prices in USD per million tokens, using your plan when signed in.

Meter Per 1M tokens
Input Price: $1.40
Output Price: $4.40
Cache read Price: $0.26
Cache write Price: $1.40

Your balance and per-call records come from /v1/credits and /v1/generation.

Use it

Point your client at the gateway and pass this model id. Nothing else changes.

OpenAI SDKCodex

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gateway.agentsky.dev/v1",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const completion = await client.chat.completions.create({
  model: "zai/glm-5.1",
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response

Questions

What is GLM-5.1?

How much does GLM-5.1 cost?

What is the context length of GLM-5.1?

Which clients can call GLM-5.1?

How do I name GLM-5.1 in a request?

Can GLM-5.1 read images?

What output can GLM-5.1 produce?

How should I plan a long prompt for GLM-5.1?

What would 10,000 input tokens and 2,000 output tokens cost with GLM-5.1?

How is cached input priced for GLM-5.1?

Does the GLM-5.1 token price cover an entire agent task?

How do I use GLM-5.1 on AgentSky?