# x402 LLM Gateway – Extended Tier (32K output)

> x402 LLM Gateway – Extended Tier (32K output) is a paid API for AI agents from api.erb-llm.com, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-15).

Serves OpenAI-compatible chat completions from a self-hosted 27B open-weight LLM with a 32,768-token output ceiling, billed at $0.20 USDC per call via the x402 protocol on Base — no API key required.

## Facts

- Endpoint: POST https://api.erb-llm.com/v1/extended
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-llm-gateway-extended-tier-32k-output-78c881de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oF4vm91WJCaqrdyNkyAb4

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 x402-llm-gateway-extended-tier-32k-output-78c881de -d '<json body>'
```

Example prompt: Write me a full 20-page technical report on the state of quantum computing in 2024 — use up to 32,000 tokens, set temperature to 0.7, and use the default model.

## When to prefer this

Choose this endpoint when you need the maximum possible output length (up to 32,768 tokens) in a single call — such as full document drafts, long reports, or complete multi-section content. Prefer it over the quick or long tiers only when output length justifies the $0.20/call price. Ideal for agents that need no API key management and can pay per call in USDC on Base. Use the cheaper quick tier for short responses and the long tier for mid-length outputs.

## Known failure modes

- Payment failure: x402 payment not accepted or insufficient USDC balance on Base — request rejected before processing
- Invalid messages array: missing required 'role' or 'content' fields returns a 400 validation error
- Model not found: specifying an invalid model ID returns a 404 or model-not-found error
- Token clamping: max_tokens values above 32,768 are silently clamped to 32,768, not rejected — output may be shorter than expected
- Rate limiting or capacity issues on the self-hosted infrastructure may return 503 or timeout errors
- Very long prompts consuming most of the context window may leave little room for output generation

## How this service works

Extended tier of the x402 LLM gateway: same self-hosted 27B open-weight LLM with the highest output ceiling (32,768 tokens) for long-form writing, reports and full document drafts. Pay per call in USDC on Base via x402 - no API key or account. OpenAI-compatible chat completions. Pick the cheaper quick/long tiers for shorter work.

## Output

A standard OpenAI-format chat completion response object containing the assistant's generated message. The output can be up to 32,768 tokens long. Includes the model used, finish reason, and token usage counts. Suitable for long-form documents, detailed reports, and multi-section content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Model ID from the free GET /v1/models endpoint (e.g. qwen/qwen3.8-27b). Optional - a default chat model is chosen if omitted."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "minItems": 1,
   "description": "OpenAI chat messages (system/user/assistant)."
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Optional output token ceiling. This tier caps output at 32768 tokens - higher values are clamped to 32768, not rejected. Use the long/extended tiers for bigger outputs."
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-llm-gateway-extended-tier-32k-output-78c881de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.erb-llm.com](https://www.zero.xyz/host/api.erb-llm.com/llms.txt)
