Cheaper Inference
Cheaper Inference
Model record / Z.ai
glm-5.3-flashx-legal is available for text generation from Z.ai. Its reported context window is 1,000,000 tokens, with up to 131,072 output tokens. Reported inputs: image, text. The served catalog lists image input, streaming.
Ready when you are
Marketplace pricing, capped at list, optimized further.
POST /v1/chat/completions
curl https://api.cheaperinference.com/v1/chat/completions \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3-flashx-legal", "messages": [ { "role": "user", "content": "Reply with the single word OK." } ] }'POST /v1/responses
curl https://api.cheaperinference.com/v1/responses \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": [ { "role": "user", "content": "Reply with the single word OK." } ], "model": "glm-5.3-flashx-legal", "store": false }'POST /v1/messages
curl https://api.cheaperinference.com/v1/messages \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3-flashx-legal", "messages": [ { "role": "user", "content": "Reply with the single word OK." } ], "max_tokens": 1024 }'Capability source · checked
$0.78078 estimated at displayed rates
1,000,000 ÷ 1,000,000 × $0.42328 + 250,000 ÷ 1,000,000 × $1.43
Uses uncached input at the displayed standard rates, with no extra modalities or tools. Billed output includes any charged reasoning tokens. Actual token counts, price tiers, and marketplace prices can change the total.
Price quote effective .
Python: pip install openai · Node.js: npm install openai. Set CHEAPER_INFERENCE_API_KEY on your server.
import osfrom openai import OpenAIclient = OpenAI( api_key=os.environ["CHEAPER_INFERENCE_API_KEY"], base_url="https://api.cheaperinference.com/v1",)request = { "model": "glm-5.3-flashx-legal", "messages": [ { "role": "user", "content": "Reply with the single word OK.", }, ],}response = client.chat.completions.create(**request)print(response.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({ apiKey: process.env.CHEAPER_INFERENCE_API_KEY, baseURL: "https://api.cheaperinference.com/v1",});const response = await client.chat.completions.create({ "model": "glm-5.3-flashx-legal", "messages": [ { "role": "user", "content": "Reply with the single word OK." } ]});console.log(response.choices[0].message.content);For other supported endpoints and their exact parameters, use the request samples and parameter reference on this page. Read the API integration guide.
| Model | Current pricing | Context limit | Image input listed |
|---|---|---|---|
| glm-5.3-flashx-legal (this model)Z.ai | $0.42328 input / $1.43 output per 1M tokens | 1,000,000 tokens | Yes |
| glm-5.3-flashxZ.ai | $0.308283 input / $1.041496 output per 1M tokens | 1,048,576 tokens | Yes |
| glm-5.3-flashZ.ai | $0.06 input / $0.20 output per 1M tokens | 1,048,576 tokens | Yes |
| glm-5v-turbo |
POST /v1/chat/completions
| Field | Values |
|---|---|
| reasoning.exclude | |
| max_tokens | |
| reasoning | effort: low, high, max |
| stop | |
| temperature | |
| tool_choice | |
| tools |
POST /v1/messages
| Field | Values |
|---|---|
| max_tokens | |
| thinking | type: enabled with budget_tokens; output_config.effort: low, high, max |
| stop_sequences | |
| temperature | |
| tool_choice | |
| tools |
POST /v1/responses
| Field | Values |
|---|---|
| max_output_tokens | |
| reasoning | effort: low, high, max |
| temperature | |
| tool_choice | |
| tools |
See how much this model saves and when its recorded price has been lowest.
Savings are visible now, but a best-time recommendation needs at least 12 observations across 6 different hours.
Average saved
0.0%
Cheapest time
Collecting data
Hourly coverage
4/24
Signal quality
Early
Hover a bar for savings per token and observation counts.
Source buckets are UTC; labels are converted to UTC.
Last 24 hours
#214
of 332 ranked models
Last 7 days
#346
of 392 ranked models
Last 30 days
#363
of 403 ranked models
| $1.02 input / $3.40 output per 1M tokens |
| 200,000 tokens |
| Yes |