{"uid":"cap_rLDiOC8TMNBTRCPoL95xE","slug":"tokenguard-llm-chat-completion-3a2eb56a","name":"TokenGuard LLM Chat Completion","description":"Run a chat completion against an open-weight 20B-class model — plain prompt in, text out, with automatic failover across independent inference backends so a single call still answers when any one provider is down or rate-limiting","url":"https://eltociear-tokenguard.hf.space/llm/chat","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"The user prompt"},"system":{"type":"string","description":"Optional system instruction"},"max_tokens":{"type":"integer","description":"1-4000 (default 800)"},"temperature":{"type":"number","description":"0-2 (default 0.3)"}}},"responseSchema":{"type":"json","example":{"usage":{"ms":740,"total_tokens":210},"answer":"EIP-3009 lets a holder sign an off-chain authorization…","provider":"llm7"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pltcaxsa1sGoSbT8Z-9Oo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a chat completion against an open-weight 20B-class language model with automatic failover across multiple inference backends","exampleAgentPrompt":"Using the open-weight 20B model with failover, answer this prompt: 'Summarize the key risks of DeFi yield farming in 3 bullet points' — keep the response under 300 tokens and use a temperature of 0.5.","exampleUseCases":[{"title":"Resilient AI summarization pipeline","prompt":"Summarize this legal clause in plain English and keep it under 200 tokens: 'The licensor grants the licensee a non-exclusive, non-transferable, limited license to use the software solely for internal business purposes.' Use a temperature of 0.2 so the output stays consistent."},{"title":"Automated content drafting with custom persona","prompt":"Act as a friendly financial advisor and answer this user question in 2 short paragraphs: 'What is dollar-cost averaging and should I use it for crypto?' Limit the response to 400 tokens and set temperature to 0.7 for a conversational tone."},{"title":"Fallback LLM for high-availability agent workflow","prompt":"My primary LLM endpoint keeps rate-limiting me — can you send this prompt to the open-weight model with failover instead: 'List 5 creative names for a DeFi protocol focused on stablecoin yields.' Keep max_tokens at 300 and temperature at 0.4."}],"resultDescription":"A plain text string containing the model's generated response to the provided prompt, shaped by the optional system instruction, max_tokens limit (1–4000, default 800), and temperature setting (0–2, default 0.3). The response is returned from whichever available inference backend successfully processed the request after automatic failover.","failureModes":["All inference backends simultaneously unavailable or overloaded — returns an error with no generated text","Prompt exceeds model context window — may truncate or return an error","Invalid temperature or max_tokens values outside accepted ranges — likely a 400 validation error","Payment failure via x402 protocol — call rejected before reaching the model","Empty or malformed prompt field — model may return degenerate or empty output"],"whenToPreferThis":"Choose this endpoint when you need a reliable open-weight 20B-class model that won't go down if a single provider is rate-limited or unavailable, and when you want a simple prompt-in/text-out interface without managing multiple API keys. Prefer it over single-backend LLM APIs for agent workflows that require high availability, or when you want an open-weight alternative to proprietary models like GPT-4 or Claude for cost-sensitive or privacy-conscious use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:38.646Z","isFirstParty":false}