Mid (est.)
Glm 5 2
Glm 5 2. Compare provider offers, token prices, and published task evidence below.
← All models
Choose a provider
1 connected provider
Choose one API ID. Code examples, Playground and Routes use your selection.
Model ID
glm-5.2Live· Last check:
About this model
Glm 5 2. Compare provider offers, token prices, and published task evidence below.
Input price
$1.40/ 1M tokens
NeurometricOutput price
$4.40/ 1M tokens
NeurometricContext window
—tokens
Context unlistedArchitecture
Mid (est.)
Mid (est.) tierQuick Start & OpenAI-compatible SDK usage
Call this model directly with any OpenAI-compatible SDK. Set base_url to the URL below and pass your API key. Sign up for an API key →
# pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.taskrouter.com/v1",
api_key=os.environ["TASKROUTER_API_KEY"],
)
reply = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello! How can you help me today?"}],
)
print(reply.choices[0].message.content)Base URL:
https://api.taskrouter.com/v1Header: Authorization: Bearer $TASKROUTER_API_KEY