# Tokensale GLM-5-3-Flash Chat Completions

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

Sends a chat message to the GLM-5-3-Flash language model via an OpenAI-compatible API, paying per call in USDC over x402

## Facts

- Endpoint: POST https://tokensale.maiapp.ru/x402/v1/models/glm-5-3-flash/chat/completions?utm_source=zero.xyz
- Price: $0.000289/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-flash-chat-completions-5beeac87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lkKO5tgSU39KD0G5vLsCY

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-flash-chat-completions-5beeac87 -d '<json body>'
```

Example prompt: Send this conversation to GLM-5-3-Flash and get a response: system says 'You are a helpful assistant', user says 'Explain the difference between supervised and unsupervised learning in 3 sentences' — use up to 512 tokens and temperature 0.7.

## When to prefer this

Choose this endpoint when you need a cost-effective, pay-per-call LLM inference via USDC micropayments (x402 protocol) with no subscription, want OpenAI/Claude API compatibility to drop into existing clients, need access to Zhipu AI's GLM-5-3-Flash model specifically, or want transparent per-token pricing with a large 200K context window at very low cost ($0.021/M input tokens).

## Known failure modes

- Payment failure if insufficient USDC balance or x402 payment not completed — returns 402 Payment Required
- Invalid messages array (empty or malformed objects) — returns 400 Bad Request
- Temperature out of range (>2 or <0) — schema validation error
- max_tokens or max_completion_tokens below 1 — validation error
- Model const mismatch if wrong model string provided
- Network timeout if inference takes too long for large prompts

## How this service works

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

## Output

A JSON chat completion object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), the model ID 'glm-5-3-flash', and a modelCatalog array showing pricing and context window details for the model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "const": "glm-5-3-flash"
  },
  "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-flash",
  "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-flash",
    "payment": {
     "scheme": "upto",
     "network": "eip155:8453",
     "currency": "USDC"
    },
    "protocols": [
     "messages"
    ],
    "contextTokens": 200000,
    "maxInputTokens": 195904,
    "maxOutputTokens": 4096,
    "priceUsdPerMillionTokens": {
     "input": "0.021000",
     "output": "0.070000",
     "cacheRead": "0.004200",
     "cacheWrite": "0.033600"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensale-glm-5-3-flash-chat-completions-5beeac87/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)
