Works out what a call would cost
modell.halowerk.com/v1/cost-estimate
Works out what a call would cost. Give either the text itself or a token count, plus the expected output length, and get input, output, cache-read and cache-write cost per model with the total. Token counts derived from text are estimates from character and word statistics, not a tokeniser, and typically land within about 15 percent — where an exact count matters, count with the vendor tokeniser.
POST
https://modell.halowerk.com/v1/cost-estimateUptime100% of 4 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://modell.halowerk.com/v1/cost-estimate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"input_tokens":0,"text":"Beispieltext."}),
});
console.log(await res.json());Example input
{
"input_tokens": 0,
"text": "Beispieltext."
}