# GEDX402 Workers AI Chat

> GEDX402 Workers AI Chat is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Runs a Llama 3.2 3B chat completion via Cloudflare Workers AI, paid per-call with USDC on multiple chains using x402, no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/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-workers-ai-chat-0152e93b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IaQv00n1f6folO9R9d7f1

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-workers-ai-chat-0152e93b
```

Example prompt: Send this conversation to the Llama 3.2 Workers AI chat endpoint — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in two sentences' — and limit the reply to 200 tokens, paying with USDC.

## When to prefer this

Choose this endpoint when you need a lightweight chat completion from Llama 3.2 3B without registering for API keys, and want to pay per-call using USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol. Ideal for agents operating in crypto-native environments or experimenting with pay-per-use AI inference.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 Payment Required
- Invalid message array format or missing required role/content fields — returns 400 Bad Request
- max_tokens out of range (must be 1–4096) — validation error
- Network timeout or Workers runtime error — returns 5xx
- Unsupported payment chain — payment rejected

## 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 model identifier (@cf/meta/llama-3.2-3b-instruct) and a 'response' string with the assistant's generated reply text.

## 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.2-3b-instruct",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-workers-ai-chat-0152e93b/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)
