{"uid":"cap_q7519FUJEaVKJ8QhT08Rz","slug":"telnyx-x402-gateway-kimi-k2-6-long-chat-completions-a003df0d","name":"Telnyx x402 Gateway – Kimi-K2.6-long Chat Completions","description":"Pay USDC per request for Telnyx Inference and Audio (text-to-speech, speech-to-text) through x402.","url":"https://x402.telnyx.com/v1/chat/completions/_t/kimi-long?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"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"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0543","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0543/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0543","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0543","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g6AQfTzTLmFY5IsoCsNQp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0543","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI chat completions using Moonshot AI's Kimi-K2.6-long model via Telnyx, billed per-request in USDC over the x402 protocol.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Long document summarization with Kimi","prompt":"I have a 40,000-word legal contract I need summarized into key clauses and risks — can you send it to the Kimi-K2.6-long model on Telnyx and get back a structured summary? Use temperature 0.3 and up to 2000 tokens."},{"title":"Multi-turn coding assistant session","prompt":"Start a conversation with the Kimi long-context model via Telnyx where the system says 'You are an expert Python engineer' and I ask: 'Refactor this 800-line Python module for readability and add type hints.' Use temperature 0.5 and limit the reply to 2048 tokens."},{"title":"Research Q&A over large corpus","prompt":"Send the entire text of this 30,000-word academic paper to the Kimi-K2.6-long model through Telnyx and ask it: 'What are the three most significant findings and their methodological limitations?' Temperature 0.2, max 1500 tokens."}],"resultDescription":"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'.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:31:54.324Z","isFirstParty":false,"canonicalSlug":"telnyx-x402-gateway-kimi-k2-6-long-chat-completions-a003df0d"}