F

FarOut LLM Gateway · Chat Completions

by FarOut LLM Gateway

POSTBaseSolana

$0.002

per call · USD Coin on Base

Fixed-price chat completions for deepseek-v4-pro on FarOut: flat $0.002 per call (includes up to 4,000 input + 1,000 output tokens). Rate: $0.063/1M input tokens, $0.190/1M output tokens. Pay with USDC on Base using x402. No API key, no account, no prepaid balance.

Endpoint

POST https://farouter.tech/v1/models/deepseek-v4-pro/chat/completions

7

Calls / 30d

2

Unique payers / 30d

Sep 3

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/models/deepseek-v4-pro/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "max_tokens": 50,
    "messages": [
      {
        "content": "hi",
        "role": "user"
      }
    ],
    "model": "deepseek-v4-pro"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://farouter.tech/v1/models/deepseek-v4-pro/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{"max_tokens":50,"messages":[{"content":"hi","role":"user"}],"model":"deepseek-v4-pro"}' \
  -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