Zhipu AI (GLM)
communityChinese AI company with GLM large language models for text, code, and multimodal tasks.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://open.bigmodel.cn/api/paas/v4/chat/completionsChat completion
Parameters
modelglm-4|glm-4-flash|glm-4v (stringrequiredmessagesconversation array (arrayrequiredmax_tokensmax tokens (integeroptionaltemperature0-1 (numberoptionalReturns
choices[] with message.content, usage with prompt_tokens, completion_tokensPOST
https://open.bigmodel.cn/api/paas/v4/embeddingsText embedding
Parameters
inputtext (stringrequiredmodelembedding-3 (stringrequiredReturns
data[] with embedding, index; usage with prompt_tokens, total_tokensPOST
https://open.bigmodel.cn/api/paas/v4/images/generationsGenerate image
Parameters
size1024x1024 (stringoptionalmodelcogview-3-plus (stringrequiredpromptimage description (stringrequiredReturns
data[] with url