Felo API PlatformFelo API Platform
Back to models
Z.aimessages

GLM 5.3 FlashX Legal API

Z.ai's GLM 5.3 FlashX Legal is a speed-oriented, natively multimodal legal model with a context of approximately one million tokens and 128K output tokens.

GLM 5.3 FlashX Legal is a Z.ai model built for agentic legal intelligence, combining document understanding, legal reasoning, and task planning. It accepts text, image, video, and file input and returns text, with thinking mode always enabled. It supports streaming output, function calling, context caching, structured output such as JSON, and specialized MCP services for external legal data and Word document tools. Its context window is approximately one million tokens, with 128K output tokens.

The model targets legal work end to end: reviewing contracts at the clause level for risks and conflicts, extracting key information from contracts and litigation materials, checking consistency across multiple documents, identifying legal relationships and issues in dispute, analyzing evidence, preparing cases, and drafting legal documents. It also supports due diligence working papers, defense strategies, initial contract revisions, and full legal document delivery workflows, as well as vision-driven UI coding from screenshots, page images, website URLs, or screen recordings, financial research and analysis such as earnings analysis and valuation modeling, and generating parametric 3D models from part photographs or CAD blueprints.

Z.ai documents about 200 tokens per second for faster streamed replies. The architecture uses three times less attention compute and a 4.4 times smaller KV cache than GLM-5.3 at one million token context. Thinking mode cannot be turned off, so latency and cost always include the deliberation process. The GLM-5.3-Flash family has 320 billion total parameters and 18 billion active parameters; FlashX carries the official API ID glm-5.3-flashx. It is open-source under the MIT License, can run locally with dynamic GGUF quantizations, with a one-bit version running on a 100 gigabyte machine and a three-bit version fitting a 128 gigabyte Mac or NVIDIA DGX Spark.

Updated:

MODEL ID

glm-5.3-flashx-legal
Context
1.049M
Max output
131.072K
Recommended API
messages
Input
text / image / video
Output
text

Highlights

  • Natively multimodal text, image, video, and file input
  • Approximately one million token context window
  • 128K output tokens
  • About 200 tokens per second for streamed replies
  • MCP services for external legal data and Word tools
  • Open-source under the MIT License

Providers

1 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$0.37$1.25$0.075

What $10 buys

Input
27M tokens
Output
8M tokens

Estimated from current input and output prices, before discounts.

Benchmarks

  • Code Bench

    GLM-5.3's improvement over GLM-5.2 on Z.ai's in-house benchmark

    50%

Scores as published by the model provider.

Reasoning

Default effort
max
Enabled by default
Yes
Always enabled
Yes
Available effort levels
max / high / low

Quick Start

Drop-in code to call this model with Felo API Platform compatible APIs. Start in the Playground when you want to test prompts before writing code.

1

Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"
2

Make your first request

Use this model ID with the Felo API Platform endpoint. Optional request headers such as X-Request-Id can help troubleshooting.

glm-5.3-flashx-legal

This model is reasoning-capable. If your selected protocol and model route expose reasoning controls, preserve the returned reasoning metadata when continuing a conversation.

const response = await fetch("https://openapi.felo.ai/api/v1/messages", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FELO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "glm-5.3-flashx-legal",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Using third-party SDKs

Use compatible SDKs by setting baseURL to https://openapi.felo.ai/api/v1. Use the Anthropic-compatible base URL for Claude-style clients. https://openapi.felo.ai/api.

3

Enable streaming

Add stream: true to receive responses as server-sent events.

curl -N https://openapi.felo.ai/api/v1/messages \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "glm-5.3-flashx-legal",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": true
}'

Endpoint

Felo API Platform exposes compatible model-calling surfaces. Pick the surface your app or agent client already supports.

SurfaceMethodURL

Messages

Anthropic-compatible messages for Claude-style clients.

POST

https://openapi.felo.ai/api/v1/messages

Parameters

NameTypeDefaultDescription
modelstringglm-5.3-flashx-legalPublic model ID to call.
max_tokensinteger—Maximum generated tokens.
messagesarray—Conversation messages for Chat Completions.
toolsarray—Tool calling definitions following compatible schema.
top_k———
top_p———
reasoning———
temperaturenumber—Controls response variety when supported.
tool_choicestring or object—Controls whether a tool should be called.
response_formatobject—Request structured output when supported.
reasoning_effort———
include_reasoning———
structured_outputs———

Frequently asked questions

What is GLM 5.3 FlashX Legal?

GLM 5.3 FlashX Legal is a Z.ai model built for agentic legal intelligence, combining document understanding, legal reasoning, and task planning. It accepts text, image, video, and file input and returns text, with thinking mode always enabled. It supports streaming output, function calling, context caching, structured output such as JSON, and specialized MCP services for external legal data and Word document tools. Its context window is approximately one million tokens, with 128K output tokens. The model targets legal work end to end: reviewing contracts at the clause level for risks and conflicts, extracting key information from contracts and litigation materials, checking consistency across multiple documents, identifying legal relationships and issues in dispute, analyzing evidence, preparing cases, and drafting legal documents. It also supports due diligence working papers, defense strategies, initial contract revisions, and full legal document delivery workflows, as well as vision-driven UI coding from screenshots, page images, website URLs, or screen recordings, financial research and analysis such as earnings analysis and valuation modeling, and generating parametric 3D models from part photographs or CAD blueprints. Z.ai documents about 200 tokens per second for faster streamed replies. The architecture uses three times less attention compute and a 4.4 times smaller KV cache than GLM-5.3 at one million token context. Thinking mode cannot be turned off, so latency and cost always include the deliberation process. The GLM-5.3-Flash family has 320 billion total parameters and 18 billion active parameters; FlashX carries the official API ID glm-5.3-flashx. It is open-source under the MIT License, can run locally with dynamic GGUF quantizations, with a one-bit version running on a 100 gigabyte machine and a three-bit version fitting a 128 gigabyte Mac or NVIDIA DGX Spark.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

What input modalities does GLM 5.3 FlashX Legal support?

It natively accepts text, image, video, and file input and produces text output.

How large are its context and output limits?

The context window is approximately one million tokens, and it supports up to 128K output tokens.

What legal tasks is it designed for?

It is built for agentic legal intelligence, covering contract review at the clause level, evidence analysis, case preparation, due diligence working papers, defense strategies, initial contract revisions, and full legal document delivery workflows.

Can thinking mode be disabled?

No. Thinking mode is always enabled and cannot be turned off, so latency and cost always include the deliberation process.

How does FlashX relate to the standard Flash model?

FlashX is the speed-oriented twin of the standard Flash model; both share one capability band. GLM-5.3 is the escalation path when Flash-band quality fails on hard, long-horizon text work.

Can it be self-hosted?

Yes. It is open-source under the MIT License and can run locally with dynamic GGUF quantizations: a one-bit version runs on a 100 gigabyte machine, and a three-bit version fits a 128 gigabyte Mac or NVIDIA DGX Spark.

Related models