# ZeroReader Llama 3.1 8B Fast Chat Completion

> ZeroReader Llama 3.1 8B Fast Chat Completion is a paid API for AI agents from api.zeroreader.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-18).

Runs fast, cost-effective chat completions using Meta's Llama 3.1 8B model via a pay-per-call x402 API

## Facts

- Endpoint: POST https://api.zeroreader.com/v1/ai/llama-8b?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zeroreader-llama-3-1-8b-fast-chat-completion-c16f245c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A8hrdcE9cj2MLVO61ylDY

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 zeroreader-llama-3-1-8b-fast-chat-completion-c16f245c -d '<json body>'
```

Example prompt: Ask the Llama 3.1 8B model on ZeroReader: 'Explain the concept of blockchain in simple terms' — keep the response under 300 tokens and use a temperature of 0.7.

## When to prefer this

Choose this endpoint when you need fast, affordable LLM inference for straightforward chat or text generation tasks and cost per call matters. It outperforms larger models on speed and price for tasks that don't require deep reasoning or multimodal input. Prefer this over sibling endpoints like DeepSeek R1 32B when you don't need chain-of-thought reasoning, and over GPT-OSS 120B when you want to minimize latency and cost. Best for high-throughput, simple NLP tasks on a pay-per-call basis via x402.

## Known failure modes

- Payment not attached or insufficient USDC — endpoint returns 402 Payment Required
- messages array missing or malformed roles — returns 400 Bad Request
- temperature out of range (>2 or <0) — validation error
- max_tokens exceeds 4096 — request rejected
- Streaming requested but client not set up for SSE — partial or broken response
- Model overloaded — slow response or timeout

## How this service works

Llama 3.1 8B (Fast) — Best value. Fast inference, solid quality.

## Output

Returns an OpenAI-compatible chat completion object containing the assistant's generated message, finish reason (e.g. 'stop'), and a completion ID. The response includes the role ('assistant') and the full content string generated by Llama 3.1 8B.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "stream": {
   "type": "boolean",
   "default": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "integer",
   "default": 1024,
   "maximum": 4096
  },
  "temperature": {
   "type": "number",
   "default": 0.7,
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "id": "chatcmpl-example",
 "object": "chat.completion",
 "choices": [
  {
   "index": 0,
   "message": {
    "role": "assistant",
    "content": "I'm doing well!"
   },
   "finish_reason": "stop"
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zeroreader-llama-3-1-8b-fast-chat-completion-c16f245c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zeroreader.com](https://www.zero.xyz/host/api.zeroreader.com/llms.txt)
