Z.ai · Checked October 13, 2026

How do I run GLM 5.3 in OpenCode or Claude Code?

GLM 5.3 is on every Standard Compute plan from $19 a month as z-ai/glm-5.3: OpenCode, Claude Code and Kilo Code reach it with one key and no Z.ai account, and new requests get HTTP 402 when the plan's compute budget reaches 100%.

ModelZ.ai's late-August 2026 model for complex software engineering and long-horizon agent tasks.
Model IDz-ai/glm-5.3Short form glm-5.3 also works
Model ID, US pinz-ai/glm-5.3:usServed from the US
Base URLhttps://api.stdcmpt.com/v1Claude Code uses https://api.stdcmpt.com
Context1,048,576 tokensA request here takes up to about 850K input and 50K output tokens
InputText only
Reasoningminimal, low, medium or high

Copy a working config

OpenCode, Claude Code and Kilo Code take the same ID. Kilo Code also needs the context size so it knows when to compact.

~/.config/opencode/opencode.json/v1/chat/completions
{
  "$schema": "https://opencode.ai/config.json",
  "model": "standardcompute/z-ai/glm-5.3",
  "provider": {
    "standardcompute": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Standard Compute",
      "options": {
        "baseURL": "https://api.stdcmpt.com/v1",
        "apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
      },
      "models": {
        "z-ai/glm-5.3": { "name": "GLM 5.3" },
        "standardcompute": { "name": "Smart routing" }
      }
    }
  }
}

Replace YOUR_API_KEY with a key from the dashboard. This config reads your key from STANDARDCOMPUTE_API_KEY; export it with a key from the dashboard. Full setup: OpenCode, Claude Code, Kilo Code.

What it costs

Per 1M tokensGLM 5.3
Input$1.40
Cached input$0.26
Output$4.40

Z.ai API rates. Cache storage is listed as free for a limited time. Source: Z.ai API pricing, checked October 13, 2026.

GLM 5.3 Flash lists at about a ninth of this input price and reads images. Selected together, routing gives routine steps to Flash and hard ones to GLM 5.3.

What works differently here

  • GLM 5.3 is text-only. If your agent sends screenshots, select a vision model such as GLM 5.3 Flash next to it and image requests go there.
  • Z.ai's Prime and FlashX speed variants are not served.
  • If GLM is all you use, compare Z.ai's own GLM Coding Plan first. A Standard Compute plan fits when GLM shares the month with Claude, GPT or Gemini models.

Other ways to run GLM 5.3

Z.ai APIPay per tokenFirst-party, with cached input and free cache storage for now.
GLM Coding Plan (Z.ai)SubscriptionZ.ai's own plan for coding tools; GLM models only.
OpenRouter hostsPay per tokenSeveral hosts at their own rates, plus Z.ai's faster Prime variant.
Standard ComputeMonthly planGLM 5.3, its Flash sibling and GLM 5.2 next to Claude, GPT and Gemini on one key.

FAQ

GLM 5.3 or GLM 5.2?

Z.ai lists both at the same price, so take the newer GLM 5.3 unless an existing setup depends on 5.2. GLM 5.3 also takes reasoning levels; 5.2 only switches reasoning on or off.

Do I need a Z.ai account?

No. You call GLM 5.3 with a Standard Compute key and pay by card in US dollars, with no Z.ai sign-up or top-up.

Sources: Z.ai API pricing

Create your key

Sign in, create a key in the dashboard and paste it into the config above.

Get your API key