# Model Access Gateway – GLM-5.3 Chat Completions

> Model Access Gateway – GLM-5.3 Chat Completions is a paid API for AI agents from agent402-arb.rosariovitale0096.workers.dev, paid per call via x402, $0.0014/call, status unknown (last checked 2026-10-15).

Provides OpenAI-compatible chat completions using the GLM-5.3 model, billed per request in USDC on Base via x402 with no account or API key required.

## Facts

- Endpoint: POST https://agent402-arb.rosariovitale0096.workers.dev/llm/glm-5.3?utm_source=zero.xyz
- Price: $0.0014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-access-gateway-glm-5-3-chat-completions-eaf80587
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jvGmrCUxQU5B63qqBfmCN

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 model-access-gateway-glm-5-3-chat-completions-eaf80587 -d '<json body>'
```

Example prompt: Send this conversation to the GLM-5.3 model and get a response: system prompt 'You are a helpful assistant', user message 'Summarize the key differences between TCP and UDP in two sentences.' Pay per request in USDC.

## When to prefer this

Choose this endpoint when you need GLM-5.3 specifically (ZhipuAI's model), want an OpenAI-compatible API with no account or API key setup, and prefer per-request USDC micropayment billing on Base. It is ideal for anonymous, one-off inference calls or agents that manage their own crypto wallets via x402.

## Known failure modes

- Payment failure: x402 payment not completed or insufficient USDC balance, returns 402 Payment Required
- Invalid request body: missing required 'messages' field or malformed JSON returns 400 Bad Request
- Model unavailable: GLM-5.3 backend unreachable returns 503 or timeout
- Rate limit exceeded on the Cloudflare Worker returns 429
- Context length exceeded: prompt too long for GLM-5.3 context window

## How this service works

GLM-5.3 API (zai/glm-5.3): LLM inference via OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account. Suited for AI agents and scripts that need GLM-5.3 on demand. When listed, this request cost 30% less than the same request on BlockRun. Streaming and function calling supported. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.

## Output

Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply message, the model name (zai/glm-5.3), token usage breakdown (prompt, completion, total tokens), finish reason (e.g. 'stop'), and a unique completion ID and creation timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Optional: fixed by the route (zai/glm-5.3)"
  },
  "tools": {
   "type": "array"
  },
  "stream": {
   "type": "boolean",
   "description": "true: server-sent events after payment"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool",
       "developer"
      ],
      "type": "string"
     },
     "content": {
      "type": [
       "string",
       "array",
       "null"
      ]
     }
    }
   },
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 16384,
   "minimum": 1,
   "description": "Optional, default 4096"
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  },
  "response_format": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-7f3c2a91",
  "model": "zai/glm-5.3",
  "usage": {
   "total_tokens": 10,
   "prompt_tokens": 9,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "OK"
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1791979200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/model-access-gateway-glm-5-3-chat-completions-eaf80587/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402-arb.rosariovitale0096.workers.dev](https://www.zero.xyz/host/agent402-arb.rosariovitale0096.workers.dev/llms.txt)
