# GEDX402 GLM-4.7-Flash LLM API

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

Runs conversational inference on GLM-4.7-Flash via x402 pay-per-call with USDC — no API key required

## Facts

- Endpoint: GET https://chat.gedx402.com/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-api-1b146d35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gq3qpJjFnIr2M-Y--THHo

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-api-1b146d35
```

Example prompt: Using the GLM-4.7-Flash model, send this conversation — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in two sentences' — and give me up to 256 tokens in the reply, paying with USDC on Base.

## When to prefer this

Choose this endpoint when you need pay-per-call LLM inference with no API key or subscription, want to pay with USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol, and specifically want the GLM-4.7-Flash model (a fast, capable chat model from Zhipu AI hosted on Cloudflare Workers AI).

## Known failure modes

- Insufficient USDC balance or payment failure — HTTP 402 with payment required details
- Invalid message format (missing role or content fields) — schema validation error
- max_tokens out of range (must be 1–4096) — request rejected
- Network timeout on Cloudflare Workers edge — retryable error
- Unsupported blockchain network specified for payment — payment rejected

## How this service works

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

## Output

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

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string",
      "description": "Speaker role for this turn."
     },
     "content": {
      "type": "string",
      "description": "Message text for this turn."
     }
    }
   },
   "description": "Conversation turns in order (system, user, assistant)."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1,
   "description": "Maximum tokens to generate in the assistant reply."
  }
 }
}
```

## 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-api-1b146d35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.gedx402.com](https://www.zero.xyz/host/chat.gedx402.com/llms.txt)
