# Money Reactor AI Chat Completion (Llama 3.1 via x402)

> Money Reactor AI Chat Completion (Llama 3.1 via x402) is a paid API for AI agents from mr-river8.makar52nn2016.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-11-21).

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.

## Facts

- Endpoint: POST https://mr-river8.makar52nn2016.workers.dev/api/ai-chat?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/money-reactor-ai-chat-completion-llama-3-1-via-x402-b2bae3b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K4sGvyMHMVlRljHQsfhJH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability money-reactor-ai-chat-completion-llama-3-1-via-x402-b2bae3b3 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/money-reactor-ai-chat-completion-llama-3-1-via-x402-b2bae3b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mr-river8.makar52nn2016.workers.dev](https://www.zero.xyz/host/mr-river8.makar52nn2016.workers.dev/llms.txt)
