Z.ai (Zhipu)
Z.ai ist Zhipus API, das Labor hinter GLM. Die Flash-Linie ist das dauerhafte Gratis-Tier — glm-4.7-flash und glm-4.5-flash. GLM-5, GLM-5.2 und glm-4.7 werden per Token abgerechnet. OpenAI-kompatibel unter open.bigmodel.cn/api/paas/v4.
Z.ai ist Zhipus API, das Labor hinter GLM. Die Flash-Linie ist das dauerhafte Gratis-Tier — glm-4.7-flash und glm-4.5-flash. GLM-5, GLM-5.2 und glm-4.7 werden per Token abgerechnet. OpenAI-kompatibel unter open.bigmodel.cn/api/paas/v4.
open.bigmodel.cn verlangt eine chinesische Festland-Nummer. Das internationale Portal unter z.ai kommt nur mit E-Mail aus und ist ein anderes Konto. Die Parallelität ist je Konto und Modell in der Konsole sichtbar. Flash-Chat geht bis 200K.
- Kostenlose Modelle
- 4
- Max. Kontext
- 200K
- Gratis-Tarif
- GLM-Flash-Modelle gratis
- Anforderung
- Telefonverifizierung, keine Karte
Endpunkt
Basis-URL
https://open.bigmodel.cn/api/paas/v4Umgebungsvariable
ZHIPU_API_KEYRatengrenze
Concurrency set per account in the console- OpenAI-kompatibel
- Text
- Bild
- Video
- Reasoning
Codebeispiele
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://open.bigmodel.cn/api/paas/v4',
apiKey: process.env.ZHIPU_API_KEY
})
const response = await client.chat.completions.create({
model: 'glm-4.7-flash',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://open.bigmodel.cn/api/paas/v4",
api_key=os.environ["ZHIPU_API_KEY"],
)
response = client.chat.completions.create(
model="glm-4.7-flash",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://open.bigmodel.cn/api/paas/v4/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ZHIPU_API_KEY" \
-d '{
"model": "glm-4.7-flash",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'Wissenswert
- Kostenlos sind die Flash-Modelle (glm-4.7-flash, glm-4.5-flash). glm-4.7, glm-5 und glm-5.2 werden per Token abgerechnet.
- open.bigmodel.cn verlangt eine chinesische Festland-Nummer. Das internationale Portal unter z.ai braucht nur eine E-Mail.
Modelle, die Sie gratis bekommen4
- GLM 4.7 Flash
glm-4.7-flash - GLM 4.5 Flash
glm-4.5-flash - GLM 4.6 Flash
glm-4.6-flash - GLM 4 Flash
glm-4-flash