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.5in $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-airin $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-flashin $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.5vin $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.6in $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.6vin $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.7in $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-flashin $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-flashxin $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-5in $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.1in $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.2in $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-turboin $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