z-ai logo
z-ai

Z.ai: GLM 5.2 (batch)

Descrizione della fonte (inglese)

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Panoramica

Specifiche del modello

Contesto
1.048.576 tokens
Output massimo
943.718 tokens
Architettura
text->text
Tokenizer
Other
Limite di conoscenza
Non indicato
Moderato
No
OPENROUTER

Prezzi completi

Tariffe sincronizzate da OpenRouter, per milione di token.

Input
$0.7
per milione di token
Output
$2.2
per milione di token
Lettura cache
$0.07
per milione di token
API

Configurazione del modello

Parametri predefiniti

temperature
1
top_p
0.95

Ragionamento

Ragionamento obbligatorio
No
Parametri predefiniti
high
Capacità e modalità
xhigh, high
API

Avvio rapido

Imposta OPENROUTER_API_KEY localmente. Python richiede requests; JavaScript viene eseguito in Node.js. Conserva la chiave sul server.

Questa richiesta invia un batch asincrono con l’ID del modello base. L’ID dell’attività conferma l’invio, non il completamento.

Documentazione API

curl --fail-with-body https://openrouter.ai/api/beta/batches \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/v1/chat/completions","model":"z-ai/glm-5.2","requests":[{"custom_id":"request-1","body":{"messages":[{"role":"user","content":"Hello!"}]}}]}'

# Replace JOB_ID with the returned id to check progress.
curl --fail-with-body "https://openrouter.ai/api/beta/batches/JOB_ID" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY"
Capacità e modalità

InputOutput

Input
text
Output
text
Ragionamento

· xhigh · high

API

Parametri API supportati

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokenspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Provider disponibili

1 Provider

Verificato: 9 settembre 2026

Provider live su OpenRouter

Disponibilità, latenza, throughput e routing cambiano continuamente. Consulta la fonte per i dati correnti.

OpenRouter

Fireworks

Non indicato
Contesto
1.0M
Output massimo
944K
Input
$0.7
Output
$2.2
Lettura cache
$0.07
Scrittura cache
Non indicato
z-ai

4 modelli

Tutti i modelli