Zhipu AI

[PROVIDER]
id: zhipuai
npm: @ai-sdk/openai-compatible
env: ZHIPU_API_KEY
api: https://open.bigmodel.cn/api/paas/v4

Models

GLM-4.5

glm-4.5
in $0.60/M
out $2.20/M
cache read $0.11/M
cache write $0.00/M
ctx: 131,072 max out: 98,304 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.5-Air

glm-4.5-air
in $0.20/M
out $1.10/M
cache read $0.03/M
cache write $0.00/M
ctx: 131,072 max out: 98,304 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.5-Flash

glm-4.5-flash
in $0.00/M
out $0.00/M
cache read $0.00/M
cache write $0.00/M
ctx: 131,072 max out: 98,304 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.5V

glm-4.5v
in $0.60/M
out $1.80/M
ctx: 64,000 max out: 16,384 in: text, image, video out: text
reasoning tools vision structured temp open weights

GLM-4.6

glm-4.6
in $0.60/M
out $2.20/M
cache read $0.11/M
cache write $0.00/M
ctx: 204,800 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.6V

glm-4.6v
in $0.30/M
out $0.90/M
ctx: 128,000 max out: 32,768 in: text, image, video out: text
reasoning tools vision structured temp open weights

GLM-4.7

glm-4.7
in $0.60/M
out $2.20/M
cache read $0.11/M
cache write $0.00/M
ctx: 204,800 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.7-Flash

glm-4.7-flash
in $0.00/M
out $0.00/M
cache read $0.00/M
cache write $0.00/M
ctx: 200,000 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.7-FlashX

glm-4.7-flashx
in $0.07/M
out $0.40/M
cache read $0.01/M
cache write $0.00/M
ctx: 200,000 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-5

glm-5
in $1.00/M
out $3.20/M
cache read $0.20/M
cache write $0.00/M
ctx: 204,800 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-5.1

glm-5.1
in $6.00/M
out $24.00/M
cache read $1.30/M
cache write $0.00/M
ctx: 200,000 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-5.2

glm-5.2
in $1.40/M
out $4.40/M
cache read $0.26/M
cache write $0.00/M
ctx: 1,000,000 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GLM-5V-Turbo

glm-5v-turbo
in $5.00/M
out $22.00/M
cache read $1.20/M
cache write $0.00/M
ctx: 200,000 max out: 131,072 in: text, image, video, pdf out: text
reasoning tools vision structured temp open weights