{"uid":"cap_A8hrdcE9cj2MLVO61ylDY","slug":"zeroreader-llama-3-1-8b-fast-chat-completion-c16f245c","name":"ZeroReader Llama 3.1 8B Fast Chat Completion","description":"Llama 3.1 8B (Fast) — Best value. Fast inference, solid quality.","url":"https://api.zeroreader.com/v1/ai/llama-8b?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stream":{"type":"boolean","default":false},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","default":1024,"maximum":4096},"temperature":{"type":"number","default":0.7,"maximum":2,"minimum":0}}},"responseSchema":{"id":"chatcmpl-example","object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"I'm doing well!"},"finish_reason":"stop"}]},"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_j2ux-EDWiZymPqraSswKj","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":"Runs fast, cost-effective chat completions using Meta's Llama 3.1 8B model via a pay-per-call x402 API","exampleAgentPrompt":"Ask the Llama 3.1 8B model on ZeroReader: 'Explain the concept of blockchain in simple terms' — keep the response under 300 tokens and use a temperature of 0.7.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible chat completion object containing the assistant's generated message, finish reason (e.g. 'stop'), and a completion ID. The response includes the role ('assistant') and the full content string generated by Llama 3.1 8B.","failureModes":["Payment not attached or insufficient USDC — endpoint returns 402 Payment Required","messages array missing or malformed roles — returns 400 Bad Request","temperature out of range (>2 or <0) — validation error","max_tokens exceeds 4096 — request rejected","Streaming requested but client not set up for SSE — partial or broken response","Model overloaded — slow response or timeout"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable LLM inference for straightforward chat or text generation tasks and cost per call matters. It outperforms larger models on speed and price for tasks that don't require deep reasoning or multimodal input. Prefer this over sibling endpoints like DeepSeek R1 32B when you don't need chain-of-thought reasoning, and over GPT-OSS 120B when you want to minimize latency and cost. Best for high-throughput, simple NLP tasks on a pay-per-call basis via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:42:33.675Z","isFirstParty":false,"canonicalSlug":"zeroreader-llama-3-1-8b-fast-chat-completion-c16f245c"}