# GLM-5.2 LLM via x402 (No API Key, USDC Payment)

> GLM-5.2 LLM via x402 (No API Key, USDC Payment) is a paid API for AI agents from ged-x402-llm.jvalamis.workers.dev, paid per call via x402, $0.12/call, status unknown (last checked 2026-09-13).

Runs inference on the GLM-5.2 language model hosted on Cloudflare Workers AI, billed per-call in USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://ged-x402-llm.jvalamis.workers.dev/v1/llm/glm-5.2
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glm-5-2-llm-via-x402-no-api-key-usdc-payment-ca90cd6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VlEmVr3d-eYwxDhISQcqQ

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 glm-5-2-llm-via-x402-no-api-key-usdc-payment-ca90cd6c
```

Example prompt: Without using any API key, ask the GLM-5.2 model this question for me — paying in USDC on Base — and limit the reply to 200 tokens: 'Explain the difference between proof-of-work and proof-of-stake in simple terms.'

## When to prefer this

Choose this endpoint when you need GLM-5.2 specifically (a capable Chinese-developed bilingual model), want to avoid API key registration entirely, and are comfortable paying $0.12 USDC per call via the x402 protocol on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that manage crypto wallets and need stateless, credential-free LLM access.

## Known failure modes

- Payment not received or x402 handshake fails — endpoint returns HTTP 402 requiring USDC payment
- Unsupported blockchain network provided — payment rejected
- max_tokens exceeds 4096 — request rejected with validation error
- Messages array missing required role or content fields — 400 bad request
- Model overloaded or Cloudflare Workers timeout — 503 or 524 error
- Insufficient USDC balance in paying wallet — transaction fails before inference runs

## 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 a 'response' string with the assistant's generated text reply, up to the requested max_tokens.

## 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-5.2",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glm-5-2-llm-via-x402-no-api-key-usdc-payment-ca90cd6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-llm.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-llm.jvalamis.workers.dev/llms.txt)
