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.
POST
https://pay.omnidev.tech/x402/chat-smallUptime100% 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
- pay.omnidev.tech/x402/briefPay-per-call cited research brief. The request carries a query and 1 to 12 quotes with source URLs; the response is a short brief that cites only those quotes, at 0.008 USDC per call on Base. Payment settles after the brief is produced. A client nonce header makes a retry free of a second charge.0.008
- pay.omnidev.tech/x402/chat-nanoPay-per-call chat completion on the nano tier. One request returns one assistant message, limited to 1000 input and 256 output tokens, at 0.006 USDC per call on Base. Payment settles after the response is produced. A client nonce header makes a retry free of a second charge.0.006
