Skip to main content
AnyAIGC

Zhipu Z.ai · glm-5.3

GLM-5.3 API

Zhipu's latest flagship, a step up in complex software engineering and agent work. It shares GLM-5.2's base model, and scaled-up post-training pushes coding further. On AnyAIGC it costs about 30% less than the official price.

glm-5.3 input $0.9450 per 1M tokens, output $2.9700 per 1M tokens, cache hit $0.1758. Works with the OpenAI-compatible API and in Claude Code.

  • Model ID glm-5.3
  • Context 1M tokens
  • Input $0.9450 / 1M
  • Concurrency Unlimited
  • Business Self-service invoices
About

Same base model, much stronger post-training

Zhipu calls GLM-5.3 its latest flagship, with across-the-board gains in complex software engineering and agent tasks. Zhipu says it uses the same base model as GLM-5.2, and every improvement comes from scaled-up post-training that builds on the reinforcement learning approach introduced with GLM-5.2.

The reported gains center on coding and agents: Zhipu's internal Z.ai Code Bench is 50% higher than GLM-5.2 while using fewer output tokens on the same tasks, and Terminal Bench 3.0 rose from 4.6 to 28.3. Zhipu also reports state-of-the-art results on the CyberGym vulnerability benchmark. It has a 1M-token context, up to 128K output, and thinking is always on.

On AnyAIGC, glm-5.3 runs on the OpenAI-compatible /v1/chat/completions endpoint and works directly in Claude Code. No Zhipu platform account or Coding Plan needed: you pay per token, with unlimited concurrency.

Context window
1Mtokens
Max output
128Ktokens
Architecture
MoE + DSASparse attention, same base as GLM-5.2
Input
TextText only
Thinking
Always onreasoning_effort: low / high / max
Weights
OpenHugging Face zai-org/GLM-5.3
Capabilities

What GLM-5.3 can do

  • 01

    Terminal and long-horizon coding

    Zhipu reports 88.2 on Terminal Bench 2.1 and 28.3 on Terminal Bench 3.0 (GLM-5.2: 4.6), for long engineering tasks that run in the terminal.

  • 02

    Software engineering

    Zhipu reports 66.9 on DeepSWE v1.1, 78.1 on FrontierSWE and 58 on NL2Repo, from fixing bugs to building a repo from scratch.

  • 03

    Coding with fewer tokens

    On Zhipu's internal Z.ai Code Bench at max effort, GLM-5.3 scores 34.5% with about 75K output tokens on average; GLM-5.2 scores 23.4% with about 96K.

  • 04

    Security research

    Zhipu reports 84.5 on the CyberGym vulnerability reproduction benchmark, and says GLM-5.3 found 2,436 vulnerabilities across 269 open-source projects.

  • 05

    Agents and tool calls

    Zhipu reports 73 on Toolathlon Verified, 48.2 on AutomationBench and 28.5 on Agents' Last Exam, with function calling and structured output.

  • 06

    Adjustable thinking depth

    Thinking is always on. Set reasoning_effort to low, high or max: save tokens on simple tasks and use max for hard problems.

Pricing

GLM-5.3 API pricing

Pay per token at fixed rates, with no subscription or monthly fee. Input and output cost about 67.5% of Zhipu's official USD prices (about 30% off).

  • Per tokenInput, output and cache priced separately
  • About 30% offvs Zhipu official USD prices
  • Unlimited concurrencyOn by default for every user
  • USDOne balance for 300+ models
glm-5.3 prices per 1M tokens (USD), AnyAIGC vs Zhipu official
ItemModelAnyAIGCZhipu officialSavings
Inputper 1M tokensglm-5.3$0.9450$1.4033%
Outputper 1M tokens, incl. thinkingglm-5.3$2.9700$4.4033%
Cache hitper 1M tokensglm-5.3$0.1758$0.2632%

Prices are in USD and billed on the tokens you actually use. Output includes thinking tokens, and repeated prompt prefixes are billed at the cache-hit rate automatically. Official prices come from the Zhipu Z.ai pricing page (USD). The table shows the lowest price in the model catalog; see the AnyAIGC model catalog for live pricing.

Cost examples

Estimates for common workloads. The struck-through figure is the same usage at Zhipu official prices.

  • 20 agent coding turns

    Each turn: 50K cache-hit tokens + 5,000 input + 3,000 output

    $0.449

    Official $0.664

  • Analyze a 500K-token codebase

    500K input tokens + 5,000 output

    $0.487

    Official $0.722

  • 1M input + 1M output

    1M input tokens + 1M output tokens

    $3.92

    Official $5.80

Benchmarks

GLM-5.3 official benchmarks

Scores Zhipu published in the GLM-5.3 technical blog, compared with GLM-5.2.

GLM-5.3 vs GLM-5.2 · Zhipu evals

  • GLM-5.3 · DeepSWE66.9
  • GLM-5.2 · DeepSWE46.2
  • GLM-5.3 · FrontierSWE78.1
  • GLM-5.2 · FrontierSWE67.5
  • GLM-5.3 · Toolathlon73
  • GLM-5.2 · Toolathlon59.9
GLM-5.3 vs GLM-5.2 official benchmarks (published by Zhipu)
BenchmarkGLM-5.3GLM-5.2
Terminal Bench 2.1Terminal coding88.281.0
Terminal Bench 3.0Terminal coding28.34.6
DeepSWE v1.1Software engineering66.946.2
NL2RepoRepo from scratch58.048.9
FrontierSWESoftware engineering78.167.5
SWE-Marathon v1.1Long-horizon software engineering42.519.4
PostTrainBenchModel post-training tasks39.831.7
CyberGymVulnerability reproduction84.577.2
ExploitBenchExploit development54.424.4
Toolathlon VerifiedTool use73.059.9
AutomationBench v1.0.6Automation agent48.226.2
Agents' Last ExamGeneral agent28.523.8
HLE w/ ToolsGeneral reasoning, with tools62.554.7
GDPval-AA v2Knowledge work, Elo17691508

Source: the GLM-5.3 technical blog. Scores are Zhipu's published results; the blog also compares against other open and closed models.

Compare

GLM-5.3 vs GLM-5.3-Flash vs GLM-5.2

Start new projects on GLM-5.3. For high-volume, budget-sensitive or image tasks, use GLM-5.3-Flash.

GLM-5.3, GLM-5.3-Flash and GLM-5.2 compared; prices are AnyAIGC USD per 1M tokens
SpecGLM-5.3GLM-5.3-FlashGLM-5.2
RoleLatest flagshipNative multimodal, low costLong-horizon flagship
Context1M1M1M
InputTextText, imagesText
ThinkingAlways onAlways onOn or off
AnyAIGC inputper 1M tokens$0.9450$0.0607$0.9450
AnyAIGC outputper 1M tokens$2.9700$0.2025$2.9700
Cache hitper 1M tokens$0.1758$0.0122$0.2362

Specs come from Zhipu Z.ai's official docs. Prices are current AnyAIGC prices; see the model catalog for live pricing. More on the GLM-5.3-Flash API and GLM-5.2 API.

Use cases

Where GLM-5.3 fits

  • 01 · Large repos

    Cross-module refactors and migrations

    Load the whole codebase into 1M context, let GLM-5.3 map the dependencies and propose changes, then execute and verify them step by step with terminal tools.

  • 02 · Coding agents

    Claude Code and custom agents

    Run tasks of dozens or hundreds of steps in Claude Code or your own agent framework: read code, run tests, fix errors. AnyAIGC does not cap concurrency.

  • 03 · Security

    Code audits and vulnerability hunting

    Have the model review dependencies and application code, reproduce known vulnerabilities and write patches. Zhipu reports state-of-the-art results on CyberGym.

  • 04 · Automation

    Tool calls and workflow orchestration

    Combine function calling and structured output to chain internal systems, scripts and APIs into automated workflows. Repeated system prompts are billed at the cache-hit rate.

Quickstart

Connect to the GLM-5.3 API in three steps

  1. Sign up and add credit: create an account at anyaigc.ai. Top up from $1; your balance works across every model on the platform.
  2. Create an API key: create a key in the console, copy the value that starts with sk-, and store it in the ANYAIGC_API_KEY environment variable.
  3. Send a request: call POST https://anyaigc.ai/v1/chat/completions with model set to glm-5.3 and an Authorization: Bearer header. With the OpenAI SDK, just set base_url to https://anyaigc.ai/v1.
POST /v1/chat/completions
curl https://anyaigc.ai/v1/chat/completions \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3",
    "messages": [
      {"role": "user", "content": "Explain what a MoE model is in three sentences."}
    ]
  }'
Python · openai SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)

resp = client.chat.completions.create(
    model="glm-5.3",
    messages=[
        {"role": "system", "content": "You are a senior backend engineer. Answer with runnable code."},
        {"role": "user", "content": "Write an HTTP client in Go with timeouts and retries."},
    ],
)
msg = resp.choices[0].message
print(getattr(msg, "reasoning_content", None))  # reasoning trace, if any
print(msg.content)
print(resp.usage)
Python · reasoning_effort
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

# reasoning_effort sets thinking depth: low / high / max (default max; Zhipu recommends max for coding)
resp = client.chat.completions.create(
    model="glm-5.3",
    reasoning_effort="low",
    messages=[{"role": "user", "content": "Rewrite this SQL to use window functions: SELECT ..."}],
)
print(resp.choices[0].message.content)
Python · tools
import json
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

tools = [{
    "type": "function",
    "function": {
        "name": "run_tests",
        "description": "Run the unit tests at a path in the repo and return the failing cases",
        "parameters": {
            "type": "object",
            "properties": {"path": {"type": "string", "description": "Test file or directory"}},
            "required": ["path"],
        },
    },
}]
messages = [{"role": "user", "content": "Run tests/test_api.py and tell me which cases fail."}]

resp = client.chat.completions.create(model="glm-5.3", messages=messages, tools=tools)
msg = resp.choices[0].message
# In multi-turn and tool calls, send the full assistant message (incl. reasoning_content and tool_calls) back unchanged
messages.append(msg.model_dump(exclude_none=True))
for call in msg.tool_calls or []:
    args = json.loads(call.function.arguments)
    result = {"path": args["path"], "failed": ["test_login_timeout"]}  # replace with the real result
    messages.append({"role": "tool", "tool_call_id": call.id, "content": json.dumps(result)})

final = client.chat.completions.create(model="glm-5.3", messages=messages, tools=tools)
print(final.choices[0].message.content)

Tip: GLM-5.3 always thinks. Its reasoning comes back in the reasoning_content field, and reasoning_effort sets the depth. Zhipu's defaults are temperature=1.0 and top_p=0.95; if you tune them, change only one. In multi-turn chats and tool calls, send the full assistant message from the API (including reasoning_content and tool_calls) back in the next request unchanged.

See the Chat Completions reference for every parameter. Replace the model name in the docs examples with the GLM model ID you want.

Claude Code

Use GLM-5.3 in Claude Code

Switch Claude Code to GLM-5.3 by editing one config file, and code in your terminal with Zhipu's latest flagship, billed per token.

  1. Install Claude Code: use the official installer, for example curl -fsSL https://claude.ai/install.sh | bash on macOS or Linux.
  2. Add the config: edit ~/.claude/settings.json, add the env block below, and replace ANTHROPIC_AUTH_TOKEN with the key you created on AnyAIGC.
  3. Start coding: run claude in your project folder. Type /model to confirm the current model is glm-5.3.
~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://anyaigc.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
    "ANTHROPIC_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-flash",
    "API_TIMEOUT_MS": "300000",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  }
}

Save on light tasks: the config sets ANTHROPIC_DEFAULT_HAIKU_MODEL to glm-5.3-flash, so Claude Code's lightweight subtasks use the cheaper model while the main work stays on GLM-5.3.

For the full walkthrough and common errors, see the Claude Code setup guide. Swap the model name in the guide for glm-5.3.

Enterprise

GLM-5.3 API for teams and enterprises

Teams can top up, issue invoices themselves, and work with a dedicated support and technical contact.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

SPECS

Specs and how to choose it

Z.ai's docs call GLM-5.3 its latest flagship model; it uses the same base model as GLM-5.2, with all improvements coming from post-training.

The vendor says it improves 50% over GLM-5.2 on Z.ai Code Bench and reaches state-of-the-art performance among open-source models on public benchmarks including Terminal Bench 3.0.

It currently takes text-only input, with a 1M-token context window and a 128K-token maximum output; reasoning is always on, with effort levels low, high and max (default max), and disabling reasoning is no longer supported.

This page lists Input at $0.9450, Output at $2.9700, Cache hit at $0.1758, matching the pricing table above.

Compared with glm-5.2: the official docs say GLM-5.3 cannot turn reasoning off, so a request that sets thinking.type to disabled must be changed to enabled before switching models, or it will fail.

Specs come from the vendor's official documentation (docs.z.ai). The table on this page is the price, and the model catalog is authoritative for live rates.

FAQ

GLM-5.3 API FAQ

How much does the GLM-5.3 API cost?

On AnyAIGC, glm-5.3 is billed per token: input $0.9450 per 1M tokens, output $2.9700 per 1M tokens, cache hit $0.1758 per 1M tokens. Zhipu's official USD prices are input $1.40, output $4.40 and cache hit $0.26, so AnyAIGC input and output cost about 67.5% of official (about 30% off). Output includes thinking tokens. See the model catalog for live pricing.

What is the GLM-5.3 model ID, and how large is the context?

The model ID is glm-5.3. Zhipu lists a 1M-token context window and up to 128K output tokens. It currently accepts text input only.

How is GLM-5.3 different from GLM-5.2?

Zhipu says GLM-5.3 uses the same base model as GLM-5.2, and every gain comes from scaled-up post-training. Reported changes: Z.ai Code Bench is 50% higher than GLM-5.2, Terminal Bench 3.0 rose from 4.6 to 28.3, and DeepSWE rose from 46.2 to 66.9. GLM-5.3 also always thinks and thinking cannot be turned off. On AnyAIGC both cost the same for input and output, and GLM-5.3 has a lower cache-hit price ($0.1758 vs $0.2362).

How do I adjust GLM-5.3's thinking depth? Can I turn thinking off?

GLM-5.3 always thinks, and Zhipu does not support turning it off. Use the reasoning_effort field in the request body to set depth: low, high or max (default max, which Zhipu recommends for coding). Use low on simple tasks to cut output tokens.

Does GLM-5.3 support tool calls and structured output?

Yes. Zhipu's docs list function calling, structured output (JSON), streaming and context caching. In multi-turn chats and tool calls, send the full assistant message (including reasoning_content and tool_calls) back in the next request unchanged.

Can I use GLM-5.3 in Claude Code?

Yes. In the env block of ~/.claude/settings.json, set ANTHROPIC_BASE_URL to https://anyaigc.ai, ANTHROPIC_AUTH_TOKEN to your API key, and ANTHROPIC_MODEL to glm-5.3. Then run claude. You pay per token, with no 5-hour quota window like a subscription plan.

Is GLM-5.3 open source?

Yes. Zhipu has published the GLM-5.3 weights on Hugging Face (zai-org/GLM-5.3) under the GLM-5.3 License. It is a permissive license overall, with one extra rule: companies with annual revenue above $10 billion that run model-as-a-service businesses must pass a Z.ai security review before commercial use. Calling the API through AnyAIGC means you do not have to host it yourself. Commercial use is governed by Zhipu AI's official terms.

Are there concurrency or rate limits?

AnyAIGC does not cap concurrency for glm-5.3, and every user gets this by default. That suits batch jobs, CI pipelines and parallel agents. Billing is per token, so there is no quota that resets on a time window like a subscription plan.

How do I get a GLM-5.3 API key?

Sign up at anyaigc.ai, add credit, and create a key in the console. The same key works for every GLM model and 300+ other models on the platform, so you do not need a separate Zhipu platform account or a GLM Coding Plan.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Will my data be used for training?

No. Except where required by law, AnyAIGC does not persistently store your prompts or outputs and does not use them to train models. Requests are encrypted over HTTPS. See the AnyAIGC Privacy Policy. The model's own data policy is governed by Zhipu AI's official terms.

Run GLM-5.3 at about 30% off the official price

Sign up, create an API key, and you can use glm-5.3 in your code or Claude Code within minutes.