{"uid":"cap_1pGQpBUEXYzIuN6o8hw-N","slug":"agent-hub-llama-3-1-8b-fast-chat-completions-326c58c4","name":"Agent Hub – Llama 3.1 8B Fast Chat Completions","description":"OpenAI-compatible chat completions on Meta Llama 3.1 8B, fast general chat. Set your OpenAI SDK base URL to https://agents.torbrooknews.com/v1 and pay $0.003 per request with x402 instead of an API key. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Pass model to switch to any same-price model listed at /v1/models. Also callable as GET with the same fields as query parameters.","url":"https://agents.torbrooknews.com/v1/chat/completions?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","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MFrJwM3qZYULq57YP09lU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions powered by Meta Llama 3.1 8B, optimized for fast general-purpose text generation with per-request micropayment pricing via x402.","exampleAgentPrompt":"Using Llama 3.1 8B on Agent Hub, answer this question concisely with a temperature of 0.7 and up to 512 tokens: 'What are the main differences between REST and GraphQL APIs?'","exampleUseCases":[{"title":"Rapid prototyping with cheap LLM calls","prompt":"I need a fast, cheap LLM to power my prototype chatbot — use Llama 3.1 8B on Agent Hub to respond to this user message: 'How do I get started with Python?' Keep it under 300 tokens."},{"title":"Automated content drafting pipeline","prompt":"Draft a two-sentence product description for a noise-cancelling headphone called 'SoundZen Pro' — use the Llama 3.1 8B model and keep temperature at 0.8, max 200 tokens."},{"title":"System-prompted assistant for customer FAQ","prompt":"Set the system message to 'You are a helpful customer support agent for a SaaS company' and then answer this user question with Llama 3.1 8B: 'How do I reset my password?' Limit to 150 tokens."}],"resultDescription":"Returns an OpenAI-shaped chat completion object with a choices array containing the assistant's generated message, finish reason, and token usage counts. Streaming is supported for incremental token delivery. The response is structurally identical to the OpenAI Chat Completions API.","failureModes":["Payment not included or insufficient USDC — request rejected with 402 Payment Required","Prompt field missing from query parameters — 400 Bad Request","max_tokens exceeds 2048 — may be capped or rejected","Model name passed does not match any model at /v1/models — may fall back to default or error","Network timeout on long generations — partial or no response returned","Malformed temperature value (e.g. outside 0–2 range) — unpredictable behavior or 400 error"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-latency general-purpose chat completion without a long-term API subscription or key management overhead, and you want OpenAI SDK compatibility at $0.003 per call. Ideal for prototyping, high-variability workloads, or agent pipelines that need cost-per-call accounting. Prefer the sibling 70B endpoint for harder reasoning tasks; prefer this 8B model when speed and cost matter more than raw capability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:46:33.459Z","isFirstParty":false,"canonicalSlug":"agent-hub-llama-3-1-8b-fast-chat-completions-326c58c4"}