OpenAI-compatible chat completions, pro tier
agent402.tools/v1/pro/chat/completions
OpenAI-compatible chat completions, pro tier: gpt-4o, gpt-4.1, gpt-6 sol, claude sonnet, gemini pro, grok - paid per call in USDC over x402. Same wire format as /v1/chat/completions with higher input/output caps (48k chars in, 4096 tokens out).
POST
https://agent402.tools/v1/pro/chat/completionsUptimeNot checked yet
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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent402.tools/v1/pro/chat/completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"model":"openai/gpt-4o","messages":[{"role":"user","content":"Reply with exactly: OK"}],"max_tokens":5}),
});
console.log(await res.json());Example input
{
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Reply with exactly: OK"
}
],
"max_tokens": 5
}