zaiCertifiedReleased 12/22/2025

GLM 4.7

GLM-4.7 is a powerful next-generation coding model that delivers major gains in multilingual agentic coding, terminal-based workflows, and tool use, with strong improvements across benchmarks like SWE-bench, Terminal Bench, and τ²-Bench. It also features enhanced reasoning and math performance, plus significantly upgraded UI generation—producing cleaner, more modern web pages and better-designed slides.

View API reference ↓
Input / output priceFrom$0.40 / $1.75per 1M
24h uptime100.00%
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "zai/glm-4.7",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

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

Providers

Dispatch routes requests across these providers and fails over between them without changing the model. Restrict or order providers with team Directives. Prices are gateway list prices before the platform fee.

ProviderContextMax outputLatencyThroughputInputOutputCacheCapabilitiesZDRNo trainingRegionsStatus
Amazon Bedrock200K120K0.2 s—$0.60$2.20Read —Write —4 featuresYesYesGlobalCertified
DeepInfra203K120K0.4 s55 tps$0.40$1.75Read $0.080Write —5 featuresNoYesGlobalCertified
novita205K131K3.2 s38 tps$0.60$2.20Read $0.11Write —5 featuresNoNoGlobalCertified
zai200K120K3.5 s39 tps$0.60$2.20Read $0.11Write —5 featuresNoNoGlobalCertified

Uptime

24 hours

Request success rate per provider.

Amazon Bedrock100.00%
DeepInfra100.00%
novita100.00%
zai100.00%

Throughput

last hour

P50 output tokens per second.

DeepInfra55 tps
zai39 tps
novita38 tps
Amazon Bedrock—

Latency

last hour

P50 time to first token.

Amazon Bedrock0.2 s
DeepInfra0.4 s
novita3.2 s
zai3.5 s

Getting started

Create a key on the API Keys page and set it as IB_API_KEY. See the quickstart.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "zai/glm-4.7",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

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

Top-level parameters

Standard Chat Completions parameters work as documented. These have model-specific behavior.

ParameterTypeRequiredDescription
modelstringYesModel ID in the form creator/model, e.g. zai/glm-4.7. Must be allowed by your team's Directives.
max_tokensnumberNoHard cap on generated tokens, and the basis for the balance reserved per request. GLM 4.7 supports up to 120,000 output tokens.
reasoning{ effort: 'low' | 'medium' | 'high' }NoReasoning effort, mapped to the provider's native configuration. Reasoning tokens count toward output usage.
toolsTool[]NoFunction definitions the model can call. Tool calls are returned in choices[].message.tool_calls.
Supportedmax_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoningresponse_formatstructured_outputs

Input limits

InputSourcesLimits
Text—Prompt and response share the 200K-token context window

More models by zai

ModelContextInputOutputCacheRelease
zai/glm-5.3-flashx-legal1M$0.37$1.25Read $0.075Write —11/02/2026
zai/glm-5.3-flashx1M$0.37$1.25Read $0.075Write —09/18/2026
zai/glm-5.3-fast1.05M$2.10$6.60Read $0.21Write —09/02/2026
zai/glm-5.3-flash1M$0.15$0.50Read $0.030Write —08/26/2026
zai/glm-5.31M$1.40$4.40Read $0.14Write —08/18/2026
zai/glm-5.2-fast1M$2.80$8.80Read $0.56Write —06/23/2026
zai/glm-5.21M$1.40$4.40Read $0.14Write —06/16/2026
zai/glm-5.1203K$1.40$4.40Read $0.26Write —04/07/2026
zai/glm-5v-turbo200K$1.20$4.00Read $0.24Write —04/01/2026
zai/glm-5-turbo203K$1.20$4.00Read $0.24Write —03/15/2026