# GED X402 Smart Chat (Llama 3.1)

> GED X402 Smart Chat (Llama 3.1) is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Send a multi-turn conversation to a Llama 3.1 8B model hosted on Cloudflare Workers AI, paying per-call in USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/chat/smart
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ged-x402-smart-chat-llama-3-1-1becf69b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BMGkEa3_3BUJQfPNA7aaX

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 ged-x402-smart-chat-llama-3-1-1becf69b
```

Example prompt: Ask the AI: 'Explain the difference between proof-of-work and proof-of-stake in simple terms' — send it as the user message, limit the reply to 300 tokens, and pay using USDC on Base.

## When to prefer this

Choose this endpoint when you need on-demand LLM completions with no API key or subscription, paying only per call in USDC via the x402 protocol. Ideal for agents that want crypto-native AI access across Base, Polygon, Arbitrum, World, or Solana without managing API credentials.

## Known failure modes

- Payment not received or insufficient USDC — 402 response with payment instructions
- max_tokens out of range (must be 1–4096) — request rejected
- Malformed messages array missing required 'role' or 'content' fields — validation error
- Unsupported blockchain network for USDC payment — payment fails
- Model inference timeout on Cloudflare Workers — 500 or timeout error

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing the assistant's generated reply text and the model identifier used (e.g. '@cf/meta/llama-3.1-8b-instruct-fast').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "max_tokens": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/meta/llama-3.1-8b-instruct-fast",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ged-x402-smart-chat-llama-3-1-1becf69b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-chat.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-chat.jvalamis.workers.dev/llms.txt)
