GLM-5.3-FlashX-Legal

GLM-5.3-FlashX-Legal reads text, images and video and returns text, with reasoning, structured output and tool calling.

Starting at
Input
$0.37/ 1M
Output
$1.25/ 1M
Open dashboard

Channel

Each channel is compared at its lowest input-price tier; output breaks ties. A dash means /api/pricing does not provide that rate. Selecting a channel updates the endpoints and call example below.

z-ai/glm-5.3-flashx-legal
Input
$0.37 USD per 1M tokens
Output
$1.25 USD per 1M tokens
Cache read
$0.075 USD per 1M tokens
Cache write
- USD per 1M tokens

Endpoints

POST/v1/chat/completionsChat Completions

Call it

Using z-ai/glm-5.3-flashx-legal

from openai import OpenAIclient = OpenAI(    base_url="https://www.realrelay.ai/v1",    api_key="sk-***",)response = client.chat.completions.create(    model="z-ai/glm-5.3-flashx-legal",    messages=[{"role": "user", "content": "Hello"}],)print(response.choices[0].message.content)
import OpenAI from "openai";const client = new OpenAI({  baseURL: "https://www.realrelay.ai/v1",  apiKey: process.env.REALRELAY_API_KEY,});const response = await client.chat.completions.create({  model: "z-ai/glm-5.3-flashx-legal",  messages: [{ role: "user", content: "Hello" }],});console.log(response.choices[0].message.content);
curl https://www.realrelay.ai/v1/chat/completions \  -H "Authorization: Bearer $REALRELAY_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "z-ai/glm-5.3-flashx-legal",    "messages": [{ "role": "user", "content": "Hello" }]  }'

Prices and availability as published on Oct 22, 2026.

Capabilities

Requests may carry text, image and video parts, and every response is text. Reasoning, structured output and tool calling are supported, so a request can ask for a defined output format or declare functions for the model to call.

The context window holds 1M tokens, and output can extend to 128K tokens within a single request.

ReasoningStructured outputTool use
Input
TextImageVideo
Output
Text

What GLM-5.3-FlashX-Legal is

GLM-5.3-FlashX-Legal is a Z.ai model available through RealRelay's OpenAI-compatible endpoint under the model ID z-ai/glm-5.3-flashx-legal. It accepts text, image and video input and returns text.

The model has a 1M token context window and can return up to 128K tokens of output. Reasoning, structured output and tool calling are part of the model's declared capabilities.

Pricing per 1M tokens

Input is $0.37 per 1M tokens and output is $1.25 per 1M tokens. Cache reads are $0.075 per 1M tokens.

Requests are billed per token on RealRelay's OpenAI-compatible endpoint, so the price of a call follows the number of input and output tokens it uses.

Where GLM-5.3-FlashX-Legal fits

Because the input side accepts text, images and video, a single request can pair written instructions with media and receive a text answer.

Structured output helps when a response has to follow a defined format, and tool calling helps when the model should call functions declared in the request.

The 1M token context window suits long inputs, while the 128K token output limit covers lengthy single responses.

Frequently asked questions

What is GLM-5.3-FlashX-Legal?
It is a Z.ai model available on RealRelay under the model ID z-ai/glm-5.3-flashx-legal. It accepts text, image and video input and returns text.
What are the prices for GLM-5.3-FlashX-Legal?
Input is $0.37 per 1M tokens and output is $1.25 per 1M tokens. Cache reads are $0.075 per 1M tokens.
How large is the context window of GLM-5.3-FlashX-Legal?
The context window is 1M tokens, and the model can return up to 128K tokens of output.
What inputs and outputs does GLM-5.3-FlashX-Legal support?
The model accepts text, image and video input and produces text output.
Does GLM-5.3-FlashX-Legal support tool calling?
Yes. Tool calling, reasoning and structured output are supported, so requests can declare functions and ask for a defined output format.
How do I call GLM-5.3-FlashX-Legal?
Send a request to RealRelay's OpenAI-compatible endpoint with the model ID z-ai/glm-5.3-flashx-legal, using the input modalities you need and reading the text response.

More from Z.ai

All 30 Z.ai models