# Telnyx x402 Gateway – GLM-5.1-FP8 Chat Completions

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

Generates chat completions using the zai-org/GLM-5.1-FP8 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?utm_source=zero.xyz
- Price: $0.023386/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-1-fp8-chat-completions-0ee71bda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MXsURdcV6_FcnePl5PB2a

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-1-fp8-chat-completions-0ee71bda -d '<json body>'
```

Example prompt: Using Telnyx's x402 GLM-5.1-FP8 model, send this conversation — system: 'You are a helpful assistant', user: 'What is the capital of France?' — with a max of 256 tokens and temperature 0.7, and give me the assistant's reply.

## When to prefer this

Choose this endpoint when you need pay-as-you-go LLM inference with no subscription, settling per-call in USDC via the x402 micropayment protocol. It is ideal for agents or pipelines that need the GLM-5.1-FP8 model specifically, or for use cases where traditional API key billing is impractical and crypto-native payment rails are preferred. It also suits sporadic or bursty workloads where committing to a monthly plan is undesirable.

## Known failure modes

- Insufficient USDC balance or failed x402 payment — request rejected with 402 Payment Required
- Message array exceeds 32 items or content exceeds 12,000 characters — validation error
- max_tokens exceeds 2048 or is below 1 — schema validation failure
- Temperature out of range [0, 2] — rejected by input validation
- Model identifier mismatch — only 'zai-org/GLM-5.1-FP8' is accepted on this route
- Tool array exceeds 16 items — schema validation failure
- Network timeout or inference backend unavailable — 5xx error

## 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 chat completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total tokens), and a 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.1-FP8",
   "description": "Model identifier; fixed to zai-org/GLM-5.1-FP8 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": 12000
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 2048,
   "minimum": 1
  },
  "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-1-fp8-chat-completions-0ee71bda/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)
