Z.ai · Checked October 13, 2026

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

GLM 5.3 Flash (z-ai/glm-5.3-flash) is on every Standard Compute plan from $19 a month, so OpenCode, Claude Code and Codex draw on a fixed compute budget that returns HTTP 402 at 100%, with no Z.ai account.

ModelThe fast, low-cost member of Z.ai's GLM 5.3 coding release. Unlike GLM 5.2 and GLM 5.3, it reads images.
Model IDz-ai/glm-5.3-flashShort form glm-5.3-flash also works
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 and images
ReasoningAlways on; effort minimal to high

Copy a working config

The same model ID works in OpenCode, and in Claude Code and Codex through the launcher.

~/.config/opencode/opencode.json/v1/chat/completions
{
  "$schema": "https://opencode.ai/config.json",
  "model": "standardcompute/z-ai/glm-5.3-flash",
  "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-flash": { "name": "GLM 5.3 Flash" },
        "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, Codex CLI.

What it costs

Per 1M tokensGLM 5.3 FlashGLM 5.3
Input$0.15$1.40
Cached input$0.03$0.26
Output$0.50$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 costs about a ninth of GLM 5.3 per input token and about a twenty-seventh of Claude Opus 5.5. That makes it a good choice for routine steps in a routed selection: put it next to a frontier model on the Models page and routine steps land on Flash while hard ones go up.

What works differently here

  • Thinking cannot be switched off. The endpoint rejects requests that disable reasoning, so the gateway uses a low effort instead, and in our tests the effort level barely changed how much it thought.
  • Image input was tested on the provider we route to, including questions about what the image shows. Video is advertised elsewhere for this model but is not offered here.
  • If GLM is the only model you use, compare Z.ai's own GLM Coding Plan first. A Standard Compute plan makes sense when GLM shares the month with other models.

Other ways to run GLM 5.3 Flash

Z.ai APIPay per tokenFirst-party, with cheaper cached input.
GLM Coding Plan (Z.ai)SubscriptionZ.ai's own plan for coding tools. GLM models only, metered in credit windows.
OpenRouter hostsPay per tokenSeveral hosts serve it; check each one's rate and whether it accepts images.
Standard ComputeMonthly planGLM 5.3 Flash next to Claude, GPT and other open models on one key.

FAQ

Can GLM 5.3 Flash read screenshots?

Yes. It accepts images on Standard Compute; we checked that it answers questions about image content on the provider we route to. GLM 5.2 and GLM 5.3 are text-only.

GLM 5.3 Flash or GLM 5.3?

Flash for routine edits, tool calls and high-volume work at about a ninth of the input price. GLM 5.3 for harder multi-file reasoning. Select both and routing chooses per request.

Can I run Hermes on GLM 5.3 Flash without Zhipu's tier throttling?

Yes. On Standard Compute, z-ai/glm-5.3-flash is on every plan with no Z.ai account or usage tier: run standardcompute launch hermes and pin the model, or select it as the efficient model next to a stronger one. Limits are a high per-key anti-abuse ceiling and the monthly compute budget, billed in US dollars from $19 a month, with support in English. Small steps at Z.ai's list price of $0.15 / $0.50 per million tokens draw very little from that budget.

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