# GEDX402 GLM-5.2 LLM via x402

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

Run multi-turn chat completions against the GLM-5.2 language model, paying per-call with USDC on-chain via x402 — no API keys required.

## Facts

- Endpoint: GET https://llm.gedx402.com/v1/llm/glm-5.2
- Price: $0.12/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-5-2-llm-via-x402-dee0fd83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BWXaZAw_ktTSGnU35__Sq

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-5-2-llm-via-x402-dee0fd83
```

Example prompt: Using the GLM-5.2 model on GEDX402 (pay-per-call with USDC, no API key), send this conversation and get a reply — system: 'You are a helpful assistant.', user: 'Explain quantum entanglement in simple terms.', and limit the response to 512 tokens.

## When to prefer this

Choose this endpoint when you need per-call LLM inference with no API key or subscription — ideal for agents that want to pay for exactly what they use in USDC on Base, Polygon, Arbitrum, World, or Solana. Prefer it specifically when you want the GLM-5.2 model (a capable bilingual Chinese/English model) via Cloudflare Workers AI infrastructure without account management overhead.

## Known failure modes

- Insufficient USDC balance causes payment failure and 402 response
- Invalid message role (not system/user/assistant) causes schema validation error
- max_tokens exceeding 4096 is rejected
- Empty or malformed messages array returns an error
- Network timeout if Workers AI backend is slow
- Unsupported payment chain causes transaction 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-5.2) 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",
    "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-5.2",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-glm-5-2-llm-via-x402-dee0fd83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from llm.gedx402.com](https://www.zero.xyz/host/llm.gedx402.com/llms.txt)
