GLM 4.5 Air
z-ai/glm-4.5-airGLM-4.5-Air is the lightweight member of Z.ai's GLM-4.5 family, a mixture-of-experts model with 106B total and 12B active parameters built as a foundation model for agent-oriented applications. It offers hybrid reasoning, with a thinking mode for complex reasoning and tool use and a non-thinking mode for instant replies, and is tuned for tool calling, web browsing, software engineering and front-end development. Choose GLM-4.5 for more capacity.
Читать далее- Цена входа
- $0.20USD / 1 млн токенов
- Цена выхода
- $1.10USD / 1 млн токенов
- Чтение из кэша
- $0.03USD / 1 млн токенов
- Окно контекста
- 131.1K
- Макс. выход
- 98.3K
Характеристики
- Вход
- Текст
- Выход
- Текст
Об этой модели
GLM-4.5-Air is the lightweight member of Z.ai's GLM-4.5 family, a mixture-of-experts model with 106B total and 12B active parameters built as a foundation model for agent-oriented applications. It offers hybrid reasoning, with a thinking mode for complex reasoning and tool use and a non-thinking mode for instant replies, and is tuned for tool calling, web browsing, software engineering and front-end development. Choose GLM-4.5 for more capacity.
Попробовать модель
Песочница
Введите prompt, чтобы попробовать эту модель. Использование тарифицируется по указанным ценам.
Попробуйте запрос
Ваш ответ появится здесь
Выберите пример или напишите запрос, затем нажмите «Запустить».
Начните разработку
Отправьте свой первый запрос
Совместимая с OpenAI конечная точка с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-4.5-air",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Схема ввода
12 параметров · 1 обязательных · 11 необязательных
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
messages | object[] | Обязательный | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Необязательный | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Необязательный | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Необязательный | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | Необязательный | Only sample from the k most likely next tokens. · Мин.: 0 |
top_p | number | Необязательный | Nucleus sampling: only tokens within this cumulative probability are considered. · Мин.: 0 · Макс.: 1 |
stream | boolean | Необязательный | Stream the response as server-sent events instead of returning it in one piece. · По умолчанию: false |
max_tokens | integer | Необязательный | Maximum number of tokens to generate in the response. · Макс.: 98304 |
temperature | number | Необязательный | Sampling temperature. Higher values make output more random; lower values make it more focused. · Мин.: 0 · Макс.: 2 · По умолчанию: 1 |
tool_choice | string | Необязательный | Controls tool use: "auto", "none", "required", or a specific function. |
presence_penalty | number | Необязательный | Penalizes tokens that already appear at all, encouraging new topics. · Мин.: -2 · Макс.: 2 |
frequency_penalty | number | Необязательный | Penalizes tokens by how often they already appear, reducing repetition. · Мин.: -2 · Макс.: 2 |
Схема вывода
| Поле | Тип | Описание |
|---|---|---|
id | string | Уникальный идентификатор завершения |
object | string | Тип объекта, например "chat.completion" |
model | string | Модель, использованная для завершения |
choices | array | Список вариантов завершения |
choices[].message.content | string | Сгенерированный текст |
choices[].finish_reason | string | Причина остановки генерации |
usage.prompt_tokens | integer | Количество токенов в запросе |
usage.completion_tokens | integer | Количество токенов в завершении |
usage.total_tokens | integer | Общее количество использованных токенов |
Вопросы
FAQ
Как вызвать Z.ai GLM 4.5 Air через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "z-ai/glm-4.5-air" на Chat Completions API (/v1/chat/completions) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит Z.ai GLM 4.5 Air?
$0.20 за 1 млн входных токенов и $1.10 за 1 млн выходных токенов, списывается за каждый запрос с баланса SandBase. Скидки, если доступны, указаны в ценах на этой странице.
Каково контекстное окно Z.ai GLM 4.5 Air?
131.1K токенов контекста и до 98.3K выходных токенов на ответ.
Какие возможности поддерживает Z.ai GLM 4.5 Air?
Z.ai GLM 4.5 Air поддерживает рассуждение, вызов функций. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт Z.ai?
Нет. Один API key SandBase и один баланс дают вам доступ к Z.ai GLM 4.5 Air и другим моделям в каталоге; отдельно регистрироваться в Z.ai не нужно.
