# 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-15).

Pay-per-call LLM inference endpoint supporting OpenAI-compatible chat/reasoning/coding across 17 frontier models, billed per request in USDC on Base via x402

## Facts

- Endpoint: POST https://farouter.tech/v1/messages
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farout-llm-gateway-38ecd2c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2BWvmySG3sh909O0bbuBs

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-38ecd2c4 -d '<json body>'
```

Example prompt: Using FarOut, send the user message 'Explain quantum entanglement in two sentences' to glm-5.3 with a max of 200 output tokens and get the response.

## When to prefer this

Choose this endpoint when an autonomous agent needs keyless, accountless LLM inference paid per-call in USDC on Base via x402 — ideal for AI agents that must avoid subscription management, need access to a broad roster of frontier models (GPT-5.6, DeepSeek V4, Gemini 3.1, Kimi K3, GLM 5.3, MiniMax M3) through a single OpenAI-compatible interface, and require crypto-native micropayment billing with no prepaid balance.

## Known failure modes

- Payment failure or insufficient USDC balance on Base — returns 402 Payment Required
- Invalid or unrecognized model ID — returns 400 with model not found error
- max_tokens too low for the requested workload — truncated or empty completion
- messages array empty or malformed — returns 400 validation error
- Model temporarily unavailable — returns 503 or upstream timeout
- Streaming connection dropped mid-response — partial SSE stream

## 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

Returns an OpenAI-compatible JSON object with a choices array containing the assistant's message and finish_reason, plus a usage object showing prompt_tokens and completion_tokens consumed.

## 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-38ecd2c4/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)
