GLM 4.5
Z.ai · Text · Context 128K · max output 96K tokens
glm-4.5
Try
Pricing
| MarkasAI | Vendor list price | |
|---|---|---|
| Input | Rp 7.761 | Rp 10.734 |
| Output | Rp 28.456 | Rp 39.358 |
| Cache | Rp 1.424 | |
| Cache write | Rp 7.761 |
MarkasAI sale prices in Rupiah, read from the same catalog as GET /v1/models. Prices can change and apply to later requests.
Specifications
- Model ID
glm-4.5- Provider
- Z.ai
- Type
- Text
- Endpoint
POST /v1/chat/completions- Context window
- 128,000 tokens
- Output limit per request
- 96,000 tokens
About this model
GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...
Quoted from the provider's public catalog, in English.
Call example
curl https://api.markas.ai.id/v1/chat/completions \
-H "Authorization: Bearer $MARKASAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.5",
"messages": [{"role": "user", "content": "What is an API?"}],
"max_tokens": 300
}'
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.markas.ai.id/v1", api_key=os.environ["MARKASAI_API_KEY"])
resp = client.chat.completions.create(
model="glm-4.5",
messages=[{"role": "user", "content": "What is an API?"}],
max_tokens=300,
)
print(resp.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.markas.ai.id/v1", apiKey: process.env.MARKASAI_API_KEY });
const resp = await client.chat.completions.create({
model: "glm-4.5",
messages: [{ role: "user", content: "What is an API?" }],
max_tokens: 300,
});
console.log(resp.choices[0].message.content);
Keep your API key in the MARKASAI_API_KEY environment variable. Read the endpoint docs