# GEDX402 Llama 3.1 8B Instruct (x402 Pay-Per-Call)

> GEDX402 Llama 3.1 8B Instruct (x402 Pay-Per-Call) is a paid API for AI agents from chat.gedx402.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Runs inference on Meta's Llama 3.1 8B Instruct model via Cloudflare Workers AI, billed at $0.02 USDC per call with no API key required

## Facts

- Endpoint: GET https://chat.gedx402.com/v1/llm/llama-3.1-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-1-8b-instruct-x402-pay-per-call-a7739678
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Bee1VbCTI88d20L23sPB

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-pay-per-call-a7739678
```

Example prompt: Ask the Llama 3.1 8B model to explain how photosynthesis works — keep the reply under 200 tokens — and pay the $0.02 USDC fee from my Base wallet, no API key needed.

## When to prefer this

Choose this endpoint when you need LLM inference without registering for an API key, want to pay per-call in USDC via the x402 protocol on Base, Polygon, Arbitrum, World, or Solana, and the 8B parameter Llama 3.1 Instruct model is sufficient for the task. Ideal for agents operating in crypto-native or permissionless environments where traditional API key management is undesirable.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 response requiring x402 payment header
- Invalid messages array format (missing required role or content fields) — 400 validation error
- max_tokens exceeds 4096 — validation error
- Empty or malformed request body — 400 bad request
- Model temporarily unavailable on Cloudflare Workers AI — 503 or 500 error
- Unsupported blockchain network for payment — 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.1-8b-instruct) and a response string with the generated assistant reply.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string",
      "description": "Speaker role for this turn."
     },
     "content": {
      "type": "string",
      "description": "Message text for this turn."
     }
    }
   },
   "description": "Conversation turns in order (system, user, assistant)."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1,
   "description": "Maximum tokens to generate in the assistant reply."
  }
 }
}
```

## 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-pay-per-call-a7739678/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)
