OpenAI-compatible chat completions, flat $0.002 a call
onchaincheck.dev/v1/chat/completions
OpenAI-compatible chat completions, flat $0.002 a call: the same request and response as OpenAI's /v1/chat/completions (messages, model, max_tokens, temperature, response_format json_object, stream), so an OpenAI SDK works by changing the base URL. Models: llama-4-scout (default), gpt-oss-20b, qwen3-30b, glm-4.7-flash. Up to 10,000 characters in, 1,024 tokens out. Errors return 4xx/5xx JSON and ar
POST
https://onchaincheck.dev/v1/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://onchaincheck.dev/v1/chat/completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"messages":[{"content":"In one sentence, what is HTTP 402 Payment Required for?","role":"user"}],"model":"llama-4-scout"}),
});
console.log(await res.json());Example input
{
"messages": [
{
"content": "In one sentence, what is HTTP 402 Payment Required for?",
"role": "user"
}
],
"model": "llama-4-scout"
}