# FarOut GLM-5.3 Chat Completions (Pay-Per-Call, x402)

> FarOut GLM-5.3 Chat Completions (Pay-Per-Call, x402) is a paid API for AI agents from farouter.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Runs chat/reasoning/coding inference against GLM-5.3 via a pay-per-call API using USDC on Base — no API key or account required.

## Facts

- Endpoint: POST https://farouter.tech/v1/models/glm-5.3/chat/completions
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farout-glm-5-3-chat-completions-pay-per-call-x402-39ccd672
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MgoDvVXs3_jaf6SiOP6mp

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 farout-glm-5-3-chat-completions-pay-per-call-x402-39ccd672 -d '<json body>'
```

Example prompt: Using GLM-5.3 on FarOut, send these messages — system: 'You are a concise coding assistant', user: 'Write a Python function to flatten a nested list' — with a max of 512 output tokens and temperature 0.2.

## When to prefer this

Choose this endpoint when you need GLM-5.3 specifically (strong multilingual and reasoning performance) and want true pay-per-call billing via USDC with no account registration, no prepaid credits, and OpenAI-compatible message format — ideal for autonomous agents that need to pay for inference programmatically without human-managed API keys.

## Known failure modes

- Payment rejected — insufficient USDC balance or x402 payment not accepted, returns 402 Payment Required
- Invalid model id — model field not matching a listed model returns 400
- Messages array empty or missing role/content — returns 400 validation error
- max_tokens too large for model context window — returns 400 or truncated output
- Rate limiting or upstream model unavailability — returns 503 or timeout
- Network error reaching farouter.tech — connection refused or DNS failure

## How this service works

Fixed-price chat completions for glm-5.3 on FarOut: flat $0.002 per call (includes up to 4,000 input + 1,000 output tokens). Rate: $0.090/1M input tokens, $0.282/1M output tokens. Pay with USDC on Base using x402. No API key, no account, no prepaid balance.

## Output

Returns an OpenAI-compatible JSON object with a choices array containing the assistant message, finish_reason (e.g. 'stop'), and a usage object with prompt_tokens and completion_tokens counts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Model id from GET /v1/models, e.g. glm-5.3. No provider prefix."
  },
  "stream": {
   "type": "boolean",
   "description": "SSE streaming."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "developer",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {}
    },
    "additionalProperties": true
   },
   "minItems": 1,
   "description": "Chat messages, [OI]-compatible {role, content}."
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Output token budget. Sets your spending cap; actual usage is what gets settled (true-up)."
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0,
   "description": "Sampling temperature."
  },
  "max_completion_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Alias of max_tokens (gpt-5.x models)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "usage": {
   "prompt_tokens": 6,
   "completion_tokens": 8
  },
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "Hello! How can I help?"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farout-glm-5-3-chat-completions-pay-per-call-x402-39ccd672/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from farouter.tech](https://www.zero.xyz/host/farouter.tech/llms.txt)
