GLM 5.4
Z.ai
Modell-ID
GLM-5.4 Text and up to 10 images per request.
- Kontextfenster
- 1M Token
- Max. Ausgabe
- 125K Token
- Eingabepreis
- 1,40 € pro 1 Mio. Token
- Ausgabepreis
- 4,40 € pro 1 Mio. Token
- Preis für gecachte Eingabe
- 0,21 € pro 1 Mio. Token
- Typ
- LLMCoding
- Eingabe
- TextBild
- Ausgabe
- Text
- Endpunkte
/v1/chat/completions- Reasoning
minimallowmediumhighxhighmax- Tarife
- EssentialProfessionalAgentic
- Cloud
- T Cloud T Cloud Public
- Standort
Deutschland (EU)
- Datenverarbeitung
- Deutschland (EU)
Parameter
Was das Gateway für dieses Modell annimmt. Andere Werte lehnt es ab.
| Parameter | Erlaubte Werte | Standard | Beschreibung |
|---|---|---|---|
reasoning_effort | minimal, low, medium, high, xhigh, max | max | How long the model thinks before answering. |
temperature | 0 bis 2 (Schritt 0,01) | 1 | What to sample at. Higher values make the output more random, lower ones more deterministic. Change this or top_p, not both. |
top_p | 0 bis 1 (Schritt 0,01) | 0.95 | Nucleus sampling: only the tokens making up the top top_p of probability mass are considered. 0.1 means the top 10%. Change this or temperature, not both. |
max_completion_tokens | 1 bis 128.000 | 32768 | The most tokens the answer may use. |
Tarife und Limits
TPM zählt Eingabe- und Ausgabe-Token zusammen. Die Preise oben gelten in jedem Tarif. Rate Limits
| Tarif | TPM | RPM |
|---|---|---|
| Essential | 1.620.000 | 180 |
| Professional | 3.240.000 | 360 |
| Agentic | 5.400.000 | 600 |
Beispiel
Mit OPENAI_BASE_URL und OPENAI_API_KEY, gesetzt wie im Quickstart.
curl "$OPENAI_BASE_URL /chat/completions" \ -H "Authorization: Bearer $OPENAI_API_KEY " \ -H "Content-Type: application/json" \ -d '{ "model": "GLM-5.4", "messages": [{"role": "user", "content": "What is T Cloud?"}] }' from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create( model="GLM-5.4" , messages=[{ "role": "user", "content": "What is T Cloud?"}],)print(response.choices[ 0].message.content)