it's free*.ai

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-URLhttps://open.bigmodel.cn/api/paas/v4
UmgebungsvariableZHIPU_API_KEY
RatengrenzeConcurrency set per account in the console

Codebeispiele

npm install openai
import 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)

Wissenswert

Modelle, die Sie gratis bekommen4