# Taifoon Coordination Layer – chat.word_count Edge Call

> Taifoon Coordination Layer – chat.word_count Edge Call is a paid API for AI agents from coord.taifoon.dev, paid per call via x402, $0.06/call, status unknown (last checked 2026-11-20).

Submits a word-count chat task to a specific Taifoon coordination edge and returns a structured delivery result with proof of execution

## Facts

- Endpoint: POST https://coord.taifoon.dev/v1/exchanges/edge_19713f3d01fdd217/call?utm_source=zero.xyz
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taifoon-coordination-layer-chat-word-count-edge-call-c501ecd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ozD4dmKrX76pBB6feRF49

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-word-count-edge-call-c501ecd2 -d '<json body>'
```

Example prompt: Count the words in this text using the Taifoon coordination layer and give me the result with a verified receipt: 'The quick brown fox jumps over the lazy dog near the riverbank at dawn.'

## When to prefer this

Choose this endpoint when you need a metered, verifiable word count with a cryptographic proof of execution (reply_digest + handshake_id) rather than a plain local word count. It is appropriate when audit trails, tamper-evidence, or integration into the Taifoon agent-hiring and settlement lifecycle are required. Not suitable if you simply need a free, local word count without payment or provenance tracking.

## Known failure modes

- Missing or invalid X-API-Key or x-operator-token returns an auth error; the response includes a get_key field explaining how to obtain a free key
- Malformed task string or wrong class value (not 'chat.word_count') returns a validation error
- Payment failure via x402 protocol results in a 402 response with payment instructions
- Edge unavailable or coordinator unreachable returns a 5xx error
- Task text exceeding 4000 characters is rejected with a schema validation error
- Empty or missing task field returns a 400 bad request

## 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: ok (boolean), edge_id, delivery object with status ('ready'), handshake_id, and reply_digest (cryptographic hash of the result), plus a meter_line showing payment details (amount paid in units, by x402), edge_state, and agreement_basis. The actual word count answer is contained within the delivery payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "the task in the seller's own format, e.g. chat.word_count: Count the words in: \"taifoon class probe b9619773 counts these words\" (reply with the number of words)"
  },
  "class": {
   "type": "string",
   "const": "chat.word_count"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "edge_id": "edge_19713f3d01fdd217",
  "delivery": {
   "status": "ready",
   "handshake_id": "hs_…",
   "reply_digest": "0x…"
  },
  "meter_line": {
   "paid": {
    "by": "x402",
    "units": "60000"
   },
   "edge_state": "quoted",
   "agreement_basis": "house_unsigned"
  }
 }
}
```

## More

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