Introduction
GLM 5.3 API targets complex programming and tool-driven engineering work over a large text context. For complex software changes, GLM 5.3 exposes low / high / max with max as default; compare the returned findings before choosing a lower effort for repeated runs.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | GLM 5.3 complex software changes: messages, |
| Input context | 1,048,576 tokens |
| Maximum output | GLM 5.3 · 131,072 tokens (default 32,768) |
| Response | Stream the GLM 5.3 review with stream: true on /v1/chat/completions, collect chat.completion.chunk events and finish at data: [DONE]. |
| Settlement | For complex software changes with GLM 5.3, settlement uses measured input, cached input and output tokens, reconciling the initial hold against reported usage rather than charging a flat request fee. |
Key features & highlights
Post-trained for complex coding
Z.ai describes GLM 5.3 as an advance through post-training on the same base model as GLM 5.2, with an emphasis on complex coding and long-horizon agents. Provide a failing test, the affected call chain and the relevant invariants; ask for a proposed fix whose assumptions can be checked against the repository.
Check a repair against evidence
With GLM 5.3, connect incident logs to the implementation and separate a supported causal explanation from hypotheses that still need a test. For complex software changes, GLM 5.3 exposes low / high / max with max as default; compare the returned findings before choosing a lower effort for repeated runs.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | This GLM 5.3 endpoint accepts text for complex software changes; extract document text first because image, video, audio and file parts are outside its public input schema. at least 1 items · at most 256 items |
reasoning_effort | No | For complex software changes, GLM 5.3 exposes low / high / max with max as default; compare the returned findings before choosing a lower effort for repeated runs. |
stop | No | For GLM 5.3, stop accepts one string or a one-item array, with no default; a match ends generation without returning the delimiter and may occur during reasoning before a visibl… at least 1 characters · at least 1 items · at most 1 items |
max_tokens | No | Allocate up to 131,072 output tokens for complex software changes with GLM 5.3; the default is 32,768 and reasoning consumes this allowance too. |
seed | No | In GLM 5.3 repair comparisons, an integer seed keeps the random source comparable when changing one input; identical output is not guaranteed, there is no default and the rate d… |
temperature | No | For comparable complex software changes trials with GLM 5.3, adjust temperature within 0–1 (default 1) and verify the findings even at 0. |
top_p | No | When testing GLM 5.3 on complex software changes, |
tools | No | Expose at most 128 function definitions to GLM 5.3 for complex software changes; the application executes requested calls and returns their results in tool messages. at most 128 items |
parallel_tool_calls | No | For GLM 5.3 repair workflows, |
tool_choice | No | For complex software changes, control GLM 5.3 with |
response_format | No | When GLM 5.3 returns a report on complex software changes as JSON, specify the keys through |
Pricing
Input $1.05 / Output $3.30 per 1 million tokens
Use cases
Trace a failing test
Provide a failing test, the affected call chain and the relevant invariants; ask for a proposed fix whose assumptions can be checked against the repository.
Reconstruct an incident
With GLM 5.3, connect incident logs to the implementation and separate a supported causal explanation from hypotheses that still need a test.
Coordinate dependent tool calls
Expose at most 128 function definitions to GLM 5.3 for complex software changes; the application executes requested calls and returns their results in tool messages. For complex software changes, control GLM 5.3 with tool_choice set to auto, none, required or a named function object; approve consequential actions in your application.
Review an invariant
When GLM 5.3 returns a report on complex software changes as JSON, specify the keys through response_format and the instructions, then check types and required fields in your own code. Check the GLM 5.3 report against the supplied evidence before applying changes in complex software changes.
Prompt guide & pro tips
Trace a failing test
Provide a failing test, the affected call chain and the relevant invariants; ask for a proposed fix whose assumptions can be checked against the repository. Keep the GLM 5.3 conversation within 256 messages and place the engineering constraints before the material to be reviewed.
Ask for the reasoning, not only the verdict
POST https://api.spicyapi.ai/v1/chat/completions with {"model":"zai/glm-5.3","messages":[{"role":"system","content":"Review the GLM 5.3 repair proposal and return JSON with keys failures, evidence, checks; identify the invariant behind each proposed fix"},{"role":"user","content":"Failing test output, affected call chain and required invariants"}],"
reasoning_effort":"max","max_tokens":32000,"temperature":0}. Check the GLM 5.3 report against the supplied evidence before applying changes in complex software changes.Reconstruct an incident
With GLM 5.3, connect incident logs to the implementation and separate a supported causal explanation from hypotheses that still need a test. Check the GLM 5.3 report against the supplied evidence before applying changes in complex software changes.
GLM 5.3 API targets complex programming and tool-driven engineering work over a large text context.
Z.ai describes GLM 5.3 as an advance through post-training on the same base model as GLM 5.2, with an emphasis on complex coding and long-horizon agents.
Trace a failing test
Provide a failing test, the affected call chain and the relevant invariants; ask for a proposed fix whose assumptions can be checked against the repository.
For complex software changes, GLM 5.3 exposes low / high / max with max as default; compare the returned findings before choosing a lower effort for repeated runs.
Reconstruct an incident
With GLM 5.3, connect incident logs to the implementation and separate a supported causal explanation from hypotheses that still need a test.
When GLM 5.3 returns a report on complex software changes as JSON, specify the keys through response_format and the instructions, then check types and required fields in your own code.
For GLM 5.3 repair workflows, parallel_tool_calls defaults to true; choose false when each tool result must arrive before another call, without changing the token rate.
API
POST https://api.spicyapi.ai/v1/chat/completions with {"model":"zai/glm-5.3","messages":[{"role":"system","content":"Review the GLM 5.3 repair proposal and return JSON with keys failures, evidence, checks; identify the invariant behind each proposed fix"},{"role":"user","content":"Failing test output, affected call chain and required invariants"}],"reasoning_effort":"max","max_tokens":32000,"temperature":0}. Check the GLM 5.3 report against the supplied evidence before applying changes in complex software changes.
For GLM 5.3, the 1,048,576-token input allowance covers the project material, instructions and tool results already included in the conversation.
This GLM 5.3 endpoint accepts text for complex software changes; extract document text first because image, video, audio and file parts are outside its public input schema.
Allocate up to 131,072 output tokens for complex software changes with GLM 5.3; the default is 32,768 and reasoning consumes this allowance too.
Stream the GLM 5.3 review with stream: true on /v1/chat/completions, collect chat.completion.chunk events and finish at data: [DONE].
For complex software changes, GLM 5.3 rejects max_tokens above 131,072 and still requires application-side validation of generated JSON; provide a client timeout suitable for a synchronous reasoning request.
For GLM 5.3 work on complex software changes, you remain responsible for rights to submitted material, permitted use of the result and any necessary human review.
SpicyAPI adds no separate content filter to GLM 5.3, but model refusals remain possible during complex software changes; responsibility for material rights and use of the reply stays with you.
For complex software changes with GLM 5.3, settlement uses measured input, cached input and output tokens, reconciling the initial hold against reported usage rather than charging a flat request fee.
For GLM 5.3 work on complex software changes, you remain responsible for rights to submitted material, permitted use of the result and any necessary human review.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "zai/glm-5.3/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.







