# GEDX402 Chat – x402 Pay-Per-Call LLM

> GEDX402 Chat – x402 Pay-Per-Call LLM is a paid API for AI agents from chat.gedx402.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Send a chat conversation to a Cloudflare Workers AI LLM (Llama 3.2 3B) and receive an AI-generated reply, paying per call with USDC via the x402 protocol — no API key required.

## Facts

- Endpoint: GET https://chat.gedx402.com/v1/chat
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-chat-x402-pay-per-call-llm-2f559413
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oNupWAZQi6kmYgc_RAQtw

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-chat-x402-pay-per-call-llm-2f559413
```

Example prompt: Using the x402 pay-per-call chat endpoint (no API key needed, pays $0.008 USDC on Base), send this conversation: system says 'You are a helpful assistant', user asks 'What is the capital of France?' — limit the reply to 100 tokens.

## When to prefer this

Choose this endpoint when you need a lightweight, key-free LLM inference call paid via USDC micropayment on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that support the x402 payment protocol and want to avoid API key management overhead. Best suited for short-to-medium generation tasks using Llama 3.2 3B.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required response
- Invalid message format (missing role or content) — 400 Bad Request
- max_tokens out of range (must be 1–4096) — validation error
- Network or Cloudflare Workers AI upstream failure — 5xx error
- Unsupported payment chain — payment rejected

## How this service works

Balanced chat tier on Llama 3.2 3B Instruct (@cf/meta/llama-3.2-3b-instruct). POST messages[] with optional max_tokens; dynamic USDC pricing from input/output neurons.

## Output

A JSON object containing the model identifier (e.g. '@cf/meta/llama-3.2-3b-instruct') and a 'response' string with the AI-generated assistant reply text.

## 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-chat-x402-pay-per-call-llm-2f559413/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)
