Back to models

Give GLM 5.3 everything it needs to code

Structure your task, repository context, success criteria, and execution boundaries before sending it to GLM 5.3.

A coding model template for GLM 5.3, Z.ai's open-weights model for agentic coding.

Recommended coding effort
Max
Required thinking mode
Enabled

Required coding values

Fields marked Required provide the minimum context for a reliable coding task.

Generated prompt and API request

Coding prompt template

# Coding task
[Describe the feature, bug, or refactor to complete]

## Technical stack
- Language: TypeScript
- Framework: Next.js

## Repository context
[Add relevant files, architecture notes, and existing behavior]

## Acceptance criteria
[List the tests and observable outcomes that define success]

## Constraints
[Add compatibility, security, performance, and scope boundaries]

Inspect the existing implementation, make the smallest complete change, run relevant checks, and summarize the result.

API request

POST
/v1/ula/chat/completions
{
  "model": "glm-5.3",
  "messages": [
    {
      "role": "system",
      "content": "You are a senior software engineer. Inspect context carefully, implement safely, and verify your work."
    },
    {
      "role": "user",
      "content": "# Coding task\n[Describe the feature, bug, or refactor to complete]\n\n## Technical stack\n- Language: TypeScript\n- Framework: Next.js\n\n## Repository context\n[Add relevant files, architecture notes, and existing behavior]\n\n## Acceptance criteria\n[List the tests and observable outcomes that define success]\n\n## Constraints\n[Add compatibility, security, performance, and scope boundaries]\n\nInspect the existing implementation, make the smallest complete change, run relevant checks, and summarize the result."
    }
  ],
  "thinking": {
    "type": "enabled"
  },
  "reasoning_effort": "max",
  "temperature": 1,
  "top_p": 0.95,
  "max_tokens": 8192,
  "stream": true
}