# Model Access Gateway – GLM-5.3 Chat Completions (x402, USDC)

> Model Access Gateway – GLM-5.3 Chat Completions (x402, USDC) is a paid API for AI agents from modelaccessgateway.com, paid per call via x402, $0.0014/call, status unknown (last checked 2026-10-16).

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

## Facts

- Endpoint: POST https://modelaccessgateway.com/llm/glm-5.3?utm_source=zero.xyz
- Price: $0.0014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-access-gateway-glm-5-3-chat-completions-x402-usdc-78bba063
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dg3cCcWbCFNJtJEeULDR0

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-x402-usdc-78bba063 -d '<json body>'
```

Example prompt: Using the GLM-5.3 model on Model Access Gateway — no API key needed, just pay in USDC — send it these messages: system: 'You are a concise assistant', user: 'Summarize quantum entanglement in two sentences.' Use up to 300 tokens and a temperature of 0.7.

## When to prefer this

Choose this endpoint when you need GLM-5.3 (Zhipu AI) specifically — particularly for Mandarin-centric tasks or when you want a Chinese frontier model — and want to pay per call in USDC on Base without creating an account or managing API keys. It is ideal for autonomous agents that need keyless, trustless, micropayment-gated LLM inference with automatic refund guarantees on failure.

## Known failure modes

- Model inference failure triggers automatic USDC refund
- Malformed messages array or missing required 'role' field returns 400
- max_tokens exceeds 16384 ceiling returns validation error
- Payment not completed via x402 results in 402 response with payment details
- Streaming may be interrupted if connection drops mid-response
- temperature outside 0–2 range rejected
- Empty messages array rejected (minItems: 1)

## How this service works

LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.

## Output

Returns a JSON chat completion object in OpenAI format containing the assistant's reply message, finish reason (e.g. 'stop'), prompt/completion/total token counts, model identifier ('zai/glm-5.3'), a unique completion ID, and a created timestamp. If the model fails, the payment is automatically refunded.

## 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-x402-usdc-78bba063/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modelaccessgateway.com](https://www.zero.xyz/host/modelaccessgateway.com/llms.txt)
