API Examples
Basic Chat Completion
curl https://api.tensorx.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "z-ai/glm-5.1",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
]
}'Multi-turn Conversation
Streaming Response
Code Generation
With Temperature Control
Using MiniMax Models
List Available Models
Python Example
JavaScript/Node.js Example
Available Models
Model
ID
Best For
Last updated
Was this helpful?

