Playground
⌘↵ to run
Enter a valid API key (starts with sk-)
Output
Response will appear here
Integration
POST https://glm.ionrouter.io/v1/chat/completions
curl https://glm.ionrouter.io/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "glm-5", "messages": [ { "role": "user", "content": "Hello" } ], "temperature": 0.7, "top_p": 0.9, "max_tokens": 2048, "stream": true }'