# Tokensale GLM-5-3 Chat Completions

> Tokensale GLM-5-3 Chat Completions is a paid API for AI agents from tokensale.maiapp.ru, paid per call via x402, $0.001075/call, status unknown (last checked 2026-11-20).

Send chat messages to the GLM-5-3 language model and receive AI-generated text completions via a pay-per-call API.

## Facts

- Endpoint: POST https://tokensale.maiapp.ru/x402/v1/models/glm-5-3/chat/completions?utm_source=zero.xyz
- Price: $0.001075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensale-glm-5-3-chat-completions-70ef29e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LlCf9v3BsaJR8nYgW4byW

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 tokensale-glm-5-3-chat-completions-70ef29e4 -d '<json body>'
```

Example prompt: Using GLM-5-3 on Tokensale, send this conversation to the model: system says 'You are a helpful assistant', user asks 'What is the capital of France?' — use temperature 0.7 and max 512 tokens.

## When to prefer this

Choose this endpoint when you need access to the GLM-5-3 model (Zhipu AI) via a GPT/Claude-compatible API interface without a monthly subscription, paying only per call in USDC micropayments via x402. Particularly suitable for agents that need sporadic or low-volume LLM inference, want transparent per-token billing, or require a non-OpenAI model with a large 200K context window at low cost.

## Known failure modes

- Payment failure if USDC balance is insufficient (x402 payment required)
- Invalid model field — must be exactly 'glm-5-3'
- Stream must be false; streaming responses not supported
- Empty messages array rejected (minItems: 1)
- Temperature out of range (must be 0–2)
- Request timeout for very long prompts near 195,904 token input limit
- Max output capped at 4096 tokens regardless of max_tokens value

## How this service works

Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.

## Output

Returns a standard OpenAI-compatible chat completion JSON object containing the assistant's reply message, finish reason, token usage breakdown (prompt, completion, total), and model catalog metadata including per-million-token pricing for input, output, cache read, and cache write.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "const": "glm-5-3"
  },
  "stream": {
   "type": "boolean",
   "const": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  },
  "max_completion_tokens": {
   "type": "integer",
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "x402-request",
  "model": "glm-5-3",
  "usage": {
   "total_tokens": 2,
   "prompt_tokens": 1,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello back"
    },
    "finish_reason": "stop"
   }
  ],
  "modelCatalog": [
   {
    "id": "glm-5-3",
    "payment": {
     "scheme": "upto",
     "network": "eip155:8453",
     "currency": "USDC"
    },
    "protocols": [
     "messages"
    ],
    "contextTokens": 200000,
    "maxInputTokens": 195904,
    "maxOutputTokens": 4096,
    "priceUsdPerMillionTokens": {
     "input": "0.083244",
     "output": "0.261622",
     "cacheRead": "0.015460",
     "cacheWrite": "0.133189"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensale-glm-5-3-chat-completions-70ef29e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tokensale.maiapp.ru](https://www.zero.xyz/host/tokensale.maiapp.ru/llms.txt)
