LLM inference and AI chat over x402
apexfaucet.xyz/api/x402/chat-completions
LLM inference and AI chat over x402: OpenAI-compatible chat completion for $0.002: gpt-oss-120b by default, or gpt-oss-20b, llama-3.3-70b, llama-3.1-8b, qwen3-30b. POST {model, messages}; up to 1,024 output tokens, tools supported, no streaming. OpenAI-compatible chat completion (gpt-oss-120b default; gpt-oss-20b, llama-3.3-70b, llama-3.1-8b, qwen3-30b). POST {model, messages, max_tokens<=1024}.
POST
https://apexfaucet.xyz/api/x402/chat-completionsUptime100% of 5 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://apexfaucet.xyz/api/x402/chat-completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"model":"gpt-oss-120b","messages":[{"role":"user","content":"Explain x402 in one sentence."}],"max_tokens":256}),
});
console.log(await res.json());Example input
{
"model": "gpt-oss-120b",
"messages": [
{
"role": "user",
"content": "Explain x402 in one sentence."
}
],
"max_tokens": 256
}