{"uid":"cap_k3jaODd-6RrSRQbyCrkwa","slug":"agentrxi-llama-3-1-8b-chat-completions-e4972562","name":"AgentRXI Llama 3.1 8B Chat Completions","description":"OpenAI-compatible chat completions on Meta Llama 3.1 8B, fast general chat. Set your OpenAI SDK base URL to https://agentrxi.com/v1 and pay per token with x402 instead of an API key: $0.135 per million input and $1.152 per million output tokens, minimum $0.002 a call, at most $0.0053. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Pass model to use an","url":"https://agentrxi.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":{"type":"json","example":{"id":"chatcmpl-...","model":"llama-3.1-8b-instruct","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003183","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.003183/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003183","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003183","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WYhntf9QE7KOFheqAmd0x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003183","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible chat completions on Meta Llama 3.1 8B Instruct, billed per token via x402 micropayments instead of an API key.","exampleAgentPrompt":"Ask Llama 3.1 8B to write me a short professional bio for a software engineer with 5 years of experience, keeping it under 100 words — pay per token with x402.","exampleUseCases":[{"title":"Quick text summarization for agents","prompt":"Use Llama 3.1 8B to summarize this customer support transcript in 3 bullet points: 'Customer called about a billing error on their March invoice, agent confirmed the overcharge and issued a $12 refund, case closed.' Keep it concise."},{"title":"Lightweight coding assistant call","prompt":"Ask the Llama 3.1 8B model to write a Python function that takes a list of integers and returns only the even ones — I want a clean, well-commented answer."},{"title":"On-demand translation for a chatbot","prompt":"Have Llama 3.1 8B translate this English phrase into French: 'Your order has been shipped and will arrive in 3 business days.' Use a temperature of 0.2 so the result is consistent."}],"resultDescription":"Returns an OpenAI-format JSON object with a choices array containing the assistant message content, finish_reason, and an index; plus a usage object with prompt_tokens, completion_tokens, and total_tokens, and the model name.","failureModes":["Insufficient x402 payment balance causes 402 error before completion","Prompt too long for 2048 output token limit causes truncation or error","Malformed prompt or missing required field returns 400 bad request","Model occasionally produces low-quality output on complex reasoning tasks beyond 8B capability","Temporary service unavailability returns 503"],"whenToPreferThis":"Choose this endpoint when you need fast, low-cost general-purpose chat completions with a small open-source model (Llama 3.1 8B) and want to pay per token via x402 micropayments rather than maintaining an API key subscription. It is ideal for high-volume, latency-sensitive agent workloads where cost control matters and the task does not require frontier-model reasoning. Prefer the DeepSeek or QwQ siblings on this platform for math, logic, or chain-of-thought tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:53.611Z","isFirstParty":false,"canonicalSlug":"agentrxi-llama-3-1-8b-chat-completions-e4972562"}