{"uid":"cap_cftSoXdqLb2RLxqslyl4m","slug":"taifoon-coordination-layer-chat-completions-ling-3-1-flash-c9dcbee5","name":"Taifoon Coordination Layer – Chat Completions (Ling-3.1-Flash)","description":"OpenAI-compatible chat completion on inclusionAI/Ling-3.1-flash, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 0.36 / 1.08 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/ling-3.1-flash?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","deepseek-v4-flash","ling-3.0-flash"],"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.001512","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_hVRxTOzpj_NNXueY4Jvg5","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":"OpenAI-compatible chat completion endpoint served by the Taifoon coordination layer, supporting 71 models with a default of NVIDIA-Nemotron-3-Nano-4B-BF16, billed at $0.001 USDC per call via x402.","exampleAgentPrompt":"Using the Taifoon coordination layer, send a chat completion request to the llama-3.1-8b-instruct model with the system message 'You are a helpful assistant' and the user message 'Explain quantum entanglement in two sentences', with a max of 200 tokens.","exampleUseCases":[{"title":"Quick Q&A with open-source LLM","prompt":"Ask Taifoon's coordination layer to use the phi-4 model to answer 'What are the three main causes of inflation?' — keep the response under 300 tokens."},{"title":"Code generation via pay-per-call API","prompt":"Use the Taifoon chat endpoint with deepseek-v4-flash to generate a Python function that sorts a list of dictionaries by a given key, max 500 tokens."},{"title":"Multilingual translation with Qwen","prompt":"Send a message to Taifoon's LLM wall using qwen2.5-7b-instruct: translate 'Good morning, how are you today?' into French, Spanish, and Japanese, keeping the reply under 150 tokens."}],"resultDescription":"Returns an OpenAI-compatible JSON chat completion object including: a unique completion ID, the model name used, token usage breakdown (prompt, completion, total), the assistant's reply message, and a finish reason (e.g. 'stop'). The response mirrors the standard OpenAI chat completions format.","failureModes":["Missing x402 payment header results in 402 Payment Required with a get_key hint in the response body and headers","Invalid or unrecognized model name may fall back to the default NVIDIA-Nemotron model without error","messages array below minItems(1) or above maxItems(32) triggers a validation error","max_tokens exceeding 700 is rejected with a validation error","Network or inference backend timeout may return a 5xx error from DeepInfra"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, OpenAI-compatible chat completion API billed in USDC via x402 micropayments, with access to 71 open-source models (Llama, Mistral, Qwen, Gemma, Phi-4, DeepSeek, etc.) and no subscription required. Prefer it over hosted OpenAI when you want open-source model diversity, micropayment billing, or coordination-layer provenance tracking. The ling-3.1-flash path is suitable for fast, low-cost inference with a small token budget (max 700 tokens).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:41:53.634Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-completions-ling-3-1-flash-c9dcbee5"}