Model API guides / Zhipu GLM
Zhipu GLM API integration
Zhipu AI / Z.ai model family
Use a GLM model for text or coding requests through a compatible channel. A model label seen in a provider console can differ from the ID returned by the gateway.
Check model access
Model availability depends on the channels enabled for your account and the scope of your TokenPilot key. Request the model list and copy an exact ID before calling the model.
curl "https://api.tokentpilot.com/v1/models" \
-H "Authorization: Bearer $TOKENPILOT_API_KEY"
Choose a compatible endpoint
/v1/chat/completions
For function calling, confirm both the model and channel accept the tool schema and tool-result messages used by your agent.