{"uid":"cap_8P69c2rSQAopfyZfokmYu","slug":"taifoon-coordination-layer-chat-completions-granite-4-2-8b-d1c5ac19","name":"Taifoon Coordination Layer – Chat Completions (granite-4.2-8b)","description":"OpenAI-compatible chat completion on ibm-granite/granite-4.2-8b, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 0.072 / 0.3 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/granite-4.2-8b?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.001","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_o4h-d0GEp_SdbpLzb_oJ5","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 on IBM Granite 4.2 8B, served via Taifoon's paid coordination layer using x402 micropayments.","exampleAgentPrompt":"Ask the Granite 4.2 8B model on Taifoon: 'What are three practical ways to reduce API latency in a microservices architecture?' — keep the answer under 300 tokens.","exampleUseCases":[{"title":"Quick reasoning task via small model","prompt":"Use the Granite 4.2 8B model to explain the difference between a mutex and a semaphore in plain English, in under 200 tokens."},{"title":"Coding assistant for lightweight tasks","prompt":"Send this to the Granite model on Taifoon: write a Python function that checks if a string is a valid email address, no external libraries, keep it short."},{"title":"Conversational Q&A with system context","prompt":"I want to query the Granite 4.2 8B model with a system prompt saying 'You are a helpful math tutor' and then ask it: what is 17 times 24? Limit the response to 100 tokens."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object with the assistant's reply text, token usage breakdown (prompt, completion, total), the model name used, a finish reason (e.g. stop), and a unique completion ID.","failureModes":["Missing or invalid x402 payment header returns 402 Payment Required","No messages array or empty array returns 400 validation error","max_tokens exceeding 700 returns 400 bad request","Invalid model name returns error or falls back to default Nemotron model","Rate limiting or upstream inference unavailability returns 503 or 429","Malformed JSON body returns 400"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, OpenAI-compatible chat completion from IBM Granite 4.2 8B specifically, and you are already integrated with the x402 micropayment protocol for per-call billing. Prefer it over generic LLM providers when you want pay-per-call pricing without subscription overhead, or when you want to use Taifoon's coordination layer for traceability. If you need a larger model (120B+) or a different architecture, use a sibling endpoint on coord.taifoon.dev.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T12:40:20.190Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-completions-granite-4-2-8b-d1c5ac19"}