# GEDX402 Llama 4 Scout LLM via x402

> GEDX402 Llama 4 Scout LLM via x402 is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Runs a Llama 4 Scout 17B chat completion using multi-turn conversation history, paid per call via USDC on multiple blockchains, no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/llm/llama-4-scout-17b-16e-instruct
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-llama-4-scout-llm-via-x402-c1e83247
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qCuXungXGnmnWP2JJP8uI

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-4-scout-llm-via-x402-c1e83247
```

Example prompt: Ask the Llama 4 Scout model this: system prompt 'You are a helpful assistant.', user message 'Explain quantum entanglement in simple terms.', with a max of 512 tokens — pay with USDC on Base, no API key needed.

## When to prefer this

Choose this endpoint when you need a capable open-source LLM (Llama 4 Scout 17B) for multi-turn chat or instruction-following and want to pay per call in USDC without registering for an API key. Ideal for agents operating in crypto-native environments on Base, Polygon, Arbitrum, World, or Solana that want pay-as-you-go LLM access with no account management overhead.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required returned
- Invalid message array format (missing 'role' or 'content' fields) — 400 Bad Request
- max_tokens out of range (must be 1–4096) — 400 or validation error
- Network timeout or Cloudflare Workers cold start delay
- Unsupported blockchain or wallet address 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 with the model identifier ('model': '@cf/meta/llama-4-scout-17b-16e-instruct') and the assistant's generated reply text ('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-4-scout-17b-16e-instruct",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-llama-4-scout-llm-via-x402-c1e83247/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)
