Operational
Zhipu AI / GLM
GLM models via Zhipu AI API.
Pricing
glm-4-flash is free tier. glm-4-plus is pay-as-you-go.
Models
glm-4-flash (free)
glm-4-plus
Capabilities
✓ Text✓ Tools✓ Streaming
Base URL
https://open.bigmodel.cn/api/paas/v4
Configuration
Environment variable: ZHIPU_API_KEY=... Or configure via dashboard: Dashboard → Provider Keys → Add Key → zhipu
Example
curl https://api.bifrost.dev/v1/chat/completions \
-H "Authorization: Bearer $BIFROST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4-flash",
"messages": [{"role": "user", "content": "Hello"}]
}'Setup
- Create an account at open.bigmodel.cn
- Navigate to API Keys in your console
- Generate a new API key
- Set the
ZHIPU_API_KEYenvironment variable - Configure the provider in the Bifröst dashboard