# GLM-4.7 API, paid in crypto

> GLM-4.7 by API at $0.57 / $2.09 per 1M tokens, 5% below the median host price. MIT licence, OpenAI-compatible, paid in crypto, no KYC.

- URL: https://llmwithcrypto.com/models/glm-4-7/
- Last updated: 2026-10-23
- Publisher: LLMwithCrypto (https://llmwithcrypto.com)

Zhipu’s GLM-4.7, MIT-licensed, on an OpenAI-compatible endpoint. Billed per token from a crypto balance at 5% below the median of three hosts, Z.ai’s own API included. No KYC — no ID, no selfie, no documents.

**Quick answer — How do I use the GLM-4.7 API with crypto?**

Call `glm-4.7` on **LLMwithCrypto**’s OpenAI-compatible endpoint. As of 23 October 2026 it costs $0.57 per million input tokens and $2.09 per million output tokens, 5% below the median of 3 hosts, Z.ai’s own API among them. The context is 200K tokens. Credit is prepaid in crypto, with no KYC.

## How does our price compare with other hosts?

List prices per million tokens on each host's own pricing page, read on 23 October 2026; promotions are left out. Ours is the median of these prices minus 5%; every host is in the [price index](https://llmwithcrypto.com/data/open-model-api-price-index-2026/).

| Host | Input / 1M | Output / 1M |
| --- | --- | --- |
| **LLMwithCrypto** | $0.57 | $2.09 |
| Z.ai API | $0.60 | $2.20 |
| Novita AI | $0.60 | $2.20 |
| DeepInfra | $0.40 | $1.75 |

*Prices checked on October 23, 2026.*

## How do I call GLM-4.7?

With the OpenAI SDK, as for any OpenAI-compatible API: set the base URL to `https://llmwithcrypto.com/api/v1`, read your key from `LLMWITHCRYPTO_API_KEY`, and pass `glm-4.7` as the model. Pass your API key as a Bearer token in the Authorization header, as the OpenAI SDK does.

*glm_4_7.py*

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://llmwithcrypto.com/api/v1",
    api_key=os.environ["LLMWITHCRYPTO_API_KEY"],
)

resp = client.chat.completions.create(
    model="glm-4.7",
    messages=[{"role": "user", "content": "Write a Python function that retries an HTTP call with exponential backoff, with tests."}],
)
print(resp.choices[0].message.content)
print(resp.usage)  # prompt_tokens and completion_tokens: what the call costs

```

## What is GLM-4.7 good for?

GLM-4.7 is the latest release of Zhipu’s GLM-4 series, published under the MIT licence, with a context of about 200K tokens. Z.ai, Novita and DeepInfra listed it on 23 October 2026; several larger hosts list only the newer GLM-5.x models.

We position it for coding and agents. For a second opinion on the same task, [DeepSeek V4 Pro](https://llmwithcrypto.com/models/deepseek-v4-pro/) runs on the same key.

## What licence does GLM-4.7 come with?

MIT, as published by Zhipu: hosting GLM-4.7 as a paid API is allowed with the copyright notice kept. Each model keeps its own licence and use policy (for example Meta’s Llama Acceptable Use Policy and the “Built with Llama” notice); using a model through us means accepting them.

## GLM-4.7 questions

### Why GLM-4.7 and not GLM-5?

We serve models whose licences we have read and whose prices we can follow across hosts. GLM-4.7 is MIT-licensed and priced by three hosts; newer GLM releases are not on our list yet.

### Is it cheaper than Z.ai’s own API?

Yes, by about 5%: Z.ai listed GLM-4.7 at $0.60 input and $2.20 output per million tokens on 23 October 2026; ours is $0.57 and $2.09.

### Are my prompts kept?

We do not store your prompts or the model’s answers: once a response is sent, its text is gone. Each call leaves one log line with the time, the account, the model and the token counts, deleted after 30 days.

## Sources

1. [Z.ai API pricing](https://docs.z.ai/guides/overview/pricing) — Z.ai API (read 2026-10-23)
2. [Novita AI pricing](https://novita.ai/pricing) — Novita AI (read 2026-10-23)
3. [DeepInfra pricing](https://deepinfra.com/zai-org/GLM-4.7) — DeepInfra (read 2026-10-23)

---

LLMwithCrypto: LLMwithCrypto is an OpenAI-compatible LLM API for open-weight models — DeepSeek V4 Pro, DeepSeek V4.1 Flash, DeepSeek R1, Qwen3.5 397B A17B, Qwen3 235B A22B Instruct, gpt-oss-120b, gpt-oss-20b, GLM-4.7, Llama 3.3 70B Instruct, Gemma 4 31B, Mistral Large 3, Mistral Small 4 — paid per token from a prepaid crypto balance, at 5% below the median price of the public hosts. No KYC: no ID, no selfie, no documents. Prompts and outputs are not stored.
