Frugal sends every task your agent makes to the smallest AI model that can handle it. Tagging a ticket doesn't need the biggest brain. A contract review does. You pay per call in USDG, and Frugal only takes a cut of what it saves you.
Choose a task. Frugal checks how hard it is, walks up the model ladder and stops at the first one good enough. Lower the safety margin to save more, and watch what happens when it cuts too close.
Your agent calls one endpoint instead of picking a model itself.
Frugal estimates how hard the task is from its type, length and the quality you ask for.
It picks the cheapest model above the bar. If the answer fails a check, it retries one step up.
One USDG payment with x402: the model's price plus 20% of what you saved. No saving, no fee.
You set the minimum quality. Frugal never routes below it to save a cent.
If the biggest model was the right one, you pay its price and nothing more.
When a small model's answer fails a check, the retry one step up isn't charged the fee.
Force a model for any task type. Frugal steps aside.
Which model, why, what it cost and what it would have cost. Per call.
Pay in USDG with x402. The facilitator pays gas. There's no Frugal token.
request
POST https://api.frugal.example/run { "task": "summarize", "input": "…email text…", "min_quality": 65 } ← 402 · 0.045¢ + fee // agent pays in USDG
response
{
"output": "…summary…",
"model": "wren",
"cost": "0.045¢",
"biggest_model_cost": "2.7¢",
"saved": "2.655¢",
"fee": "0.531¢",
"escalated": false
}From the task type, the input length and the minimum quality you set, plus how often each model passed similar tasks before. Unknown tasks start one step higher.
Frugal checks the answer's format and runs a quick self-check. If it fails, the task goes one step up the ladder automatically.
They're stand-ins for the size classes Frugal routes between, from tiny to frontier. The names and prices on this page are examples.
No. It signs a USDG payment with x402 and the facilitator pays gas.
No.
Let every task go to the model it actually needs.