# GLM 5.4

> GLM-5.4是Z.ai首款具有原生视觉功能的旗舰模型，采用 Z.ai 首个具有增强推理和通用编码能力的 Loop Transformer 架构。

- Model ID: `z-ai/glm-5.4`
- Manufacturer: Z.ai
- Context length: 1M tokens
- Max output: 128K tokens
- Input: text, image, video, file
- Output: text
- Capabilities: tools, reasoning, structuredOutput, streaming, vision, caching
- Released: 2026-12-02
- Page: https://amux.ai/zh/models/z-ai/glm-5.4

## Providers and prices

Prices in USD, base tier. Route to a specific provider with `model: "<model id>:<provider slug>"`; without a suffix Amux AI picks among healthy providers (weighted random by default; a price-first strategy can be set per API key) and fails over to the next one on errors. Long-context and time-of-day tiers, where they apply, are listed on the page.

- **BigModel** (`bigmodel`) (promotion): cache_read $0.182/1M tokens · input_text $0.98/1M tokens · output_text $3.08/1M tokens

## Example request

`POST https://gateway.amux.ai/v1/responses`

```bash
curl https://gateway.amux.ai/v1/responses \
  -H "Authorization: Bearer $AMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.4",
    "input": "Hello!"
  }'
```
