Z.ai — Coding Model
GLM 5.3 API — 1M tokens context.
GLM 5.3 is Z.ai's frontier tier, available through IN2PETA with a 1M-token context window. It is strongest on long-form structured writing, and it is the model the smart router selects for code generation on the Pro plan.
Model ID
glm-5.3
GLM 5.3 specifications
| Model ID | glm-5.3 |
|---|---|
| Vendor | Z.ai |
| Usage tier | Tier 3 |
| Context window | 1M tokens |
| Quantization | FP8 |
| Input | $1.40 per 1M tokens |
| Output | $4.40 per 1M tokens |
| Cache read | $0.26 per 1M tokens |
| Approx. output speed | ~90 tokens/sec |
Legacy model IDs that resolve to GLM 5.3: glm-5.2. Aliases only resolve when your plan includes the model.
Why run GLM 5.3 on IN2PETA
- 1M-token context window
- Strong long-form structured writing
- Default code-generation route on Pro
- OpenAI-compatible endpoint — switch providers by changing one base URL, not by rewriting your client.
Calling the GLM 5.3 API
GLM 5.3 is served from an OpenAI-compatible gateway. Change your base URL and API key, and existing OpenAI clients work unchanged.
curl https://code.in2peta.com/v1/coding/chat/completions \
-H "Authorization: Bearer $IN2PETA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [{"role": "user", "content": "Explain this function"}]
}'Set ANTHROPIC_BASE_URL to the same host to point Claude Code at the same gateway. See Getting Started for key setup, and Coding Endpoints for the full API reference.
Plans that include GLM 5.3
Not included
Not included
Not included
Includes this model
Frequently asked questions
How do I access the GLM 5.3 API?
Point any OpenAI-compatible client at https://code.in2peta.com and send requests to /v1/coding/chat/completions with "model": "glm-5.3". The gateway is OpenAI-compatible, so existing SDKs work by changing the base URL and API key.
How much does the GLM 5.3 API cost?
GLM 5.3 is $1.4 per million input tokens and $4.4 per million output tokens, with cache reads at $0.26 per million. There is no per-request fee on top of token usage.
Which IN2PETA plans include GLM 5.3?
GLM 5.3 is available on Pro ($15/mo). Requests for a model outside your plan return HTTP 403 with the allowed model list in the error body.
What is the context window of GLM 5.3?
GLM 5.3 serves a 1M tokens context window and runs FP8 quantised on IN2PETA.