# GLM 5.3

- Model ID for the API: `z-ai/glm-5.3`
- Privacy tier: Private 3P TEE. Runs privately in a third-party provider's attested secure enclave. Verification tools differ by provider.
- Input price: $1.8 per 1M tokens
- Output price: $5.75 per 1M tokens
- Cache read price: $0.45 per 1M tokens
- Context window: 1.05M tokens
- Input modalities: Text
- Output modalities: Text
- API base URL: https://cloud-api.near.ai/v1

Canonical page: https://near.ai/models/z-ai/glm-5.3
Generated: 2026-11-24T14:01:54.208Z

## About this model

GLM-5.3 is a large-scale reasoning model from Z.ai, built for complex software engineering and long-horizon agent tasks, with a 1M-token context window.

## Make your first request

Send `POST https://cloud-api.near.ai/v1/chat/completions` over HTTPS. Get an API key at https://cloud.near.ai/signin, then set it as the `NEARAI_API_KEY` environment variable.

```bash
curl --fail-with-body "https://cloud-api.near.ai/v1/chat/completions" \
  -H "Authorization: Bearer $NEARAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
```

## Verify

- How verification works: https://docs.near.ai/cloud/verification
- Inference SDK, which checks attestations and signatures for you: https://docs.near.ai/cloud/inference-sdk

## More

- Try it in the Playground: https://cloud.near.ai/playground?model=z-ai%2Fglm-5.3
- All models: https://near.ai/models.md
- Pricing: https://near.ai/pricing.md
- Documentation: https://docs.near.ai/cloud/introduction
