# GEDX402 Llama 3.1 8B Instruct (x402, No API Key)

> GEDX402 Llama 3.1 8B Instruct (x402, No API Key) 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-14).

Runs inference on Meta's Llama 3.1 8B Instruct model via Cloudflare Workers AI, paid per-call with USDC on multiple chains — no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/llm/llama-3.1-8b-instruct
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-llama-3-1-8b-instruct-x402-no-api-key-657f4468
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cXhvXs8cWgh5GNb192fy8

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-1-8b-instruct-x402-no-api-key-657f4468
```

Example prompt: Ask the Llama 3.1 8B model (paying $0.02 USDC on Base) to explain quantum entanglement in simple terms — use a system prompt saying 'You are a helpful science tutor' and limit the reply to 300 tokens.

## When to prefer this

Choose this endpoint when you need pay-per-call LLM inference with no API key registration, especially when paying from a crypto wallet on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents operating in web3 environments or workflows where traditional API key management is impractical. Best for short-to-medium chat completions with Llama 3.1 8B quality.

## Known failure modes

- Payment not received or insufficient USDC balance → 402 Payment Required
- Invalid or malformed messages array (missing role/content) → 400 Bad Request
- max_tokens exceeds 4096 → validation error
- Network timeout on Cloudflare Workers edge → 503
- Unsupported blockchain network supplied during payment → payment failure

## 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 ('model': '@cf/meta/llama-3.1-8b-instruct') and the generated assistant reply text ('response'). No streaming — single synchronous response.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-llama-3-1-8b-instruct-x402-no-api-key-657f4468/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)
