GLM-5.3 Flash API
glm-5-3-flash
- Input
- $0.165/M
- Cached
- $0.033/M
- Output
- $0.55/M
- Context
- 1M
Price DeepInfra’s price for this open model plus 10%, per call. No fee when you buy credit.
Know first Served by DeepInfra in the US. Always thinks.
API
curl
curl https://api.tokens.pay/v1/chat/completions \
-H "Authorization: Bearer $TOKENS_PAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5-3-flash",
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'
Python
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.tokens.pay/v1", api_key=os.environ["TOKENS_PAY_KEY"])
reply = client.chat.completions.create(
model="glm-5-3-flash",
messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(reply.choices[0].message.content)
Node
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tokens.pay/v1", apiKey: process.env.TOKENS_PAY_KEY });
const reply = await client.chat.completions.create({
model: "glm-5-3-flash",
messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(reply.choices[0].message.content);
Where it runs
| Step | Where | Stores the prompt |
|---|---|---|
| Tokens.Pay | United States | No |
| DeepInfra | United States | Its own terms |