---
title: "GLM 5.3 API: price, context and OpenAI-compatible setup"
description: "Use GLM 5.3 through an OpenAI-compatible endpoint: tools, structured output, reasoning, a 1M-token context and per-token prices. Inference content is not retained."
url: https://broadrouter.com/models/glm-5.3/
lang: en
updated: 2026-11-16
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# GLM 5.3 API

Updated 2026-11-16

GLM 5.3 runs on BroadNet Inference as `broadnet/glm-5.3` through the OpenAI-compatible `https://inference.broadnet.ai/v1`. It costs $0.78 input, $0.173 cached input and $3.46 output per 1M tokens, with a 1,048,576-token context. It needs a qualifying top-up (not the starting credit), and inference content is not retained.

## At a glance

-   Text
-   Tool calling
-   Reasoning
-   Structured output

-   1,048,576-token context
-   Tool calling and structured output
-   Reasoning model
-   Text input

| Price and limits |  |
| --- | --- |
| Model ID | `broadnet/glm-5.3` |
| Endpoint | `/v1/chat/completions` |
| Supported inputs | text |
| Context | 1,048,576 tokens, prompt and answer together |
| Input | $0.78 per 1M tokens |
| Cached input | $0.173 per 1M tokens (reported cache hits only) |
| Output | $3.46 per 1M tokens |
| Pay-as-you-go limits | 30 requests a minute, 4 in flight per key |
| Access | Top-up required: opens after a qualifying top-up; the starting credit does not cover it |

Prices on this page are from BroadNet's price feed snapshot dated 2026-11-14, not checked live here. See [official pricing](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=feed-status) for current rates.

[Open the comparison](https://broadrouter.com/models/#compare)

[Report a wrong price or number](mailto:info@broadnet.ai?subject=Wrong%20price%20or%20number%20on%20GLM%205.3%20on%20BroadNet%20Inference&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Fmodels%2Fglm-5.3%2F%0A%0AWhat%20looks%20wrong%20(model%2C%20figure%20shown%2C%20correct%20figure%20and%20a%20source%20link%20if%20you%20have%20one)%3A%0A) (email to info@broadnet.ai, with this page's link filled in).

## Published benchmark results

BroadNet did not run these benchmarks; results are as published by the Z.ai model card and Epoch AI and may use different settings. BroadRouter is BroadNet's site. They refer to the published model [`zai-org/GLM-5.3`](https://huggingface.co/zai-org/GLM-5.3); not measured on BroadNet's serving.

Published benchmark results for GLM 5.3, with sources
| Benchmark | Result | Setting or note | Source |
| --- | --- | --- | --- |
| Terminal Bench 2.1 | 88.2 | Default reasoning\_effort max, per the card; Claude Code harness | [Z.ai model card](https://huggingface.co/zai-org/GLM-5.3), checked 2026-11-16 |
| DeepSWE (v1.1) | 66.9 | Default reasoning\_effort max, per the card; mini-swe-agent harness | [Z.ai model card](https://huggingface.co/zai-org/GLM-5.3), checked 2026-11-16 |
| HLE w/ Tools | 62.5 | Default reasoning\_effort max, per the card | [Z.ai model card](https://huggingface.co/zai-org/GLM-5.3), checked 2026-11-16 |
| Toolathlon Verified | 73.0 | Pass@1 averaged over 3 runs | [Z.ai model card](https://huggingface.co/zai-org/GLM-5.3), checked 2026-11-16 |
| CyberGym | 84.5 | Max reasoning effort, Claude Code harness | [Z.ai model card](https://huggingface.co/zai-org/GLM-5.3), checked 2026-11-16 |
| GPQA Diamond | 0.909 | Max reasoning setting; Epoch run glm-5.3\_max, mean score on a 0 to 1 scale | [Epoch AI](https://epoch.ai/benchmarks/use-this-data), checked 2026-11-16 |
| SimpleQA Verified | 0.41 | Max reasoning setting; Epoch run glm-5.3\_max, mean score on a 0 to 1 scale | [Epoch AI](https://epoch.ai/benchmarks/use-this-data), checked 2026-11-16 |
| OTIS Mock AIME 2024-2025 | 0.911 | Max reasoning setting; Epoch run glm-5.3\_max, mean score on a 0 to 1 scale | [Epoch AI](https://epoch.ai/benchmarks/use-this-data), checked 2026-11-16 |

Epoch AI rows: [Epoch AI, Capabilities & benchmarking](https://epoch.ai/benchmarks/use-this-data), licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), shown as the mean score on a 0 to 1 scale, rounded to three decimals (hover a value for the exact figure in Epoch's data file).

Side by side: [GLM 5.3 vs DeepSeek V4.1 Flash](https://broadrouter.com/compare/deepseek-v4.1-flash-vs-glm-5.3/), [GLM 5.3 vs Qwen3.8 27B](https://broadrouter.com/compare/glm-5.3-vs-qwen3.8-27b/) and [GLM 5.3 vs BroadNet Gemma 4 VL 26B](https://broadrouter.com/compare/gemma-4-vl-26b-vs-glm-5.3/), with prices, context and workload costs. GLM 5.3 is also sold by 24 other providers, from $0.5625 input and $2.50 output per 1M tokens on their own pricing pages: [GLM 5.3 API pricing by provider](https://broadrouter.com/llm-api-pricing/glm-5.3/). The same text is a different number of tokens on each model: see how GLM 5.3's tokenizer compares on Arabic, English and code in the [tokenizer efficiency dataset](https://broadrouter.com/data/tokenizer-efficiency/).

## Call it in Python

Install the OpenAI SDK with `pip install openai`, export `BROADNET_API_KEY`, then run:

Python

```python
from openai import OpenAI
import os

client = OpenAI(base_url="https://inference.broadnet.ai/v1", api_key=os.environ["BROADNET_API_KEY"])

response = client.chat.completions.create(
    model="broadnet/glm-5.3",
    max_tokens=2000,  # reasoning counts toward max_tokens: leave room
    messages=[{"role": "user", "content": "Write a SQL query for monthly active users."}],
)
print(response.choices[0].message.content)
```

## Or with curl

curl

```bash
curl https://inference.broadnet.ai/v1/chat/completions \
  -H "Authorization: Bearer $BROADNET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"broadnet/glm-5.3","messages":[{"role":"user","content":"Reply with one short sentence."}]}'
```

GLM 5.3 reasons before it answers. The reasoning counts toward `max_tokens` and is reported as `usage.completion_tokens_details.reasoning_tokens`, inside the completion (output) token count, so budget for it as output. Leave 1,000 tokens or more, or set `reasoning_effort` to `low`, or the answer can come back empty. [Why answers come back empty](https://broadrouter.com/guides/reasoning-tokens-empty-response/).

## Guides for GLM 5.3

-   [Use the OpenAI Python SDK with BroadNet Inference](https://broadrouter.com/guides/openai-python-sdk/)
-   [Use the OpenAI Node.js SDK with BroadNet Inference](https://broadrouter.com/guides/openai-node-sdk/)
-   [First request to BroadNet Inference with curl](https://broadrouter.com/guides/curl-quickstart/)
-   [Stream chat completions and handle dropped connections](https://broadrouter.com/guides/streaming-chat-completions/)
-   [Why a reasoning model returns an empty answer](https://broadrouter.com/guides/reasoning-tokens-empty-response/)
-   [Use LangChain with BroadNet Inference](https://broadrouter.com/guides/langchain-openai-base-url/)
-   [Use Cline with BroadNet Inference (OpenAI Compatible provider)](https://broadrouter.com/guides/cline-openai-compatible/)
-   [Use Roo Code with BroadNet Inference (OpenAI Compatible)](https://broadrouter.com/guides/roo-code-openai-compatible/)
-   [Use Continue with BroadNet Inference (config.yaml and apiBase)](https://broadrouter.com/guides/continue-dev-openai-compatible/)
-   [Add BroadNet Inference to opencode as a custom provider](https://broadrouter.com/guides/opencode-custom-provider/)
-   [Connect Open WebUI to BroadNet Inference](https://broadrouter.com/guides/open-webui-openai-api/)
-   [Add BroadNet Inference to LibreChat as a custom endpoint](https://broadrouter.com/guides/librechat-custom-endpoint/)
-   [Use BroadNet Inference in n8n (OpenAI credential, Base URL)](https://broadrouter.com/guides/n8n-openai-compatible/)
-   [Use the Vercel AI SDK with BroadNet Inference](https://broadrouter.com/guides/vercel-ai-sdk-openai-compatible/)
-   [Route LiteLLM to BroadNet Inference (SDK and proxy)](https://broadrouter.com/guides/litellm-proxy-custom-provider/)
-   [Run the OpenAI Agents SDK on BroadNet Inference](https://broadrouter.com/guides/openai-agents-sdk-custom-provider/)
-   [Use Zed with BroadNet Inference as an OpenAI-compatible provider](https://broadrouter.com/guides/zed-openai-compatible-provider/)
-   [Use Kilo Code with BroadNet Inference (OpenAI Compatible provider)](https://broadrouter.com/guides/kilo-code-openai-compatible/)
-   [Add BroadNet Inference to goose as a custom provider](https://broadrouter.com/guides/goose-custom-provider/)
-   [Use Pydantic AI with BroadNet Inference (OpenAICompatibleProvider)](https://broadrouter.com/guides/pydantic-ai-openai-compatible/)
-   [Use CrewAI with BroadNet Inference as a custom OpenAI endpoint](https://broadrouter.com/guides/crewai-custom-openai-endpoint/)
-   [Use LlamaIndex with BroadNet Inference through OpenAILike](https://broadrouter.com/guides/llamaindex-openailike/)
-   [Add BroadNet Inference to Dify with the OpenAI-API-compatible plugin](https://broadrouter.com/guides/dify-openai-api-compatible/)
-   [Use Jan with BroadNet Inference as a custom OpenAI-compatible provider](https://broadrouter.com/guides/jan-custom-endpoint/)
-   [Connect SillyTavern to BroadNet Inference (Custom OpenAI-compatible)](https://broadrouter.com/guides/sillytavern-custom-openai-endpoint/)
-   [Use Spring AI with BroadNet Inference (OpenAI base-url)](https://broadrouter.com/guides/spring-ai-openai-base-url/)
-   [Call BroadNet Inference from Go with the openai-go SDK](https://broadrouter.com/guides/openai-go-sdk/)
-   [Build LangGraph agents on BroadNet Inference](https://broadrouter.com/guides/langgraph-openai-compatible/)
-   [Use Haystack pipelines and agents with BroadNet Inference](https://broadrouter.com/guides/haystack-openai-compatible/)
-   [Use Semantic Kernel with BroadNet Inference](https://broadrouter.com/guides/semantic-kernel-openai-compatible/)
-   [Use Mastra agents with BroadNet Inference](https://broadrouter.com/guides/mastra-openai-compatible/)
-   [Get structured output with Instructor on BroadNet Inference](https://broadrouter.com/guides/instructor-structured-output/)
-   [Use DSPy with BroadNet Inference (set model\_type="chat")](https://broadrouter.com/guides/dspy-openai-compatible/)
-   [Evaluate BroadNet models with promptfoo](https://broadrouter.com/guides/promptfoo-openai-compatible/)
-   [Run smolagents on BroadNet Inference with OpenAIModel](https://broadrouter.com/guides/smolagents-openai-compatible/)
-   [Connect Flowise to BroadNet Inference (OpenAI Custom Model)](https://broadrouter.com/guides/flowise-openai-compatible/)
-   [Connect Langflow to BroadNet Inference](https://broadrouter.com/guides/langflow-openai-compatible/)

## Use GLM 5.3 in the console

The BroadNet console on inference.broadnet.ai manages accounts and keys. It does not receive your choice from this page, so:

1.  Sign in or create an account.
2.  Add a qualifying top-up (the starting credit does not cover this model), then create a pay-as-you-go key.
3.  Send this model ID as `model` to `/v1/chat/completions`: `broadnet/glm-5.3`

[Open the BroadNet console](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=model-console) · [Estimate the cost](https://broadrouter.com/pricing/?model=glm-5.3#estimate) · [Read the API reference](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=docs#models) ·

## Compare GLM 5.3

-   [DeepSeek V4.1 Flash vs GLM 5.3](https://broadrouter.com/compare/deepseek-v4.1-flash-vs-glm-5.3/)
-   [GLM 5.3 vs Qwen3.8 27B](https://broadrouter.com/compare/glm-5.3-vs-qwen3.8-27b/)
-   [BroadNet Gemma 4 VL 26B vs GLM 5.3](https://broadrouter.com/compare/gemma-4-vl-26b-vs-glm-5.3/)

Free tools for GLM 5.3

-   [LLM API cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/) Price a workload on every model at once, with cache hits, reasoning and a flat-plan check.
-   [LLM token counter](https://broadrouter.com/tools/token-counter/) Exact token counts with each model's real tokenizer, with a token view and cost.
-   [Context window calculator](https://broadrouter.com/tools/context-window-calculator/) Will it fit? Window used per model, room left for output, cost to send.

[All free tools](https://broadrouter.com/tools/)

## Questions

### What is the model ID for GLM 5.3?

Pass `broadnet/glm-5.3` as `model` to `/v1/chat/completions`. The base URL is `https://inference.broadnet.ai/v1`.

### How much does GLM 5.3 cost?

$0.78 input, $0.173 cached input and $3.46 output per 1M tokens, from your account balance.

### What is the context window of GLM 5.3?

1,048,576 tokens per request, prompt and answer together.

### Can I use GLM 5.3 without a top-up?

No. GLM 5.3 opens after a qualifying top-up. The starting credit covers BroadNet Gemma 4 VL 26B, BroadNet Transcribe Arabic, BroadNet Transcribe and Gemma hourly keys.

### How does GLM 5.3 score on benchmarks?

As published, [the Z.ai model card](https://huggingface.co/zai-org/GLM-5.3) reports 88.2 on Terminal Bench 2.1 and 66.9 on DeepSWE (v1.1); [Epoch AI](https://epoch.ai/benchmarks/use-this-data) measured 0.909 on GPQA Diamond in its own run, as a mean score on a 0 to 1 scale (checked 2026-11-16). BroadNet did not run these benchmarks, and sources may use different settings, so the figures are not directly comparable. Every published result we found, with its setting and source.

### Is my data stored?

Inference content is not retained: prompts, images and answers are processed for the request only. Necessary account, billing and security metadata, such as timings, token counts and cost, is retained as described in BroadNet's privacy statement. [Read how](https://broadrouter.com/zero-data-retention/).

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference pricing](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=sources)
-   [Model IDs and request shapes](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=models-glm-5.3&utm_content=sources#models)
