GLM 4.7

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

GLM-4.7 is Z.AI’s newest flagship model, offering advancements in two main aspects: improved programming abilities and greater stability in multi-step reasoning and execution. It shows notable progress in handling complex agent tasks, while also providing more natural conversational experiences and enhanced front-end design.

Пример кода

Пример использования модели через 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.7",
  "messages": [
    {
      "role": "user",
      "content": "Сколько будет 2 + 2?"
    }
  ]
}'