# GEDX402 Llama-2-7B Chat (FP16) via x402

> GEDX402 Llama-2-7B Chat (FP16) via x402 is a paid API for AI agents from chat.gedx402.com, paid per call via x402, $0.082/call, status unknown (last checked 2026-09-14).

Runs inference on Meta's Llama-2-7B-Chat FP16 model, billed per-call in USDC over x402 with no API keys required

## Facts

- Endpoint: GET https://chat.gedx402.com/v1/llm/llama-2-7b-chat-fp16
- Price: $0.082/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-2-7b-chat-fp16-via-x402-5eaaee8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P-K52vOuIcWXv8v9xDQaO

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-fp16-via-x402-5eaaee8f
```

Example prompt: Using the Llama-2-7B chat model (no API key needed, paying per-call in USDC), send this conversation — system: 'You are a helpful assistant', user: 'Explain the concept of blockchain in two sentences' — and return up to 200 tokens.

## When to prefer this

Choose this endpoint when you need Llama-2-7B-Chat inference without API key management, prefer paying per-call in USDC via x402, want to use stablecoins on Base, Polygon, Arbitrum, World, or Solana, or are building a crypto-native agent pipeline that needs LLM access with on-chain micropayments.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required
- Invalid message role value (not system/user/assistant) — 400 Bad Request
- max_tokens exceeds 4096 — 400 validation error
- Empty messages array — may return error or empty response
- Network timeout on inference for long max_tokens values
- Unsupported payment chain — payment rejected if chain not among Base, Polygon, Arbitrum, World, Solana

## 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-2-7b-chat-fp16) and the assistant's generated text response string

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-llama-2-7b-chat-fp16-via-x402-5eaaee8f/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)
