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

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

Generates AI chat completions using Moonshot AI's Kimi-K2.6-long model via Telnyx, billed per-request in USDC over the x402 protocol.

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/kimi-long?utm_source=zero.xyz
- Price: $0.0543/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-kimi-k2-6-long-chat-completions-a003df0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q7519FUJEaVKJ8QhT08Rz

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

Example prompt: Using the Kimi-K2.6-long model on Telnyx, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the key themes in the following 50,000-word document: [doc text]' — and give me the assistant's response, with up to 2048 tokens and a temperature of 0.7.

## When to prefer this

Choose this endpoint when you need a long-context LLM (up to 200,000 characters per message, 64-message history) and want pay-per-request billing in USDC with no subscription or API key setup. It is especially well-suited for agents that need to process large documents, long codebases, or extended conversation histories using Moonshot AI's Kimi-K2.6-long model. Prefer this over standard OpenAI-compatible endpoints when you specifically want crypto-native microtransaction billing via x402 and the unique long-context strengths of Kimi.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment rejected — request blocked before reaching model
- Context too long: messages exceeding 200,000 characters per message or more than 64 messages returns a validation error
- max_tokens out of range: values below 1 or above 2048 return a schema validation error
- Temperature out of range: values outside 0–2 rejected
- Model mismatch: specifying any model other than moonshotai/Kimi-K2.6-long returns an error since model is fixed on this route
- Rate limiting or gateway timeout for very large payloads
- Network or upstream Telnyx inference service unavailability

## 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), a unique completion ID, and the object type 'chat.completion'.

## 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-long",
   "description": "Model identifier; fixed to moonshotai/Kimi-K2.6-long 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": 200000
     }
    }
   },
   "maxItems": 64,
   "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-kimi-k2-6-long-chat-completions-a003df0d/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)
