GLM 5 Turbo
API identifier: glm-5-turbo
Prices per 1M tokens
- Input tokens
- ₽11.42
- Output tokens
- ₽11.42
Limits
- Context
- 203K tokens
- Max response
- 131K tokens
Capabilities
- Tool calling
- Yes
- Reasoning level
- No
Supported parameters
max_tokensmax_completion_tokenstemperaturetop_ppresence_penaltyfrequency_penaltyseedusertoolstool_choiceparallel_tool_calls
Example request
Example calculation
A request with 2,000 input and 500 output tokens costs ₽0.0285.
Caching not included. The actual cost comes back in the API response in the usage.cost field.
shell
curl https://llm.liho.dev/v1/chat/completions \
-H "Authorization: Bearer $LIHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5-turbo",
"max_tokens": 512,
"messages": [
{"role": "user", "content": "Explain what an API gateway is in two sentences."}
]
}'python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llm.liho.dev/v1",
api_key=os.environ["LIHO_API_KEY"],
timeout=900,
)
response = client.chat.completions.create(
model="glm-5-turbo",
max_tokens=512,
messages=[{"role": "user", "content": "Explain what an API gateway is in two sentences."}],
)
print(response.choices[0].message.content)