# GEDX402 Workers AI Chat Completions

> GEDX402 Workers AI Chat Completions 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-13).

Runs chat completions against Cloudflare Workers AI models, paid per-call with USDC on multiple blockchains via x402, no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/chat/completions
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-workers-ai-chat-completions-9f3d9685
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GKVwWlFQQPgz4VHVdJxDk

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-completions-9f3d9685
```

Example prompt: Send this conversation to the 'smart' Workers AI model and get a reply: system says 'You are a helpful assistant', user asks 'What is the capital of France?' — limit the response to 100 tokens and pay with USDC on Base.

## When to prefer this

Choose this endpoint when you need a permissionless, API-key-free LLM chat completion that accepts USDC micropayments on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol, and when you want OpenAI-compatible response format backed by Cloudflare Workers AI infrastructure.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required response
- Invalid or unsupported model ID — model not found error
- Messages array missing required role or content fields — validation error
- max_tokens out of allowed range (1–4096) — bad request error
- Network or Workers runtime error — 5xx server error
- Unsupported blockchain network specified for payment — payment failure

## How this service works

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

## Output

Returns an OpenAI-compatible chat completion JSON object containing the assistant's generated reply text, finish reason (e.g. 'stop'), message role, and a completion ID.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-example",
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

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