GLM 4.7 Flash
Chat Completions API
glm-4.7-flash
Chat Completions API
As a SOTA 30B-class model, GLM-4.7-Flash provides a new option that balances efficiency and performance. It has been further optimized for agentic coding scenarios, enhancing coding abilities, long-term task planning, and tool integration, and has demonstrated leading results among open-source models of its size on multiple current public benchmark leaderboards.
Пример кода
Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.
Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
Базовый пример запроса. Проверьте разрешения 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-flash",
"messages": [
{
"role": "user",
"content": "Сколько будет 2 + 2?"
}
]
}'