{"uid":"cap_WRHw86jfKcJ-WphnMoFj-","slug":"telnyx-x402-gateway-chat-completions-kimi-k2-6-321425f4","name":"Telnyx x402 Gateway – Chat Completions (Kimi-K2.6)","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/mid?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","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}}},"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.01385","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.01385/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01385","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01385","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8Hy_C3fLfieJCQ2C3iqh8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01385","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a single OpenAI-compatible chat completion against the moonshotai/Kimi-K2.6 model, billed per request in USDC via the x402 payment protocol.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"One-off agent reasoning task","prompt":"I need a quick reasoning response from the Kimi-K2.6 model — ask it: 'What are three key risks in a DeFi lending protocol?' with up to 800 tokens at temperature 0.5, and pay per call so I don't need a subscription."},{"title":"Tool-calling agentic pipeline step","prompt":"Run a single chat completion with Kimi-K2.6 through Telnyx x402 — pass in my tool definitions for a weather API and a calendar API, then send the user message 'Schedule a meeting for tomorrow if it's not raining in New York', with max 1024 tokens."},{"title":"Crypto-native LLM API for startup prototype","prompt":"My app doesn't have an OpenAI key yet — can you send a test prompt 'Hello, what can you do?' to the Kimi-K2.6 model via Telnyx's pay-per-request x402 endpoint with temperature 1.0 and 200 max tokens, billing in USDC?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:36:37.304Z","isFirstParty":false,"canonicalSlug":"telnyx-x402-gateway-chat-completions-kimi-k2-6-321425f4"}