Skip to content
Fourohtwo

router.inference.ai.exchange/x402/v1/chat/completions

OpenAI-compatible chat completions LLM inference API with no account or API key: one USDC payment buys one call. Hundreds of text models, such as GPT, Claude, Gemini, Llama, DeepSeek, Qwen and GLM; architect.auto picks one. An auction picks the cheapest eligible provider. It suits one-off LLM answers. The 402 gives the price for the model and max_tokens. GET /v1/models lists the models free; a tex

BaseAnswering
POSThttps://router.inference.ai.exchange/x402/v1/chat/completions

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://router.inference.ai.exchange/x402/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":64,"messages":[{"content":"Say hello.","role":"user"}],"model":"architect.auto"}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 64,
  "messages": [
    {
      "content": "Say hello.",
      "role": "user"
    }
  ],
  "model": "architect.auto"
}

More from Architect Chat CompletionsProvider status