# Telnyx x402 Gateway – Chat Completions (Kimi-K2.6)

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

Runs a single OpenAI-compatible chat completion against the moonshotai/Kimi-K2.6 model, billed per request in USDC via the x402 payment protocol.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/mid?utm_source=zero.xyz
- Price: $0.01385/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-chat-completions-kimi-k2-6-321425f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WRHw86jfKcJ-WphnMoFj-

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-chat-completions-kimi-k2-6-321425f4 -d '<json body>'
```

Example prompt: Using the Kimi-K2.6 model on Telnyx's x402 gateway, send this conversation — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in simple terms' — with a max of 512 tokens and temperature 0.7, paying per request in USDC.

## When to prefer this

Choose this endpoint when you need pay-per-request LLM inference with no subscription or API key commitment, paying in USDC via the x402 protocol. Ideal for autonomous agents, crypto-native apps, or prototypes that need OpenAI-compatible chat completions without account setup. Prefer this over standard OpenAI or Anthropic APIs when you want stablecoin micropayments and the Kimi-K2.6 model's reasoning capabilities specifically.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment header missing/invalid returns 402 Payment Required
- Model overload: high-traffic periods may return 503 or timeout
- Message too long: content exceeding 12,000 characters per message is rejected
- Token limit exceeded: max_tokens above 1024 is rejected by schema validation
- Tool array overflow: more than 16 tools in the tools array causes a validation error
- Message array overflow: more than 32 messages causes a validation 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'), and token usage breakdown (prompt tokens, completion tokens, total tokens), plus 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": "moonshotai/Kimi-K2.6",
   "description": "Model identifier; fixed to moonshotai/Kimi-K2.6 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": 1024,
   "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-chat-completions-kimi-k2-6-321425f4/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)
