GLM-5.3 API
Flagship coding and agentic LLM with stronger long-horizon execution and security-oriented reasoning
- Input per 1M
- $1.20
- Cached input per 1M
- $0.20
- Output per 1M
- $4.00
- Context window
- 1M
Call GLM-5.3 in one request
Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID.
zai:[email protected]import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RUNWARE_API_KEY"],
base_url="https://api.runware.ai/v1",
)
stream = client.chat.completions.create(
model="zai:[email protected]",
messages=[
{"role": "user", "content": "What is the capital of France?"},
],
stream=True,
stream_options={"include_usage": True},
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
if chunk.usage:
print("\n", chunk.usage)Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.
About GLM-5.3
GLM-5.3 is Z.ai's flagship language model for coding, tool-using agents, and sustained multi-step problem solving. It builds on the long-horizon engineering focus of the recent GLM line with stronger software engineering performance, better benchmark results across terminal and agent evaluations, and notably stronger capability in security-oriented code analysis and vulnerability discovery. It is a strong fit for demanding coding assistants, automation systems, and engineering workflows that need reliable reasoning over large task context.
- Developer
- Z.ai
- Released
- 14 Aug, 2026
- Input
- Text
- Context window
- 1M tokens
- Max output
- 131K tokens
- API
- OpenAI Chat Completions
- Hosting
- Runware hardware
- Data retention
- Zero retention
Already on another provider?
Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.
More LLMs on Runware
Same key, same endpoint, same per-token billing. Switching models means changing one ID.
Start on demand. Scale on dedicated.
Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.