GLM 4.6

Chat Completions API
glm-4.6
отZ.aiСоздана 30 сент. 2025 г.198K контекст
Chat Completions API

GLM-4.6 is the latest version in the GLM series, featuring a longer 200K token context window (up from 128K in GLM-4.5) for handling more complex tasks. It offers improved coding performance with higher benchmark scores and better real-world results, including visually enhanced front-end code generation. The model also delivers stronger reasoning, more effective tool use during inference, better integration within agent frameworks, and more refined, human-like writing style compared to GLM-4.5.

Пример кода

Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.

Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
curl https://api.makura.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{
  "model": "glm-4.6",
  "messages": [
    {
      "role": "user",
      "content": "Сколько будет 2 + 2?"
    }
  ]
}'