Skip to content
Fourohtwo

Per-request access to openai/gpt-oss-20b served by UniRouter

unirouter-monad.xyz/paid/openai-gpt-oss-20b/chat/completions

Per-request access to openai/gpt-oss-20b served by UniRouter

MonadAnswering
POSThttps://unirouter-monad.xyz/paid/openai-gpt-oss-20b/chat/completions

Uptime100% of 3 checks in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://unirouter-monad.xyz/paid/openai-gpt-oss-20b/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_tokens":256,"messages":[{"content":"What is x402?","role":"user"}]}),
});
console.log(await res.json());

Example input

{
  "max_tokens": 256,
  "messages": [
    {
      "content": "What is x402?",
      "role": "user"
    }
  ]
}

Compare