# 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-river4.makar52nn2016.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-11-18).

Runs an AI chat completion using Meta Llama 3.1 8B, paid per call in USDC on Base via x402 — no API keys required.

## Facts

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

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-fd337e69 -d '<json body>'
```

Example prompt: Ask the AI chat endpoint: 'Explain how the x402 payment protocol works for AI agents' — pay per call with USDC on Base, no API key needed.

## When to prefer this

Choose this endpoint when your agent needs on-demand LLM inference without API key management or subscription commitments, particularly in autonomous or multi-agent workflows where per-call USDC micro-payments via x402 are preferable to pre-negotiated credentials. Best suited for low-to-medium frequency one-off inference calls where the $0.05/call cost is acceptable and keyless on-chain settlement is a feature, not a constraint.

## Known failure modes

- Payment not included or insufficient USDC — 402 Payment Required returned
- Malformed request body — missing or invalid prompt field returns an error
- Cloudflare Worker timeout if inference takes too long
- On-chain payment settlement failure due to network congestion on Base
- Empty or nonsensical prompt producing low-quality or empty reply

## 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 identifier (@cf/meta/llama-3.1-8b-instruct), the AI-generated reply string, 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-fd337e69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mr-river4.makar52nn2016.workers.dev](https://www.zero.xyz/host/mr-river4.makar52nn2016.workers.dev/llms.txt)
