Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

GLM-5.3-Flash

zai-org/GLM-5.3-Flash

GLM-5.3-Flash is Z.AI’s first natively multimodal GLM-5 model, delivering frontier coding and agentic intelligence.

Model APIlarge languageimage processing

GLM-5.3-Flash is Z.AI's first natively multimodal model in the GLM-5 series, combining frontier coding and agentic intelligence with ultra-low-cost inference. It outperforms GLM-5.2 across benchmarks, while approaching Claude Opus 4.8 on coding and agentic evaluations.

BenchmarkWhat it measuresGLM-5.3-FlashGLM-5.2Claude Opus 4.8
Terminal Bench 2.1Coding ability in a terminal environment.⁠84.381.085.0
Toolathlon VerifiedAbility to use multiple external tools to complete long-horizon workflows.⁠78.459.976.2
MMVUVideo understanding and reasoning across multiple domains ⁠​80.5-67.4

GLM-5.3-Flash has 320B total parameters with just 18B active, plus a hybrid sparse-and-linear-attention architecture that lowers long-context serving costs while preserving precise retrieval.

Native visual intelligence expands the model beyond code: it can interpret interfaces and professional artifacts, use browser and computer tools, inspect rendered outputs, and iteratively refine its work. With context lengths up to one million tokens, GLM-5.3-Flash is a strong fit for scalable coding agents, visual development, automation, and long-running knowledge-work workflows.

Input

python
# You can use this model with any of the OpenAI clients in any language!
# Simply change the API Key to get started

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://inference.baseten.co/v1"
)

response = client.chat.completions.create(
    model="zai-org/GLM-5.3-Flash",
    messages=[
        {
            "role": "user",
            "content": "Implement Hello World in Python"
        }
    ],
    stream=True,
    stream_options={
        "include_usage": True,
        "continuous_usage_stats": True
    },
    top_p=1,
    max_tokens=1000,
    temperature=1,
    presence_penalty=0,
    frequency_penalty=0
)

for chunk in response:
    if chunk.choices and chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="", flush=True)

Output

json
{
  "id": "143",
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "logprobs": null,
      "message": {
        "content": "[Model output here]",
        "role": "assistant",
        "audio": null,
        "function_call": null,
        "tool_calls": null
      }
    }
  ],
  "created": 1741224586,
  "model": "",
  "object": "chat.completion",
  "service_tier": null,
  "system_fingerprint": null,
  "usage": {
    "completion_tokens": 145,
    "prompt_tokens": 38,
    "total_tokens": 183,
    "completion_tokens_details": null,
    "prompt_tokens_details": null
  }
}