{"uid":"cap_kN7-fyUL9iAJ6TqogmoEK","slug":"taifoon-coordination-layer-chat-completions-kimi-k2-7-code-76fbe525","name":"Taifoon Coordination Layer – Chat Completions (Kimi K2.7 Code)","description":"OpenAI-compatible chat completion on kimi-k2-7-code, served by Venice AI (private inference; USD credits, staked DIEM, x402 USDC) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 0.9 / 4.2 USD per 1M tokens in/out. This request is priced at its prompt and max_tokens. The answer is checked before you are charged.","url":"https://coord.taifoon.dev/v1/chat/completions/kimi-k2.7-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","examples":["l3-8b-lunaris-v1","llama-3.1-8b-instruct","mistral-small-24b-instruct-2501","gemma-3-4b-it","gpt-oss-20b","phi-4","qwen2.5-7b-instruct","gemma-3-12b-it","qwen3.5-9b","gemma-3-27b-it","ling-3.0-flash","ling-3.0-flash-vl"],"description":"optional; one of the 76 models this wall delivers (GET lists them under terms.models); without it nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 answers"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"maxItems":32,"minItems":1},"max_tokens":{"type":"integer","maximum":700,"minimum":1}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-gpu_…","model":"nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16","usage":{"total_tokens":28,"prompt_tokens":14,"completion_tokens":14},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"17 × 24 = 408 (17 × 20 = 340; 17 × 4 = 68; 340 + 68 = 408)."},"finish_reason":"stop"}],"created":1791763200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0008","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.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JIyiBPOBzJ4GOseytxPHJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat message array to an LLM (defaulting to Kimi K2.7 Code or any of 71 available models) and returns an OpenAI-compatible chat completion response, billed per call via x402 micropayment.","exampleAgentPrompt":"Ask the Kimi K2.7 code model to write me a Python function that parses a JSON log file and extracts all error messages — keep the response under 500 tokens.","exampleUseCases":[{"title":"AI coding assistant on demand","prompt":"Use the Kimi K2.7 code model to write a JavaScript function that debounces an async function, with JSDoc comments, and keep the answer under 600 tokens."},{"title":"Quick math explanation for a student","prompt":"Send this message to the default LLM: 'Explain why the square root of 2 is irrational in simple terms' — max 300 tokens please."},{"title":"Multi-model comparison for a research task","prompt":"Run this prompt through the deepseek-v4-flash model: 'Summarize the main differences between transformer and state-space sequence models in 3 bullet points', and limit the reply to 400 tokens."}],"resultDescription":"An OpenAI-compatible JSON chat completion object containing the assistant's reply text, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model ID used, and a unique completion ID. Max 700 completion tokens per call.","failureModes":["Missing or invalid x402 payment header returns 402 Payment Required with get_key guidance","Exceeding max_tokens=700 or sending more than 32 messages returns a 400 validation error","Specifying an unsupported model string returns an error; use GET on the models list to confirm valid names","No messages provided (empty array) fails minItems validation","Rate limits or upstream model unavailability may return 429 or 503"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call LLM inference with no subscription, want access to 71+ open-weight models (including coding-specialized models like Kimi K2.7) through a single OpenAI-compatible interface, and can pay $0.001 USDC per call via x402 micropayment. Prefer it over OpenAI or Anthropic APIs when you need open-weight model diversity, crypto-native billing, or want to avoid monthly commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:02:11.905Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-completions-kimi-k2-7-code-76fbe525"}