flat-rate-llm.kikoribera03.workers.dev/v1/messages
Use when an agent is written against the Anthropic Messages API and must call a model with no account: the same request and response shape - system as its own field, content as text blocks, stop_reason - so pointing your client at this URL is all it takes. One flat price per call, whatever the size. Automatic failover across several large models. Do not use for the OpenAI shape (/v1/chat/completio
POST
https://flat-rate-llm.kikoribera03.workers.dev/v1/messagesUptimeNot 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://flat-rate-llm.kikoribera03.workers.dev/v1/messages", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":200,"messages":"[{\"role\":\"user\",\"content\":\"Summarise in one line what the x402 protocol is.\"}]"}),
});
console.log(await res.json());Example input
{
"max_tokens": 200,
"messages": "[{\"role\":\"user\",\"content\":\"Summarise in one line what the x402 protocol is.\"}]"
}