# GEDX402 Llama-2-7B Chat (x402, no API key)

> GEDX402 Llama-2-7B Chat (x402, no API key) is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.082/call, status unknown (last checked 2026-09-15).

Runs a Llama-2-7B-Chat-FP16 inference call via Cloudflare Workers AI, paid per-call with USDC on-chain using x402 — no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/llm/llama-2-7b-chat-fp16
- Price: $0.082/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-2-7b-chat-x402-no-api-key-80444004
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YSkMI2RkWWCJt7IiLxNc8

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-2-7b-chat-x402-no-api-key-80444004
```

Example prompt: Ask the Llama-2-7B model (paying with USDC): 'You are a helpful assistant. Explain quantum entanglement in simple terms.' — limit the reply to 512 tokens.

## When to prefer this

Choose this endpoint when you need Llama-2-7B-Chat inference without managing API keys or subscriptions, and you can pay per-call with USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol. Ideal for agents operating in crypto-native environments or where traditional API credentials are impractical.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required with x402 payment details
- Invalid messages array (missing role or content fields) — 400 Bad Request
- max_tokens out of range (must be 1–4096) — 400 validation error
- Model overloaded or Workers AI backend error — 500 or 503
- Unsupported payment network — payment rejected before inference runs

## 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 name (@cf/meta/llama-2-7b-chat-fp16) and the generated assistant reply text string.

## 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-2-7b-chat-fp16",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-llama-2-7b-chat-x402-no-api-key-80444004/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)
