{"uid":"cap_bWtXTxcVADRVXqlWmj5Yc","slug":"llama-3-1-8b-chat-completion-klane402-93e04f38","name":"Llama 3.1 8B Chat Completion (klane402)","description":"Chat completion (Llama 3.1 8B). Query: prompt, system (optional). Returns {reply}. $0.002 per call, no API key, pay per call in USDC.","url":"https://klane402.deanhiki.workers.dev/api/chat?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"prompt":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"reply":"..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ydNzWygQ4150QLTIcdOCU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a prompt to a Llama 3.1 8B language model and returns a text reply, paid per-call in USDC via x402.","exampleAgentPrompt":"Ask Llama 3.1 8B: 'Explain the difference between supervised and unsupervised learning in two sentences.'","exampleUseCases":[{"title":"Quick factual question answering","prompt":"Ask the Llama 3.1 AI: what are the three main causes of inflation? Keep the answer under 100 words."},{"title":"Creative writing assistance","prompt":"Use the AI to write a short product description for a noise-cancelling headphone aimed at remote workers — keep it punchy, under 60 words."},{"title":"Summarize or reformat text","prompt":"I have this paragraph of legalese and I need it rewritten in plain English for a general audience — can you send it through the Llama model with a system prompt saying 'You are a plain-language editor'?"}],"resultDescription":"A JSON object with a single field 'reply' containing the model's generated text response to the provided prompt.","failureModes":["Missing or empty prompt parameter results in an error or empty reply","Payment not accepted or USDC balance insufficient causes a 402 response and no completion","Model timeout on very long prompts may result in truncated or no reply","Malformed query string may cause server-side parsing errors"],"whenToPreferThis":"Choose this endpoint when you need cheap, keyless LLM inference via USDC micropayment (x402 protocol) without managing API credentials. Ideal for agents that need occasional text generation at $0.002/call without committing to a subscription. Prefer over OpenAI/Anthropic hosted endpoints when cost minimization and pay-per-call billing are priorities, and Llama 3.1 8B quality is sufficient for the task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:48.601Z","isFirstParty":false,"canonicalSlug":"llama-3-1-8b-chat-completion-klane402-93e04f38"}