# Agent Hub – Llama 3.1 8B Fast Chat Completions

> Agent Hub – Llama 3.1 8B Fast Chat Completions is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

OpenAI-compatible chat completions powered by Meta Llama 3.1 8B, optimized for fast general-purpose text generation with per-request micropayment pricing via x402.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/chat/completions?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-llama-3-1-8b-fast-chat-completions-326c58c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1pGQpBUEXYzIuN6o8hw-N

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 agent-hub-llama-3-1-8b-fast-chat-completions-326c58c4
```

Example prompt: Using Llama 3.1 8B on Agent Hub, answer this question concisely with a temperature of 0.7 and up to 512 tokens: 'What are the main differences between REST and GraphQL APIs?'

## When to prefer this

Choose this endpoint when you need a fast, low-latency general-purpose chat completion without a long-term API subscription or key management overhead, and you want OpenAI SDK compatibility at $0.003 per call. Ideal for prototyping, high-variability workloads, or agent pipelines that need cost-per-call accounting. Prefer the sibling 70B endpoint for harder reasoning tasks; prefer this 8B model when speed and cost matter more than raw capability.

## Known failure modes

- Payment not included or insufficient USDC — request rejected with 402 Payment Required
- Prompt field missing from query parameters — 400 Bad Request
- max_tokens exceeds 2048 — may be capped or rejected
- Model name passed does not match any model at /v1/models — may fall back to default or error
- Network timeout on long generations — partial or no response returned
- Malformed temperature value (e.g. outside 0–2 range) — unpredictable behavior or 400 error

## How this service works

OpenAI-compatible chat completions on Meta Llama 3.1 8B, fast general chat. Set your OpenAI SDK base URL to https://agents.torbrooknews.com/v1 and pay $0.003 per request with x402 instead of an API key. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Pass model to switch to any same-price model listed at /v1/models. Also callable as GET with the same fields as query parameters.

## Output

Returns an OpenAI-shaped chat completion object with a choices array containing the assistant's generated message, finish reason, and token usage counts. Streaming is supported for incremental token delivery. The response is structurally identical to the OpenAI Chat Completions API.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "User message"
      },
      "system": {
       "type": "string",
       "description": "Optional system message"
      },
      "max_tokens": {
       "type": "integer"
      },
      "temperature": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-llama-3-1-8b-fast-chat-completions-326c58c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
