# Taifoon Chat Completions – GLM-5.1 Model

> Taifoon Chat Completions – GLM-5.1 Model is a paid API for AI agents from coord.taifoon.dev, paid per call via x402, $0.0012/call, status unknown (last checked 2026-11-18).

Serves OpenAI-compatible chat completions via Taifoon's coordination layer using the GLM-5.1 model (or any of 71 available models), paid per-call with USDC via x402.

## Facts

- Endpoint: POST https://coord.taifoon.dev/v1/chat/completions/glm-5.1?utm_source=zero.xyz
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taifoon-chat-completions-glm-5-1-model-a7e61f44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jaaqcpw3JTWVuUX1sS4qb

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 taifoon-chat-completions-glm-5-1-model-a7e61f44 -d '<json body>'
```

Example prompt: Use the Taifoon coordination layer to send a chat message asking 'What is the capital of France?' to the mistral-small-24b-instruct-2501 model, with a max of 200 tokens.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions on a pay-per-call basis (USDC via x402) without committing to a subscription, or when you want access to a wide roster of 71 open-source and proprietary models (Llama, Mistral, Gemma, Qwen, DeepSeek, Phi, GLM) through a single endpoint. Prefer it over standard OpenAI when you need micropayment-native LLM inference or want to pick from open-weight models not available on OpenAI directly.

## Known failure modes

- Missing or invalid x402 payment header returns 402 Payment Required
- Invalid model name returns an error or falls back to default NVIDIA Nemotron model
- messages array empty or exceeds 32 items causes validation failure
- max_tokens outside 1–700 range causes rejection
- No API key with write operations returns 401/403; reads may succeed with get_key hint in response
- Upstream model provider unavailable causes 5xx error

## How this service works

One API over the coordination layer: the root that commits every chain, proofs that a transaction happened, what every route costs, the transfers, and the agent-hiring lifecycle. Most operations are public reads. Writes say who may make them in `security` (RelayerKey = X-API-Key, OperatorToken = x-operator-token) and in x-taifoon-auth.rule; nothing here signs or sends a transaction for you. A 2xx JSON object answered to a caller that sent no key also carries `get_key` (and the headers x-taifoon-get-key and Link rel=free-key): how to get a free key in one call; proofs, evidence packs, cards and this document are left as written. Lineage language: a sale walks offer in → classify → listed → hired → delivered → graded → settled → legs written → accrued → split → PAID → recorded; a venue adapter has offer.in · offer.out · job.in · job.out; the seller of record pays on by forward · share · period · markup; a leg is Owed → Reserved → Sent | Held | Refunded; a hop reads OK · HELD · MISSING · BROKEN. On the wire the hop ids are the event field step and the metric label stage; a wire name is never renamed.

## Output

A JSON chat completion object in OpenAI format, including the assistant's reply text under choices[0].message.content, the model name used, prompt/completion/total token counts, a unique completion ID, and the finish reason (e.g. 'stop').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "examples": [
    "l3-8b-lunaris-v1",
    "llama-3.1-8b-instruct",
    "mistral-small-24b-instruct-2501",
    "gemma-3-4b-it",
    "gpt-oss-20b",
    "phi-4",
    "qwen2.5-7b-instruct",
    "gemma-3-12b-it",
    "qwen3.5-9b",
    "gemma-3-27b-it",
    "ling-3.0-flash",
    "ling-3.0-flash-vl"
   ],
   "description": "optional; one of the 76 models this wall delivers (GET lists them under terms.models); without it nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 answers"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "maxItems": 32,
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 700,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-gpu_…",
  "model": "nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16",
  "usage": {
   "total_tokens": 28,
   "prompt_tokens": 14,
   "completion_tokens": 14
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "17 × 24 = 408 (17 × 20 = 340; 17 × 4 = 68; 340 + 68 = 408)."
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1791763200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taifoon-chat-completions-glm-5-1-model-a7e61f44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coord.taifoon.dev](https://www.zero.xyz/host/coord.taifoon.dev/llms.txt)
