# GEDX402 GLM-4.7-Flash LLM Chat (x402)

> GEDX402 GLM-4.7-Flash LLM Chat (x402) is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Runs a GLM-4.7-Flash language model chat completion, billed per-call in USDC via the x402 payment protocol — no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/llm/glm-4.7-flash
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-glm-4-7-flash-llm-chat-x402-32e64e41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SJfZTUXVv-Y8Yxh7mpJ6h

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gedx402-glm-4-7-flash-llm-chat-x402-32e64e41
```

Example prompt: Send this conversation to the GLM-4.7-Flash model and get a reply — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in two sentences' — limit the response to 256 tokens, and pay with USDC on Base.

## When to prefer this

Choose this endpoint when you need a no-signup, pay-per-call LLM chat completion using USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol, specifically with the GLM-4.7-Flash model (a capable, fast Chinese-origin LLM). Prefer it over API-key-gated services when operating in crypto-native agent workflows or when you want to avoid account registration.

## Known failure modes

- Payment rejected or insufficient USDC balance — 402 Payment Required with payment instructions
- Invalid message format or missing required role/content fields — 400 Bad Request
- max_tokens out of range (must be 1–4096) — 400 validation error
- Model inference timeout or Workers AI backend error — 500 or 503
- Unsupported blockchain network specified for payment — payment failure

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing the model identifier (@cf/zai-org/glm-4.7-flash) and the assistant's generated text response to the provided conversation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "max_tokens": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/zai-org/glm-4.7-flash",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-glm-4-7-flash-llm-chat-x402-32e64e41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-chat.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-chat.jvalamis.workers.dev/llms.txt)
