# GEDX402 Llama 3 8B Instruct (x402 Pay-per-Call)

> GEDX402 Llama 3 8B Instruct (x402 Pay-per-Call) 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-15).

Runs Llama 3 8B Instruct inference via Cloudflare Workers AI, billed per call at $0.02 USDC with no API key required — payment via x402 on Base, Polygon, Arbitrum, World, or Solana.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/llm/llama-3-8b-instruct
- 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-llama-3-8b-instruct-x402-pay-per-call-8f4e5dc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PaUWUkcHA7jjR7K-xhFCa

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-llama-3-8b-instruct-x402-pay-per-call-8f4e5dc2
```

Example prompt: Ask Llama 3 8B to explain quantum entanglement in simple terms — use a system prompt saying 'You are a helpful science tutor', limit the reply to 512 tokens, and pay the $0.02 USDC fee with my Base wallet via x402.

## When to prefer this

Choose this endpoint when you need permissionless LLM inference without registering for API keys — ideal for agents operating autonomously with a crypto wallet (Base, Polygon, Arbitrum, World, or Solana) that can pay $0.02 USDC per call via x402. Prefer over OpenAI or Anthropic APIs when avoiding centralized account management or when building pay-per-use pipelines with on-chain payments.

## Known failure modes

- Payment not received or insufficient USDC — 402 Payment Required response
- Invalid message role (not system/user/assistant) — schema validation error
- max_tokens out of range (must be 1–4096) — request rejected
- Malformed messages array (missing role or content fields) — 400 Bad Request
- Cloudflare Workers AI backend unavailable — 503 or timeout
- Unsupported payment network — payment rejected by facilitator

## 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 name (@cf/meta/llama-3-8b-instruct) and a 'response' string with the generated assistant reply text, up to the specified max_tokens limit.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-llama-3-8b-instruct-x402-pay-per-call-8f4e5dc2/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)
