# AgentRXI Llama 3.1 8B Chat Completions

> AgentRXI Llama 3.1 8B Chat Completions is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.003183/call, status unknown (last checked 2026-10-15).

Runs OpenAI-compatible chat completions on Meta Llama 3.1 8B Instruct, billed per token via x402 micropayments instead of an API key.

## Facts

- Endpoint: GET https://agentrxi.com/v1/chat/completions?utm_source=zero.xyz
- Price: $0.003183/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-llama-3-1-8b-chat-completions-e4972562
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k3jaODd-6RrSRQbyCrkwa

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 agentrxi-llama-3-1-8b-chat-completions-e4972562
```

Example prompt: Ask Llama 3.1 8B to write me a short professional bio for a software engineer with 5 years of experience, keeping it under 100 words — pay per token with x402.

## When to prefer this

Choose this endpoint when you need fast, low-cost general-purpose chat completions with a small open-source model (Llama 3.1 8B) and want to pay per token via x402 micropayments rather than maintaining an API key subscription. It is ideal for high-volume, latency-sensitive agent workloads where cost control matters and the task does not require frontier-model reasoning. Prefer the DeepSeek or QwQ siblings on this platform for math, logic, or chain-of-thought tasks.

## Known failure modes

- Insufficient x402 payment balance causes 402 error before completion
- Prompt too long for 2048 output token limit causes truncation or error
- Malformed prompt or missing required field returns 400 bad request
- Model occasionally produces low-quality output on complex reasoning tasks beyond 8B capability
- Temporary service unavailability returns 503

## 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://agentrxi.com/v1 and pay per token with x402 instead of an API key: $0.135 per million input and $1.152 per million output tokens, minimum $0.002 a call, at most $0.0053. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Pass model to use an

## Output

Returns an OpenAI-format JSON object with a choices array containing the assistant message content, finish_reason, and an index; plus a usage object with prompt_tokens, completion_tokens, and total_tokens, and the model name.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "llama-3.1-8b-instruct",
  "usage": {
   "total_tokens": 18,
   "prompt_tokens": 14,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Bonjour !"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

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