Skip to content
Fourohtwo

Pay-per-call chat completion on the small tier

pay.omnidev.tech/x402/chat-small

Pay-per-call chat completion on the small tier. One request returns one assistant message, limited to 8000 input and 1024 output tokens, at 0.008 USDC per call on Base. Payment settles after the response is produced. A client nonce header makes a retry free of a second charge.

BaseAnswering
POSThttps://pay.omnidev.tech/x402/chat-small

Uptime100% of 2 checks 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://pay.omnidev.tech/x402/chat-small", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"messages":[{"role":"user","content":"Summarize the x402 payment flow in one sentence."}],"max_tokens":64}),
});
console.log(await res.json());

Example input

{
  "messages": [
    {
      "role": "user",
      "content": "Summarize the x402 payment flow in one sentence."
    }
  ],
  "max_tokens": 64
}

More from OmniProviderProvider status