{"uid":"cap_K4sGvyMHMVlRljHQsfhJH","slug":"money-reactor-ai-chat-completion-llama-3-1-via-x402-b2bae3b3","name":"Money Reactor AI Chat Completion (Llama 3.1 via x402)","description":"60+ agent-native micro APIs paid per call in USDC on Base via x402: fresh market data every call (market cap, top movers, funding rates, orderbook, RSI trading checklist, volatility, cycle position), funded bounty radar, honeypot trust scoring, token safety verdicts, AI chat (Llama 3.1), web reader, ERC-20 balances. No accounts, no API keys — instant on-chain settlement.","url":"https://mr-river8.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.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y7sBOMrSxDw-qkoXVZkkf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","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 model: 'What are the main differences between proof-of-work and proof-of-stake blockchains?' and pay the $0.05 USDC fee per call on Base.","exampleUseCases":[{"title":"On-chain LLM for autonomous agent reasoning","prompt":"My trading bot needs to summarize a block of crypto news into a one-paragraph briefing — can you send that text to the Llama 3.1 chat endpoint and get back the summary, paying the per-call USDC fee automatically?"},{"title":"No-account AI answer for a dApp user","prompt":"My dApp doesn't want to manage OpenAI keys — can you use the pay-per-call Llama 3.1 endpoint to answer a user's question: 'How does liquidity pooling work in DeFi?' and return the reply?"},{"title":"Agent self-reasoning step with crypto micropayment","prompt":"Before my agent decides whether to execute a swap, have it ask Llama 3.1 'Is now a good time to swap ETH for USDC given high fear and greed?' and use the x402 USDC micropayment to settle the inference cost on Base."}],"resultDescription":"Returns a JSON object containing the model name (@cf/meta/llama-3.1-8b-instruct), a 'reply' string with the AI-generated text response, and a 'usage' object with prompt_tokens and completion_tokens counts.","failureModes":["Insufficient USDC balance on Base — payment header rejected with 402","Malformed request body — missing or invalid prompt property returns 4xx error","Cloudflare Workers AI upstream timeout — LLM inference may time out on long prompts","Model unavailability — @cf/meta/llama-3.1-8b-instruct offline returns 503","x402 facilitator settlement failure — payment not confirmed, request not processed"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM chat completion with no account setup, no API key management, and on-chain USDC settlement via x402 on Base. It is ideal for autonomous AI agents that manage their own wallets and need to embed LLM reasoning into workflows without pre-negotiated subscriptions. Prefer it over OpenAI or Anthropic APIs when the agent operates in a crypto-native environment and needs trustless, per-call billing at $0.05 USDC. It runs Llama 3.1 8B, so it is best for moderate-complexity reasoning tasks rather than frontier-model benchmarks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:35:53.626Z","isFirstParty":false,"canonicalSlug":"money-reactor-ai-chat-completion-llama-3-1-via-x402-b2bae3b3"}