# FarOut Pay-Per-Call LLM Inference via x402

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

Routes a chat completion request to frontier LLMs (GLM, GPT, Gemini, Kimi, DeepSeek, MiniMax) and charges $0.001 USDC per call on Base or Solana via the x402 payment protocol — no API key or account required.

## Facts

- Endpoint: POST https://farouter.tech/v1/metered/chat/completions
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farout-pay-per-call-llm-inference-via-x402-38ad540d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UIy1915zum1VLiVB_EP-U

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-pay-per-call-llm-inference-via-x402-38ad540d -d '<json body>'
```

Example prompt: Using the FarOut metered endpoint with the DeepSeek model and a 512-token output budget, ask: 'Summarize the key risks of investing in small-cap crypto tokens in three bullet points.'

## When to prefer this

Choose this endpoint when an AI agent needs LLM inference without managing API keys, accounts, or subscriptions — especially in autonomous or agentic workflows where pay-per-call USDC micropayments via x402 are preferable to monthly billing. It is ideal when you want access to multiple frontier models (GLM, GPT, Gemini, Kimi, DeepSeek, MiniMax) through a single OpenAI-compatible interface, and when failed calls must never result in a charge.

## Known failure modes

- Payment declined or insufficient USDC balance — 402 response returned, no charge applied
- Invalid or unsupported model ID — endpoint returns an error before charging
- max_tokens not specified or set too low — response may be truncated or quota error returned
- Network timeout during streaming — partial SSE stream, billing outcome uncertain
- Malformed messages array (missing role or content) — validation error before inference begins

## How this service works

Pay-per-call LLM inference over x402. Frontier models (GLM, GPT, Gemini, Kimi, DeepSeek, MiniMax) billed per request in USDC on Base or Solana mainnet. No API key, no account. The 402 quotes your exact request; failed calls are never charged.

## Output

An OpenAI-compatible JSON response containing a choices array with the assistant's reply message and finish_reason, plus a usage object reporting prompt_tokens and completion_tokens consumed. The response reflects the exact model selected and the token budget specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Model id from GET /v1/metered/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",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "description": "Chat messages, [OI]-compatible {role, content}."
  },
  "max_tokens": {
   "type": "integer",
   "description": "Output token budget. Drives the quote directly."
  }
 }
}
```

## 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-pay-per-call-llm-inference-via-x402-38ad540d/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)
