# FarOut LLM Gateway

> FarOut LLM Gateway is a paid API for AI agents from farouter.tech, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Pay-per-call LLM chat completion inference over x402 micropayments, supporting 17 frontier models with no API key or account required

## Facts

- Endpoint: POST https://farouter.tech/v1/chat/completions
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farout-llm-gateway-47c350f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NBIZp2bW0tdG6SX2YUl7T

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 farout-llm-gateway-47c350f5 -d '<json body>'
```

Example prompt: Using FarOut's pay-per-call gateway, send this message to DeepSeek V4 with a 512-token output budget and temperature 0.7: 'Explain the tradeoffs between RAG and fine-tuning for domain-specific Q&A.'

## When to prefer this

Choose FarOut when your agent needs on-demand LLM inference with no prior account setup, no prepaid credits, and no API key management — paying per call in USDC on Base via x402. Ideal for autonomous agents that need to call multiple frontier models (GPT-5.6, Gemini 3.1, DeepSeek V4, Kimi K3, GLM 5.3, MiniMax M3) without vendor lock-in, or when operating in trustless environments where holding API credentials is undesirable. Prefer alternatives when you need guaranteed rate limits, SLA-backed uptime, or persistent fine-tuned model access.

## Known failure modes

- Insufficient USDC balance on Base — payment rejected before inference runs
- Invalid or unsupported model ID — returns error listing available models
- messages array is empty or malformed — validation error before model call
- max_tokens set too high for selected model's context window — truncation or error
- Network timeout or model provider outage — gateway returns 5xx
- Streaming requested but client does not handle SSE — partial response consumption failure

## How this service works

[OI]-compatible LLM inference API for autonomous agents. Supports reasoning, coding and chat workloads. Pay with USDC on Base using x402 (upto scheme, true-up billing): the 402 quotes a spending CAP (estimated input tokens + your max_tokens at the model's per-1M price), and after the model answers you are settled for the ACTUAL usage — always <= the cap, never more. Minimum $0.001, cap $3.0 per call. Cached input bills at 10%. Failed calls are never charged. Any model from GET /v1/models.

## Output

An OpenAI-compatible JSON response containing one or more choices with the assistant's message content, finish reason (e.g. 'stop'), and token usage counts (prompt_tokens, completion_tokens).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Model id from GET /v1/models, e.g. glm-5.3. No provider prefix."
  },
  "stream": {
   "type": "boolean",
   "description": "SSE streaming."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "developer",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {}
    },
    "additionalProperties": true
   },
   "minItems": 1,
   "description": "Chat messages, [OI]-compatible {role, content}."
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Output token budget. Sets your spending cap; actual usage is what gets settled (true-up)."
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0,
   "description": "Sampling temperature."
  },
  "max_completion_tokens": {
   "type": "integer",
   "minimum": 1,
   "description": "Alias of max_tokens (gpt-5.x models)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "usage": {
   "prompt_tokens": 6,
   "completion_tokens": 8
  },
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "Hello! How can I help?"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farout-llm-gateway-47c350f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from farouter.tech](https://www.zero.xyz/host/farouter.tech/llms.txt)
