flat-rate-llm.kikoribera03.workers.dev/v1/chat/completions
Use when an agent must call an LLM with no account and no token metering: chat completions with the exact request and response shape of the OpenAI API - point your existing client at this URL and it works, no code change. One flat price per call whatever the size of the prompt or the answer — no token metering, no API key, no account, no rate limit. Automatic failover across several large models.
POST
https://flat-rate-llm.kikoribera03.workers.dev/v1/chat/completionsUptime100% of 1 check 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://flat-rate-llm.kikoribera03.workers.dev/v1/chat/completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"messages":"[{\"role\":\"user\",\"content\":\"Summarise in one line what the x402 protocol is.\"}]"}),
});
console.log(await res.json());Example input
{
"messages": "[{\"role\":\"user\",\"content\":\"Summarise in one line what the x402 protocol is.\"}]"
}