Issue
Embeddings are not available on Z.Ai global endpoint (api.z.ai).
What we tried
Tested embeddings with model names from SDK docs on multiple endpoints:
Endpoints tested:
https://api.z.ai/api/paas/v4/embeddings
https://api.z.ai/api/coding/paas/v4/embeddings
https://api.z.ai/embeddings
https://api.z.ai/api/embeddings
Models attempted: embedding-2, embedding-3, glm-embedding, text-embedding-3
Outcome: All return "Unknown Model" (code 1211) or 404.
Working
Chat API ✅ on /coding/paas/v4 endpoint:
glm-5 ✅
glm-4.5 ✅
glm-4.6 ✅
GET /models on coding endpoint returns only chat models (no embeddings listed).
Questions
- Are embeddings planned for the global Z.Ai endpoint?
- If available, what are the correct model names and endpoint path?
@wellenzheng