{"uid":"cap_bCcJQawSpa9RLELYedvzx","slug":"taifoon-llm-chat-completions-llama-4-scout-17b-6d66cd02","name":"Taifoon LLM Chat Completions (Llama 4 Scout 17B)","description":"OpenAI-compatible chat completion on meta-llama/Llama-4-Scout-17B-16E-Instruct, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 0.12 / 0.36 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/llama-4-scout-17b-16e-instruct?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.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_L6y81pNCX4raNRTXE07OH","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 Llama 4 Scout 17B (or any of 71 available models) via Taifoon's coordination layer and returns an OpenAI-compatible chat completion response.","exampleAgentPrompt":"Ask Llama 4 Scout 17B to explain the difference between supervised and unsupervised learning in simple terms, keeping the response under 300 tokens.","exampleUseCases":[{"title":"Code explanation assistant","prompt":"Use Llama 4 Scout to explain what this Python function does and suggest any improvements — here's the code: `def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)`. Keep the answer under 500 tokens."},{"title":"Customer support draft replies","prompt":"I need a friendly customer support reply to this complaint: 'My order arrived damaged and the packaging was a mess.' Use llama-4-scout-17b-16e-instruct and keep it under 200 tokens."},{"title":"Open-source model fact lookup","prompt":"Ask the Taifoon LLM endpoint using the llama-4-scout-17b model: what are the main differences between REST and GraphQL APIs? Limit the response to 400 tokens."}],"resultDescription":"Returns an OpenAI-compatible JSON object containing the assistant's reply under choices[0].message.content, the model used, token usage breakdown (prompt, completion, total), a finish_reason, and a unique chat completion ID. The response structure mirrors the OpenAI Chat Completions API format exactly.","failureModes":["Missing or invalid API key (x-api-key) returns 401/402 with a get_key hint in headers","Model name not in the 71 supported models returns an error; omitting model defaults to NVIDIA-Nemotron-3-Nano-4B","max_tokens exceeding 700 or messages array exceeding 32 items is rejected with a validation error","Empty messages array or missing required role/content fields returns 400","Payment failure (x402 payment required) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call OpenAI-compatible LLM inference with no subscription, especially for Llama 4 Scout 17B or other open-source models from a catalog of 71, billed at $0.001 USDC per call via x402. Prefer it over hosted OpenAI or Anthropic when cost transparency, open-source model access, or crypto-native payment rails matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:11:19.950Z","isFirstParty":false,"canonicalSlug":"taifoon-llm-chat-completions-llama-4-scout-17b-6d66cd02"}