# GLM-4.7 API on Opennan

> GLM-4.7 API on Opennan: $0.52 in / $2.20 out per 1M tokens.

- Maker: Z.ai
- Category: Text
- Model id: `glm-4.7`
- Endpoint: POST https://api.opennan.com/v1/chat/completions
- MCP: https://api.opennan.com/v1/mcp (chat)
- Page: https://opennan.com/models/glm-4.7

## GLM-4.7 API prices

| Tier | Opennan | Official | Below official |
| --- | --- | --- | --- |
| Input, per 1M tokens | $0.52 | $0.60 | 13% below |
| Cached input, per 1M tokens | $0.104 | Below the maker's price | - |
| Output, per 1M tokens | $2.20 | Same as the maker's price | - |

Official is the model maker's own list price for the same tier. Where the maker publishes a price, we never sell above it, most tiers at least 10% below.

## Call GLM-4.7 from code

```bash
curl -N https://api.opennan.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENNAN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-4.7","messages":[{"role":"user","content":"Write a haiku about a city at night."}],"max_tokens":1024,"temperature":1,"top_p":1,"stream":true,"stream_options":{"include_usage":true}}'
```

## GLM-4.7 API questions

### How much does the GLM-4.7 API cost?

GLM-4.7 API on Opennan: $0.52 in / $2.20 out per 1M tokens. Prices are in US dollars per call, shown before you run, and every tier is in the price table.

### What inputs does GLM-4.7 take?

Text prompt.

### Which options can a call set?

Context window: 202,752 tokens. Up to 131,072 output tokens per reply.

### How is it billed?

Per token: input, cached input and output tokens are priced per 1M tokens and billed separately.

### What happens if a generation fails?

A request that fails is not charged. You pay only for the tokens used.

### How do I call GLM-4.7 from an AI agent?

Add the MCP server https://api.opennan.com/v1/mcp with your API key as a bearer token, then call the chat tool with model "glm-4.7". Or send a POST to https://api.opennan.com/v1/chat/completions.

## Similar models

- [DeepSeek V3.2](https://opennan.com/models/deepseek-v3.2): from $0.338 per 1M input tokens
- [Gemma 4 31B](https://opennan.com/models/gemma-4-31b): from $0.26 per 1M input tokens
- [Nemotron 3.5 Super VL](https://opennan.com/models/nemotron-3.5-super-vl): from $0.195 per 1M input tokens
- [Qwen3.8 27B](https://opennan.com/models/qwen3.8-27b): from $0.195 per 1M input tokens
- [Llama 3.3 70B](https://opennan.com/models/llama-3.3-70b): from $0.13 per 1M input tokens
- [Llama 4 Scout](https://opennan.com/models/llama-4-scout): from $0.13 per 1M input tokens
