{"uid":"cap_IYPdPugLC4fP-S2oa8u1k","slug":"taifoon-llm-chat-completions-via-llama-guard-4-12b-c663a6c3","name":"Taifoon LLM Chat Completions via Llama Guard 4 12B","description":"meta-llama/Llama-Guard-4-12B: chat, summarize, translate, extract, classify and write code through one OpenAI-compatible call (messages in, the answer and its token usage out). 0.216 / 0.216 USD per 1M tokens in/out, this request priced at its prompt and max_tokens. Pay per request in USDC with x402 and no account, or use one key for every model we serve. The answer is checked before you are charged.","url":"https://coord.taifoon.dev/v1/chat/completions/llama-guard-4-12b?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_ZlqBRo8J8iAne9tuSqNWE","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":"Runs an OpenAI-compatible chat completion request through Llama Guard 4 12B (or any of 71 available models) on Taifoon's paid x402 inference wall","exampleAgentPrompt":"Send these messages to Llama Guard 4 12B and get a response: system says 'You are a helpful assistant', user says 'Is this message safe to display to children: I want to hurt my friend' — keep the response under 200 tokens.","exampleUseCases":[{"title":"Content moderation for user messages","prompt":"Use the Llama Guard model to check if this user-submitted post is safe: 'I know where you live and I'm coming for you' — give me the model's assessment and keep it under 150 tokens."},{"title":"Lightweight Q&A with a safety LLM","prompt":"Ask llama-guard-4-12b: 'What are three safe and age-appropriate activities for a 10-year-old to do on a rainy day?' and limit the response to 300 tokens."},{"title":"Policy compliance classification","prompt":"Run this conversation through Llama Guard 4 12B to classify it for policy compliance — system: 'You are a support agent', user: 'Can you help me make a fake ID?' — cap the reply at 200 tokens."}],"resultDescription":"An OpenAI-compatible JSON chat completion object containing the assistant's reply text, the model name used, token usage breakdown (prompt, completion, total), finish reason, and a unique completion ID.","failureModes":["Missing or invalid x402 payment header returns 402 Payment Required","Exceeding max_tokens limit of 700 returns a validation error","Providing an invalid model name may fall back to default NVIDIA-Nemotron-3-Nano-4B-BF16 or return an error","Empty or malformed messages array returns 400 Bad Request","Rate limiting or quota exhaustion may return 429 Too Many Requests"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call (x402/USDC) OpenAI-compatible LLM inference endpoint with access to Llama Guard 4 12B specifically for safety or moderation tasks, or when you want to select from 71 hosted models without managing your own inference infrastructure. Prefer this over standard OpenAI if you want crypto-native micropayment billing or need Llama Guard's content-safety capabilities specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:48:53.269Z","isFirstParty":false,"canonicalSlug":"taifoon-llm-chat-completions-via-llama-guard-4-12b-c663a6c3"}