# GLM-4.7

> GLM-4.7 is Z.AI's flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while delivering more natural conversational experiences and superior front-end aesthetics.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `zhipu/glm-4.7`
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/zhipu/glm-4.7
- Released: 2025-12-29
- Context: 200K tokens
- Max output: 128K tokens
- Input: text; output: text
- Knowledge cutoff: 2025-04
- Capability score: 143 (as of 2026-11-10, see https://www.ohmygpt.com/rankings.md)
- Human preference rating (LMArena text): 1435

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.3212–$0.66 | per 1M tokens |
| Output | $1.2848–$2.42 | per 1M tokens |
| Cache read | $0.06424 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:zhipu/glm-4.7`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Zhipu AI (ChatGLM) | `chatglm:zhipu/glm-4.7` | China | $0.3212 | $1.2848 | no |
| Amazon Bedrock | `bedrock:zhipu/glm-4.7` | United States | $0.66 | $2.42 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `zhipu/glm-4.7` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `zhipu/glm-4.7` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `zhipu/glm-4.7` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/zhipu/glm-4.7:generateContent | `zhipu/glm-4.7` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zhipu/glm-4.7",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/zhipu/glm-4.7
