# Taifoon Coordination Layer – Chat Inference Edge

> Taifoon Coordination Layer – Chat Inference Edge is a paid API for AI agents from coord.taifoon.dev, paid per call via x402, $0.000195/call, status unknown (last checked 2026-11-24).

Sends a chat inference task to a specific Taifoon edge node and returns a model-generated text answer, billed via x402 micropayment at $0.000195 USDC per call.

## Facts

- Endpoint: POST https://coord.taifoon.dev/v1/exchanges/edge_9a5d9a7b6edd16b7/call?utm_source=zero.xyz
- Price: $0.000195/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taifoon-coordination-layer-chat-inference-edge-5740723c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dkUftywd__et-pcj-6R3z

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-coordination-layer-chat-inference-edge-5740723c -d '<json body>'
```

Example prompt: Using the Taifoon coordination edge, answer this question for me: what is 17 multiplied by 24? Use up to 100 tokens and bill me via x402.

## When to prefer this

Choose this endpoint when you need to call a specific named Taifoon edge node for LLM chat inference with per-call x402 micropayment billing and want delivery proof (reply_digest) and a payment meter line in the response. It is distinct from generic OpenAI-compatible endpoints because it routes through Taifoon's coordination layer, records a payment leg, and returns audit-ready lineage metadata alongside the answer.

## Known failure modes

- Missing or invalid x402 payment header returns a 402 with instructions on how to get a free key
- Exceeding max_tokens (512) or sending more than 32 messages returns a 400 validation error
- Sending neither 'task' nor 'args.messages' results in an incomplete request error
- Edge node unavailable may return a non-2xx status or edge_state other than 'quoted'
- Invalid class value (must be 'inference.chat') causes request rejection

## 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 object containing: a boolean 'ok' flag, the edge_id that handled the request, a delivery block with the model's text answer, the model name (e.g. openai/gpt-oss-120b), the provider (e.g. deepinfra), a delivery status, and a reply_digest hash; plus a meter_line block showing how the call was paid (x402), the unit cost, and the agreement basis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "args": {
   "type": "object",
   "properties": {
    "messages": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "role",
       "content"
      ],
      "properties": {
       "role": {
        "enum": [
         "system",
         "user",
         "assistant"
        ],
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     },
     "maxItems": 32
    },
    "max_tokens": {
     "type": "integer",
     "maximum": 512,
     "minimum": 1
    }
   }
  },
  "task": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "the user message (or send args.messages)"
  },
  "class": {
   "type": "string",
   "const": "inference.chat"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "edge_id": "edge_9a5d9a7b6edd16b7",
  "delivery": {
   "answer": {
    "text": "17 × 24 = 408",
    "model": "openai/gpt-oss-120b",
    "provider": "deepinfra"
   },
   "status": "ready",
   "handshake_id": null,
   "reply_digest": "0x…"
  },
  "meter_line": {
   "paid": {
    "by": "x402",
    "units": "195"
   },
   "edge_state": "quoted",
   "agreement_basis": "house_unsigned"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taifoon-coordination-layer-chat-inference-edge-5740723c/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)
