# Telnyx x402 Gateway – GLM-5.3-Flash Chat Completions

> Telnyx x402 Gateway – GLM-5.3-Flash Chat Completions is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.005783/call, status unknown (last checked 2026-10-10).

Generate chat completions using the zai-org/GLM-5.3-Flash model, paid per-request in USDC via the x402 protocol on Telnyx's inference gateway.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/glm-5.3-flash?utm_source=zero.xyz
- Price: $0.005783/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/telnyx-x402-gateway-glm-5-3-flash-chat-completions-cd8866dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P153iGLTkXjYVEfABE1wV

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 telnyx-x402-gateway-glm-5-3-flash-chat-completions-cd8866dc -d '<json body>'
```

Example prompt: Using the Telnyx GLM-5.3-Flash inference gateway, send these messages — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in two sentences' — with temperature 0.7 and max 512 tokens, and pay the per-request USDC fee automatically.

## When to prefer this

Choose this endpoint when you need a fast, OpenAI-compatible chat completion using the GLM-5.3-Flash model and want to pay per-request in USDC without a subscription or API key setup. Ideal for autonomous agents that need on-demand LLM inference with crypto-native micropayments via x402, particularly when avoiding centralized billing or when running sporadic, pay-as-you-go inference workloads.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 payment header is missing/malformed
- Model or route unavailable (5xx errors from Telnyx inference backend)
- Message content exceeds 32,000 character limit per message
- Too many messages in the conversation (exceeds 32-message limit)
- max_tokens out of range (must be 512–2048)
- Temperature out of range (must be 0–2)
- Too many tool definitions (exceeds 16-tool limit)

## How this service works

Pay USDC per request for Telnyx Inference and Audio (text-to-speech, speech-to-text) through x402.

## Output

Returns an OpenAI-compatible JSON object with a choices array containing the assistant's generated message, finish reason, token usage breakdown (prompt, completion, total tokens), and a unique completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "const": 1,
   "description": "Fixed to one completion per paid call."
  },
  "model": {
   "type": "string",
   "const": "zai-org/GLM-5.3-Flash",
   "description": "Model identifier; fixed to zai-org/GLM-5.3-Flash on this route."
  },
  "tools": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "maxItems": 16
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "type": "string",
      "maxLength": 32000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 2048,
   "minimum": 512
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-xxx",
  "usage": {
   "total_tokens": 16,
   "prompt_tokens": 12,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/telnyx-x402-gateway-glm-5-3-flash-chat-completions-cd8866dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.telnyx.com](https://www.zero.xyz/host/x402.telnyx.com/llms.txt)
