# x402donghang Starter Chat — GLM-5.2 via x402

> x402donghang Starter Chat — GLM-5.2 via x402 is a paid API for AI agents from x402donghang.duckdns.org, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Send a chat message to GLM-5.2 (OpenAI-compatible) and receive a completion, billed per-call in USDC via x402 with no signup required.

## Facts

- Endpoint: POST https://x402donghang.duckdns.org/x402/v1/starter
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402donghang-starter-chat-glm-5-2-via-x402-0977c842
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_53at9su-HYBdShHXzvVxN

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 x402donghang-starter-chat-glm-5-2-via-x402-0977c842 -d '<json body>'
```

Example prompt: Send the message 'Explain quantum entanglement in two sentences' to GLM-5.2, streaming off, max 200 tokens, and pay per call with USDC — no account needed.

## When to prefer this

Choose this endpoint when you need a cheap, no-signup OpenAI-compatible chat completion API billed in USDC micropayments via x402. It is ideal for agent pipelines that want pay-per-call economics without maintaining API keys or subscriptions, and specifically when GLM-5.2 (Zhipu AI) inference quality is acceptable for the task.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 requiring payment
- Invalid model name (must be 'glm-5.2') — returns model not found error
- Malformed messages array or missing required role/content fields — returns 400 validation error
- Token limit exceeded — response may be truncated or return an error
- Service unavailable due to underlying model provider downtime

## How this service works

Fresh crypto narrative research with market context and verifiable source URLs. Free BTC sample; custom radar $0.02/call via x402 USDC.

## Output

Returns an OpenAI-compatible chat completion JSON object containing the model name, a choices array with the assistant's message content and finish_reason (e.g. 'stop'), and a completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Use \"glm-5.2\""
  },
  "stream": {
   "type": "boolean"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-x402",
  "model": "glm-5.2",
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402donghang-starter-chat-glm-5-2-via-x402-0977c842/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402donghang.duckdns.org](https://www.zero.xyz/host/x402donghang.duckdns.org/llms.txt)
