Skip to content
Fourohtwo

router.inference.architect.co/x402/v1/chat/completions

An OpenAI chat completion from any text model on Architect Inference, the auction exchange for LLM inference. The body names the model, and architect.auto lets the exchange pick one. GET /v1/models on the same host lists the model names at no charge; a text model has the modality text. The price depends on the model and on max_tokens.

BaseAnswering
POSThttps://router.inference.architect.co/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.architect.co/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