APIMart
Back to all models

GLM-5.3 API

Z.aiModel ID glm-5.3Text modelReleased August 14, 2026

Use GLM-5.3 to fix a build that broke after a dependency upgrade, review a query handler for injection bugs, or find why a training step spends most of its time waiting.

Max input
1,000,000 tokens
Max output
128,000 tokens
Input → output
Text → Text
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

GLM-5.3 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on GLM-5.3.

Try GLM-5.3 with your own material

Fixing builds after upgrades

Send GLM-5.3 the failing log, the code that triggers the error and the version change, and ask for the cause and the smallest fix. Run the full test suite before merging, not just the test that failed.

Example: Why does the build fail after the upgrade?

Material

CI log
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/node-fetch/src/index.js not supported.
Change
package.json: node-fetch ^2.7.0 → ^3.3.2. client.js uses const fetch = require('node-fetch').

PromptExplain why the build fails after the upgrade and give the smallest fix, with any trade-offs.

Sample answer · written by hand to show the reasoning

node-fetch 3 is published as an ES module only, so require() can no longer load it. The smallest fix is to pin node-fetch to ^2.7.0. If the project runs on Node 18 or later, you can instead remove the dependency and use the built-in fetch; converting client.js to import is the third option but touches more files.

About the GLM-5.3 API

  • Same base as GLM-5.2, much stronger at coding

    Every gain comes from post-training on long, realistic engineering tasks. Z.ai reports a 50% improvement over GLM-5.2 on its Z.ai Code Bench and open-weights state of the art on Terminal Bench 3.0 and Agents’ Last Exam.

  • Top score on CyberGym

    Z.ai says security skills grew faster than expected during training: GLM-5.3 scores 84.5 on CyberGym, the vulnerability-discovery benchmark, the highest in Z.ai’s comparison table.

  • Always thinks, with three effort levels

    Thinking can’t be turned off. Set reasoning_effort to low, high or max (the default); in Z.ai’s tests, high effort used about a third fewer output tokens than max for a small drop in results.

  • GLM-5.3 API key and access

    You don’t need a separate GLM-5.3 API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID glm-5.3.

GLM-5.3 official benchmark results

Selected results Z.ai published at launch.

  • Terminal Bench 3.0

    28.3

    Hard coding tasks in a terminal. Up from 4.6 for GLM-5.2 and ahead of Claude Opus 4.8 (21.1); GPT-5.6 Sol scores 34.6.

  • DeepSWE v1.1

    66.9

    Agentic software engineering. GLM-5.2 scored 46.2 and Claude Opus 4.8 58.0; GPT-5.6 Sol scores 72.7.

  • SWE-Marathon v1.1

    42.5

    Very long software tasks. More than double GLM-5.2 (19.4); Claude Opus 4.8 leads at 48.8.

  • CyberGym

    84.5

    Finding and validating vulnerabilities from source code. Highest in Z.ai’s table, ahead of GPT-5.6 Sol (83.6) and Claude Opus 4.8 (78.1).

  • AutomationBench v1.0.6

    48.2

    Business automation workflows. Highest in Z.ai’s table, ahead of GPT-5.6 Sol (45.8) and Claude Opus 4.8 (41.0); GLM-5.2 scored 26.2.

  • GDPval-AA v2

    1769

    Professional knowledge work, rated by Artificial Analysis. Highest in Z.ai’s table, ahead of Qwen3.8-Max (1739) and GPT-5.6 Sol (1730).

How to call the GLM-5.3 API

To call GLM-5.3, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GLM-5.3 access details

Model IDglm-5.3
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

GLM-5.3 API request parameters

GLM-5.3 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use glm-5.3 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

GLM-5.3 API pricing

The GLM-5.3 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input11.2Credits~$1.1210.64Credits~$1.06410.08Credits~$1.00814Credits~$1.420%
Cached input2.08Credits~$0.2081.976Credits~$0.19761.872Credits~$0.18722.6Credits~$0.2620%
Output35.2Credits~$3.5233.44Credits~$3.34431.68Credits~$3.16844Credits~$4.420%

Prices are for reference only. View full pricing

Why call GLM-5.3 API through APIMart

  • 20% below official pricing

    GLM-5.3 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Z.ai's official prices, and cached input costs just $0.208 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GLM-5.3, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try GLM-5.3 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Z.ai model should you choose?

Base prices per 1M tokens (USD). Your GLM-5.3 API key works for every model in the table; just change the model parameter.

Differences between Z.ai models
ComparisonGLM-5.3 CurrentGLM-5.3-Flash
Best forAgentic coding, Long-horizon tasks, Open weightsAgentic coding, Image, video & file input, Open weights
Input typesTextText, Image, Video, File
Input price$1.12$0.06
Output price$3.52$0.2

GLM-5.3 FAQ

How is GLM-5.3 different from GLM-5.2?

GLM-5.3 uses the same base model as GLM-5.2; Z.ai improved it through post-training on long, realistic engineering tasks. Z.ai reports 66.9 vs. 46.2 on DeepSWE v1.1, 28.3 vs. 4.6 on Terminal Bench 3.0, and a 50% gain on its in-house Z.ai Code Bench. Z.ai lists both at the same API price, and on APIMart you switch by changing the model parameter.

Should I use GLM-5.3 or GLM-5.3-Flash?

On Z.ai’s published results GLM-5.3 leads on coding, for example 66.9 vs. 63.4 on DeepSWE v1.1 and 88.2 vs. 84.3 on Terminal Bench 2.1, while GLM-5.3-Flash scores slightly higher on Toolathlon Verified (78.4 vs. 73.0) and AutomationBench (48.8 vs. 48.2). GLM-5.3 reads text only, Flash also reads images, video and files, and Flash costs far less. Use GLM-5.3 for the hardest coding work and Flash for everything else.

Why does my GLM-5.3 request fail with thinking disabled?

GLM-5.3 always thinks, and Z.ai no longer accepts thinking.type set to disabled, so requests that send it fail. Set thinking.type to enabled, or leave it out, and choose reasoning_effort: low, high or max. Max is the default and Z.ai’s recommendation for coding; low gives the quickest answers.

Is GLM-5.3 open source?

Yes, the weights are public. Z.ai said it would release them two weeks after launch, after safety evaluation, and they are now on Hugging Face as zai-org/GLM-5.3 under Z.ai’s own GLM-5.3 license, with vLLM and SGLang support. The GLM 5.3 API lets you use it without hosting the 753B-parameter model yourself.

Can GLM-5.3 read images?

No. Z.ai’s documentation says GLM-5.3 currently supports text-only input. For screenshots, video or files, use GLM-5.3-Flash, which Z.ai describes as the first natively multimodal GLM-5 model.

How does reasoning effort affect GLM-5.3’s token use?

Lower effort uses fewer output tokens. In Z.ai’s agentic coding test, GLM-5.3 at high effort solved 31.4% of tasks with about 50K output tokens each, compared with 29.5% at 120K for Claude Opus 4.8; at max effort it reached 34.5% with about 75K. Use high when cost matters and max for the hardest tasks.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select GLM-5.3 in the text category to start exploring.

Which model ID does the GLM-5.3 API use?

Set model to glm-5.3. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of GLM-5.3?

On APIMart, GLM-5.3 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

GLM-5.3 can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the GLM-5.3 API cost?

The GLM-5.3 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.12 per million input tokens and $3.52 per million output tokens. Diamond: $1.008 per million input tokens and $3.168 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.