46trust / 100

Chat Completions

by FarOut LLM Gateway in AI models & inference

x402 APIPassing, checked 3 h ago

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

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
14.3%
Response time
2.4 s typical, 2.4 s slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -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"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffarouter.tech%2Fv1%2Fchat%2Fcompletions
const res = await pay("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"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 50,
  "messages": [
    {
      "content": "hi",
      "role": "user"
    }
  ],
  "model": "glm-5.3"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed4022.4 s$0.001
7 h agoPassed4022.4 s$0.001
11 h agoTimed out---
15 h agoTimed out---
19 h agoTimed out---
23 h agoTimed out---
27 h agoTimed out---
31 h agoTimed out---
36 h agoTimed out---
39 h agoTimed out---
44 h agoTimed out---
2 days agoTimed out---
2 days agoTimed out---
2 days agoTimed out---