# GEDX402 Smart Chat (x402)

> GEDX402 Smart Chat (x402) is a paid API for AI agents from chat.gedx402.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Runs a multi-turn AI chat conversation via Cloudflare Workers AI (Llama 3.1 8B) with per-call USDC micropayment, no API key required.

## Facts

- Endpoint: GET https://chat.gedx402.com/v1/chat/smart
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-smart-chat-x402-9ddcaf78
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GslNEeoFgk1iA-wZMXNOh

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 gedx402-smart-chat-x402-9ddcaf78
```

Example prompt: Ask the AI: 'What are three creative names for a coffee shop in Brooklyn?' — send it as a user message with a max of 200 tokens, and pay the $0.02 USDC fee on Base using x402.

## When to prefer this

Choose this endpoint when you need a quick, no-signup LLM chat call and can pay $0.02 USDC per request via x402 on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that want to avoid API key management entirely and use stablecoin micropayments for AI inference. The underlying model is Llama 3.1 8B fast, so best for moderate-complexity conversational or generative tasks.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 with payment requirements
- Messages array missing required role or content fields — returns 400 validation error
- max_tokens exceeds 4096 — returns 400 out-of-range error
- Upstream Workers AI model unavailable — returns 502 or 503
- Malformed JSON body — returns 400 parse error

## How this service works

Higher-quality chat on Llama 3.1 8B Instruct Fast (@cf/meta/llama-3.1-8b-instruct-fast). POST messages[]; suited for reasoning-heavy turns with dynamic token pricing.

## Output

A JSON object containing the model name (@cf/meta/llama-3.1-8b-instruct-fast) and the assistant's generated reply text as a string.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-smart-chat-x402-9ddcaf78/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.gedx402.com](https://www.zero.xyz/host/chat.gedx402.com/llms.txt)
