- AI Gateway
- Text Generation
GLM-4.7-Flash is a fast and efficient multilingual text generation model with a 131,072 token context window. Optimized for dialogue, instruction-following, and multi-turn tool calling across 100+ languages.
Description adapted from Cloudflare Docs, licensed CC BY 4.0.
| Model Info | |
|---|---|
| Model ID | glm-4.7-flash |
| Author | Z.AI |
| Task | Text Generation |
| Endpoint | POST /v1/chat/completions |
Usage
Call the model through the gateway's chat completions endpoint — see Unified API (OpenAI compat) for the full guide, and the API reference for every parameter.
curl -X POST "$TRUEMEMORY_API_URL/v1/chat/completions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"messages": [{ "role": "user", "content": "Hello" }]
}'