# Llama 3.1 8B Chat Completion (klane402)

> Llama 3.1 8B Chat Completion (klane402) is a paid API for AI agents from klane402.deanhiki.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Sends a prompt to a Llama 3.1 8B language model and returns a text reply, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://klane402.deanhiki.workers.dev/api/chat?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/llama-3-1-8b-chat-completion-klane402-93e04f38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bWtXTxcVADRVXqlWmj5Yc

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 llama-3-1-8b-chat-completion-klane402-93e04f38
```

Example prompt: Ask Llama 3.1 8B: 'Explain the difference between supervised and unsupervised learning in two sentences.'

## When to prefer this

Choose this endpoint when you need cheap, keyless LLM inference via USDC micropayment (x402 protocol) without managing API credentials. Ideal for agents that need occasional text generation at $0.002/call without committing to a subscription. Prefer over OpenAI/Anthropic hosted endpoints when cost minimization and pay-per-call billing are priorities, and Llama 3.1 8B quality is sufficient for the task.

## Known failure modes

- Missing or empty prompt parameter results in an error or empty reply
- Payment not accepted or USDC balance insufficient causes a 402 response and no completion
- Model timeout on very long prompts may result in truncated or no reply
- Malformed query string may cause server-side parsing errors

## How this service works

Chat completion (Llama 3.1 8B). Query: prompt, system (optional). Returns {reply}. $0.002 per call, no API key, pay per call in USDC.

## Output

A JSON object with a single field 'reply' containing the model's generated text response to the provided prompt.

## 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",
     "properties": {
      "prompt": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "reply": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/llama-3-1-8b-chat-completion-klane402-93e04f38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klane402.deanhiki.workers.dev](https://www.zero.xyz/host/klane402.deanhiki.workers.dev/llms.txt)
