Call GLM-5.3 Lessstrict from code
Use the model slug glm-5-3-lessstrict with any OpenAI-compatible client.
curl
bash
curl https://lessstrict.com/v1/chat/completions \
-H "Authorization: Bearer $LESSSTRICT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5-3-lessstrict",
"messages": [{"role": "user", "content": "Explain what a mutex is in two sentences."}],
"stream": true
}'
Python
python
from openai import OpenAI
client = OpenAI(base_url="https://lessstrict.com/v1", api_key="lsk_...")
stream = client.chat.completions.create(
model="glm-5-3-lessstrict",
messages=[{"role": "user", "content": "Explain what a mutex is in two sentences."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Node.js
ts
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://lessstrict.com/v1", apiKey: process.env.LESSSTRICT_API_KEY });
const stream = await client.chat.completions.create({
model: "glm-5-3-lessstrict",
messages: [{ role: "user", content: "Explain what a mutex is in two sentences." }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
Full reference in the API docs.
Other models
Deepseek v4.1 Lessstrict
LessStrict deepseek v4.1 1017
- Context
- 1M tokens
- Speed
- Balanced
- Pay as you go
- $0.40 in / $1.70 out per 1M tokens
Vision Tools
GLM 5.3 Flash Lessstrict
GLM 5.3 Flash by zai and lessstrict
- Context
- 1M tokens
- Speed
- Balanced
- Pay as you go
- $0.20 in / $0.60 out per 1M tokens
Vision Tools
Kimi K3.1 Pro Lessstrict
Kimi K3.1 Pro Lessstrict
- Context
- 1M tokens
- Speed
- Balanced
- Pay as you go
- $4.00 in / $8.00 out per 1M tokens
Vision Tools