# AgentRXI GLM-5.2 Chat Completions (Pay-Per-Call)

> AgentRXI GLM-5.2 Chat Completions (Pay-Per-Call) is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.020079/call, status unknown (last checked 2026-10-15).

Runs a user prompt through the GLM-5.2 large language model and returns an OpenAI-compatible chat completion response, billed per call in USDC with no signup required.

## Facts

- Endpoint: GET https://agentrxi.com/v1/glm52/chat/completions?utm_source=zero.xyz
- Price: $0.020079/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-glm-5-2-chat-completions-pay-per-call-af3846f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NOGbDGcOhDQy41n_FWrbS

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 agentrxi-glm-5-2-chat-completions-pay-per-call-af3846f7
```

Example prompt: Ask GLM-5.2 to summarize the following paragraph for me — 'Quantum computing leverages superposition and entanglement to perform calculations exponentially faster than classical computers' — keep it under 50 tokens and use a neutral tone.

## When to prefer this

Choose this endpoint when you need a single GLM-5.2 chat completion without managing API keys, subscriptions, or rate-limit tiers — especially useful in agent pipelines that pay per call in USDC via x402. It is ideal for sporadic, unpredictable inference needs where committing to a monthly LLM subscription is wasteful, or when you specifically want GLM-5.2's capabilities (strong multilingual and reasoning performance from Zhipu AI) rather than OpenAI or Anthropic models.

## Known failure modes

- Insufficient USDC balance causes payment failure before the model is reached
- Malformed or missing 'prompt' query parameter returns a 400 validation error
- Model overload or upstream GLM service downtime returns a 503 or timeout
- Prompt or output exceeding max_tokens causes truncated completion with finish_reason='length'
- Temperature or max_tokens values outside accepted ranges cause parameter rejection

## How this service works

AgentRXI: the largest pay-per-call tool market for AI agents. Web research, 22 LLMs priced per token, rent-a-browser, code sandbox, file storage, agent databases, KYB and wallet trust checks, a prompt-injection firewall, economic data, maps and more. Pay per call in USDC with x402. No key, no signup.

## Output

Returns an OpenAI-compatible JSON object containing the assistant's reply text, the model name ('glm-5.2'), token usage breakdown (prompt tokens, completion tokens, total tokens), a finish reason ('stop'), and a unique completion ID. The response mirrors the standard ChatCompletion schema, making it easy to drop into existing LLM pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "User message"
      },
      "system": {
       "type": "string",
       "description": "Optional system message"
      },
      "max_tokens": {
       "type": "integer"
      },
      "temperature": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "glm-5.2",
  "usage": {
   "total_tokens": 18,
   "prompt_tokens": 14,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Bonjour !"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-glm-5-2-chat-completions-pay-per-call-af3846f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
