Z.ai

Day-0 Coding Agents Vision

GLM-5.4

Taking coding beyond software with agents that can see.

Tokens of context
1M
Text out
Text + images + files in
Input / output per 1M tokens
$0.98 usual price $1.40 / $3.08 usual price $4.40
Cached input per 1M tokens
$0.182 usual price $0.26

About the model

GLM-5.4 is Z.ai's new flagship model, taking coding beyond software with agents that can see. It reads images, files and text, so agents can work from designs, screenshots and reference material, and write the code that turns them into apps, games, 3D scenes and CAD models. It's Z.ai's first flagship built on a Loop Transformer architecture, based on the GLM-5 base model at about 750B parameters, with a 1M-token context window and up to 128K tokens of output. It's available on Verda Inference from day zero, through our partnership with Z.ai, and served from our data centers in Europe.

Start building

OpenAI compatible: point your code or coding agent at Verda Inference with your API key and the model ID glm-5-4 .

curl -X POST "https://inference.verda.com/v1/chat/completions" \
  -H "Authorization: Bearer ${VERDA_INFERENCE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5-4",
    "messages": [
      {
        "role": "user",
        "content": "What is the best viewpoint in Helsinki?"
      }
    ],
    "max_tokens": 2048
  }'
// Save to ~/.config/opencode/opencode.jsonc
// Export VERDA_INFERENCE_API_KEY, then run: opencode service restart
{
  "$schema": "https://opencode.ai/config.json",
  "model": "verda/glm-5-4",
  "provider": {
    "verda": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://inference.verda.com/v1",
        "apiKey": "{env:VERDA_INFERENCE_API_KEY}"
      },
      "models": {
        "glm-5-4": {
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        }
      }
    }
  }
}
import os

from openai import OpenAI

client = OpenAI(
    base_url=f"{os.environ['VERDA_INFERENCE_BASE_URL']}/v1",
    api_key=os.environ["VERDA_INFERENCE_API_KEY"],
)

resp = client.chat.completions.create(
    model="glm-5-4",
    messages=[{"role": "user", "content": "What is the best viewpoint in Helsinki?"}],
    max_tokens=2048,
)
print(resp.choices[0].message.content or resp.choices[0].message.reasoning_content)
print(resp.usage)

Thinking is always on, at max effort by default. Set reasoning_effort to low or high for faster responses.

Docs: default settings

What it's good at

Building from what you see

Turns designs, mockups and screenshots into working UI, then checks the result and refines it.

Use it for: front-end work and design to code.

Coding beyond software

Writes the code that builds games, interactive 3D scenes and CAD models from a brief, a storyboard or a reference image.

Use it for: games, 3D experiences and engineering models.

Visual debugging

Follows a screenshot of a broken page to find the problem and fix it.

Use it for: debugging and QA from what users actually see.

Built for long-running agent work

Holds up to 1M tokens of context. Verda Inference caches that context and reuses it, so long sessions stay responsive and repeated input costs less.

Use it for: coding agents working across large codebases.

Try other models

Moonshot AI

Kimi K3.1 Pro

For complex coding, agent and research work, with major gains in long-horizon coding.

Input
$2.00
Cache read
$0.20
Output
$10.00
Context
1M tokens
Input
Text & image
Tool calling
Supported
DeepSeek
New

V4.1 Flash

A fast, low cost model for high-volume, everyday tasks.

Input -75%
$0.075 / usual price $0.30
Cache read -75%
$0.003 / usual price $0.012
Output -75%
$0.30 / usual price $1.20
Context
1M tokens
Input
Text & image
Tool calling
Supported

Available now

Start building with Verda Inference

Make your first call in minutes.

One platform, the full AI lifecycle

From rapid prototyping to foundation training and scalable inference — on a single full-stack AI cloud