GLM‑5.3‑Flash
An open language model that picks a coding agent's tools and fills in their arguments. zai-org/GLM-5.3-Flash
- Accuracy
MMLU-Pro, answers right · not measured
- Time per request
Not timed one request at a time
- Serverless price
$0.15 in · $0.50 out
per 1M tokens
-
More accurate tool calls than GPT‑6.1 Sol, 90% cheaper
91.6%
Tool calls right · 600 calls
See the comparison on Coding agents$0.0634
Cost per 1,000 tool calls
Call it
import jsonfrom sie_sdk import SIEClientclient = SIEClient(api_key="API keysk-sie-…")tools = json.loads("""[ { "type": "function", "function": { "name": "read_file", "description": "Read a file in the repository and return its contents.", "parameters": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file, relative to the repository root" } }, "required": [ "filePath" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "edit", "description": "Replace an exact string in a file with new text.", "parameters": { "type": "object", "properties": { "filePath": { "type": "string", "description": "Path of the file, relative to the repository root" }, "oldString": { "type": "string", "description": "The exact text to replace" }, "newString": { "type": "string", "description": "The text to put in its place" }, "replaceAll": { "type": "boolean", "description": "Replace every occurrence (default false)" } }, "required": [ "filePath", "oldString", "newString" ], "additionalProperties": false } } }]""")messages = [ {"role": "system", "content": "instructionYou are a coding agent working in a Python repository. Change files only with the tools you are given."}, {"role": "user", "content": "textinvoice_totals/amounts.py:
```python
"""Parse the amount column of an exported invoice into Decimal values."""
from···Fix parse_amount so a credit written in parentheses parses as a negative amount. Do not change the tests."},]result = client.chat_completions( "modelzai-org/GLM-5.3-Flash:relay", messages, max_completion_tokens=max tokens4096, extra_body={"temperature":0,"top_p":1}, tools=tools,)message = result["choices"][0]["message"]if message.get("content"): print(message["content"])for call in message.get("tool_calls") or []: args = call["function"]["arguments"] try: args = json.loads(args or "{}") except json.JSONDecodeError: pass print(call["function"]["name"], args)import { SIEClient, type ToolSpec } from '@superlinked/sie-sdk';
const client = new SIEClient(undefined, { apiKey: 'sk-sie-…' });
const tools: ToolSpec[] = [
{
"type": "function",
"function": {
"name": "read_file",
"description": "Read a file in the repository and return its contents.",
"parameters": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "Path of the file, relative to the repository root"
}
},
"required": [
"filePath"
],
"additionalProperties": false
}
}
},
{
"type": "function",
"function": {
"name": "edit",
"description": "Replace an exact string in a file with new text.",
"parameters": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "Path of the file, relative to the repository root"
},
"oldString": {
"type": "string",
"description": "The exact text to replace"
},
"newString": {
"type": "string",
"description": "The text to put in its place"
},
"replaceAll": {
"type": "boolean",
"description": "Replace every occurrence (default false)"
}
},
"required": [
"filePath",
"oldString",
"newString"
],
"additionalProperties": false
}
}
}
];
const result = await client.chatCompletions({
model: 'zai-org/GLM-5.3-Flash:relay',
messages: [
{ role: 'system', content: "You are a coding agent working in a Python repository. Change files only with the tools you are given." },
{ role: 'user', content: "invoice_totals/amounts.py:\n\n```python\n\"\"\"Parse the amount column of an exported invoice into Decimal···Fix parse_amount so a credit written in parentheses parses as a negative amount. Do not change the tests." },
],
max_completion_tokens: 4096,
temperature: 0,
top_p: 1,
tools,
});
const message = result.choices[0]?.message;
if (message?.content) console.log(message.content);
for (const call of message?.tool_calls ?? []) {
let args: unknown = call.function.arguments;
try {
args = JSON.parse(call.function.arguments || '{}');
} catch {}
console.log(call.function.name, args);
}curl https://api.superlinked.com/v1/chat/completions \
-H "Authorization: Bearer sk-sie-…" \
-H "Content-Type: application/json" \
-d "{\"model\":\"zai-org/GLM-5.3-Flash:relay\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a coding agent working in a Python repository. Change files only with the tools you are given.\"},{\"role\":\"user\",\"content\":\"invoice_totals/amounts.py:\\n\\n\`\`\`python\\n\\\"\\\"\\\"Parse the amount column of an exported invoice into Decimal···Fix parse_amount so a credit written in parentheses parses as a negative amount. Do not change the tests.\"}],\"max_completion_tokens\":4096,\"temperature\":0,\"top_p\":1,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"read_file\",\"description\":\"Read a file in the repository and return its contents.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"filePath\":{\"type\":\"string\",\"description\":\"Path of the file, relative to the repository root\"}},\"required\":[\"filePath\"],\"additionalProperties\":false}}},{\"type\":\"function\",\"function\":{\"name\":\"edit\",\"description\":\"Replace an exact string in a file with new text.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"filePath\":{\"type\":\"string\",\"description\":\"Path of the file, relative to the repository root\"},\"oldString\":{\"type\":\"string\",\"description\":\"The exact text to replace\"},\"newString\":{\"type\":\"string\",\"description\":\"The text to put in its place\"},\"replaceAll\":{\"type\":\"boolean\",\"description\":\"Replace every occurrence (default false)\"}},\"required\":[\"filePath\",\"oldString\",\"newString\"],\"additionalProperties\":false}}}]}"Build the "Coding" capability into my app using the Superlinked Inference Engine (SIE).
Context
- SIE is an OpenAI-style inference API. Python SDK: `from sie_sdk import SIEClient`; TypeScript: `@superlinked/sie-sdk`.
- Base URL: https://api.superlinked.com (or my regional endpoint). Auth: Bearer key from env `SIE_API_KEY` (never hard-code it).
- Model: zai-org/GLM-5.3-Flash:relay (OpenAI-compatible endpoint: /v1/chat/completions). Keep the model id configurable.
Task
- Input: a source file and a request to change it, plus the coding agent's tools.
- Behaviour: return the tool calls the model makes to change the file: each call's function name and its parsed arguments
- Send one POST /v1/chat/completions request (SDK: chat_completions / chatCompletions) with an optional system message for instructions, the user's text as the user message, and max_completion_tokens 4096, temperature 0, top_p 1. Send the tools below unchanged as tools; send no tool_choice. Read any reply text from choices[0].message.content and each tool call from choices[0].message.tool_calls: its function.name, and its function.arguments, a JSON string to parse. Tools, sent as given: [{"type":"function","function":{"name":"read_file","description":"Read a file in the repository and return its contents.","parameters":{"type":"object","properties":{"filePath":{"type":"string","description":"Path of the file, relative to the repository root"}},"required":["filePath"],"additionalProperties":false}}},{"type":"function","function":{"name":"edit","description":"Replace an exact string in a file with new text.","parameters":{"type":"object","properties":{"filePath":{"type":"string","description":"Path of the file, relative to the repository root"},"oldString":{"type":"string","description":"The exact text to replace"},"newString":{"type":"string","description":"The text to put in its place"},"replaceAll":{"type":"boolean","description":"Replace every occurrence (default false)"}},"required":["filePath","oldString","newString"],"additionalProperties":false}}}]
Deliverables
- A typed client wrapper, an application-level function for this task, error handling for timeouts/empty input, and unit tests with a stubbed client.
- Wire it into my existing stack (ask me which framework if unclear) and add a short usage example. Edit the code and run it live Sign up to run this example.
Get started no credit card required
Output
- edit
{ "filePath": "invoice_totals/amounts.py", "newString": " cleaned = text.strip().replace(\"$\", \"\").replace(\",\", \"\")\n if cleaned.startswith(\"(\") and cleaned.endswith(\")\"):\n cleaned = \"-\" + cleaned[1:-1]\n return Decimal(cleaned)", "oldString": " cleaned = text.strip().replace(\"$\", \"\").replace(\",\", \"\")\n return Decimal(cleaned)" }
Next to the other language models
| Model | MMLU-Pro, answers right | Time per request | Serverless price | Size |
|---|---|---|---|---|
| GLM-5.3-Flash zai-org | Not measured | Not timed | $0.15 in · $0.50 out per 1M tokens | 321.3B |
| Qwen3.8 27B Qwen | Not measured | 0.74 s per complete reply | $0.25 in · $2.75 out per 1M tokens | 27.8B |
| Gemma 4 31B google | Not measured | Not timed | $0.45 in · $1.50 out per 1M tokens | 31.3B |
| Qwen3.5 4B Qwen | 59.3% | Not timed | $0.305 in · $1.53 out per 1M tokens | 4.7B |
| Qwen3 4B Instruct 2507 Qwen | 53.3% | Not timed | Run in your cloud | 4.0B |
Facts
- Size
- 321.3B parameters
- License
- MIT
- Reads
- Text, up to 131,072 tokens on Serverless
- Writes
- Up to 32,768 tokens on Serverless
- Endpoint
-
generate
Evaluation
- Accuracy
- Run on SIE against the public dataset named in each figure
- Time
- SIE timed on a GPU server with the client alongside, one request at a time
- Prices
- Serverless list prices
- Sources
- Task page runs and their inputs
Run GLM‑5.3‑Flash on Serverless or in your own cloud
SIE Serverless
We host the models; you call one API.
- No idle GPUs, pay for what you use
- Fits your stack: SDK, API, CLI, MCP
- Self-host the same open-source engine
- SOC 2 Type 2, US or EU data residency
- Create an account to try Serverless
SIE Cluster
Kubernetes in your own cloud, backed by our engineers.
- Terraform modules for your cloud
- Apache-2.0, same engine as Serverless
- GPU workers scale to zero between jobs
- Separate worker pools for each tenant
Agent prompt
Deploy SIE to our AWS account with the superlinked/sie/aws Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Google Cloud project with the superlinked/sie/google Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Azure subscription with the superlinked/sie/azure Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Alibaba Cloud account with the superlinked/sie/alicloud Terraform module. Docs: superlinked.com/docs/deployment.