{"uid":"cap_6WFw_nDmJv9LSWkLqzTJ7","slug":"money-reactor-ai-chat-completion-llama-3-1-x402-4688f0ed","name":"Money Reactor AI Chat Completion (Llama 3.1, x402)","description":"22 agent-native micro APIs paid per call in USDC on Base via x402: funded bounty radar, honeypot trust scoring, token safety verdicts, crypto prices, multi-asset price snapshots, fear &amp; greed index, full market-pulse snapshot, AI chat completion (Llama 3.1), crypto news, weather, web reader, ERC-20 balances. No accounts, no API keys — instant on-chain settlement.","url":"https://mr-river6.makar52nn2016.workers.dev/api/ai-chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"model":"@cf/meta/llama-3.1-8b-instruct","reply":"x402 lets an AI agent pay an API per call with on-chain USDC — no signup, the payment travels in the HTTP header.","usage":{"prompt_tokens":14,"completion_tokens":31}}},"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_SB6oKEOxwO94yNXz5TSKW","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 Llama 3.1 8B chat completion request paid per-call in USDC on Base via x402, with no API keys or accounts required.","exampleAgentPrompt":"Ask the Llama 3.1 AI chat endpoint: 'What are the main advantages of using x402 for AI agent payments?' — pay per call in USDC, no API key needed.","exampleUseCases":[{"title":"On-chain anonymous AI Q&A","prompt":"I need to ask an AI a quick question about smart contract security without signing up for anything — just pay per call with crypto. Ask it: 'What are the top three vulnerabilities to audit in a Solidity ERC-20 contract?'"},{"title":"Agent-to-agent LLM reasoning step","prompt":"My agent needs a one-off reasoning step from Llama 3.1 to summarize this crypto news headline into a risk assessment: 'Major exchange halts withdrawals amid liquidity concerns.' Use the x402 pay-per-call AI chat and return the reply."},{"title":"Crypto-native chatbot prototype","prompt":"I'm building a small demo that answers user questions about DeFi using Llama 3.1 — can you send the prompt 'Explain liquidity pools in one paragraph for a beginner' to the Money Reactor AI chat endpoint and show me the response and token usage?"}],"resultDescription":"Returns a JSON object containing the model identifier (@cf/meta/llama-3.1-8b-instruct), the generated reply text, and a usage object with prompt_tokens and completion_tokens counts.","failureModes":["Insufficient USDC balance in x402 payment header — returns HTTP 402 Payment Required","Malformed or missing prompt property in request body — may return 400 or empty reply","Llama 3.1 inference timeout on Cloudflare Workers edge — may return 503 or truncated response","On-chain payment settlement failure on Base network — request rejected before inference runs","Rate or quota limits on the underlying Cloudflare Workers AI model — 429 or error reply"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, anonymous, pay-per-call LLM inference without any account registration or API key management, and you are already operating in a crypto-native or x402-enabled agent stack settling in USDC on Base. It is ideal for one-off or low-frequency AI completions where subscription overhead is undesirable. Prefer established OpenAI or Anthropic APIs when you need higher model quality, larger context windows, function calling, or guaranteed SLAs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:42:11.483Z","isFirstParty":false,"canonicalSlug":"money-reactor-ai-chat-completion-llama-3-1-x402-4688f0ed"}