> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM 5.3

> Zhipu's newest flagship — coding/agentic upgrade over GLM 5.2. ~1.3M context, open weights.

## Overview

Zhipu's newest flagship — coding/agentic upgrade over GLM 5.2. \~1.3M context, open weights.

## Specs

| Field | Value |
| - | - |
| Model ID | `glm-5.3` |
| Best for | Agentic coding, SWE tasks, long-horizon, 1.3M context |
| Context window | 1.31072M |
| Max output tokens | 131K |
| Input modalities | Text |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | Yes |
| Vision | No |
| Reasoning | Yes |
| Speed | Medium |
| Cost band | Premium |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$1.178 |
| Output | \$3.702 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="glm-5.3",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=frontier-open"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.