F

FarOut LLM Gateway · Chat Completions

by FarOut LLM Gateway

POSTBaseSolana

$0.001

per call · USD Coin on Base

[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.

Endpoint

POST https://farouter.tech/v1/chat/completions

397

Calls / 30d

7

Unique payers / 30d

Sep 8

Last called

upto

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://farouter.tech/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "max_tokens": 50,
    "messages": [
      {
        "content": "hi",
        "role": "user"
      }
    ],
    "model": "glm-5.3"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://farouter.tech/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{"max_tokens":50,"messages":[{"content":"hi","role":"user"}],"model":"glm-5.3"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

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

Payment details

Pay to0x8e3c3e9c91cc0161b5e1cf138180ef3641d2371e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesupto, exact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from FarOut LLM Gateway & similar services