# Llama 3.1 8B Metered Chat (Telnyx Inference)

> Llama 3.1 8B Metered Chat (Telnyx Inference) is a paid API for AI agents from x402.telnyx.com, paid per call via x402, $0.014849/call, status unknown (last checked 2026-11-22).

Provides OpenAI-compatible chat completions using Meta-Llama-3.1-8B-Instruct via Telnyx Inference, billed per-call with metered large-context support up to 200K characters

## Facts

- Endpoint: POST https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b/upto?utm_source=zero.xyz
- Price: $0.014849/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/llama-3-1-8b-metered-chat-telnyx-inference-323b72ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u2jSYVVTkUhyVLvhBl6QP

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-metered-chat-telnyx-inference-323b72ef -d '<json body>'
```

Example prompt: Using the Llama 3.1 8B model on Telnyx, send this conversation — system: 'You are a helpful coding assistant', user: 'Write a Python function that reverses a string' — with temperature 0.7 and up to 512 tokens.

## When to prefer this

Choose this endpoint when you need a cost-effective, fast, OpenAI-compatible LLM call using Meta-Llama-3.1-8B-Instruct with large-context (metered) support and pay-per-call x402 billing — ideal for agentic pipelines that need predictable per-request costs without API key management. Prefer the 70B sibling when reasoning quality matters more than cost; prefer this 8B endpoint for high-throughput, latency-sensitive, or budget-constrained workloads.

## Known failure modes

- Payment failure: x402 payment not accepted or insufficient USDC balance returns 402
- Context overflow: messages exceeding 200,000 characters returns 400 or truncation error
- Invalid role: messages with unsupported roles return 422 validation error
- Token limit exceeded: max_tokens above 4096 returns 422
- Too many tools: more than 16 tool definitions returns 422
- Model unavailable: transient Telnyx Inference outage returns 503

## How this service works

Chat completions via Telnyx Inference (meta-llama/Meta-Llama-3.1-8B-Instruct). OpenAI-compatible. $0.002237 USDC per call. (upto metered — large context)

## Output

Returns an OpenAI-compatible chat completion object containing the assistant's generated message, finish reason, token usage statistics, and optionally tool call requests if tools were supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "const": 1,
   "description": "Fixed to one completion per paid call."
  },
  "model": {
   "type": "string",
   "const": "meta-llama/Meta-Llama-3.1-8B-Instruct",
   "description": "Model identifier; fixed to meta-llama/Meta-Llama-3.1-8B-Instruct on this route."
  },
  "tools": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "maxItems": 16
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "type": [
       "string",
       "null"
      ],
      "maxLength": 200000,
      "description": "Required, except null/omitted on assistant messages that carry tool_calls."
     },
     "reasoning": {
      "type": "string",
      "maxLength": 200000,
      "description": "Assistant messages only: the reasoning returned with that turn, sent back on multi-turn and tool-call loops. Counts toward the message character limits."
     },
     "reasoning_content": {
      "type": "string",
      "maxLength": 200000,
      "description": "Assistant messages only: alternative name for reasoning (as returned by GLM and gpt-oss)."
     }
    }
   },
   "maxItems": 32,
   "description": "OpenAI-style chat messages."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## More

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