Budgets per model
The owner caps what an agent may spend on each model per day and per task. When the cheapest model has used its budget, a request for a level moves to the next model up. A request for that exact model is refused with the reason.
Models are where agents spend the most. On Purser an agent pays for each call at the price the provider charges, from an account its owner controls, with the same rules, firewall and receipts as every other payment.
Each call is charged at the provider's price and paid from the agent's own account, through its rules and the firewall.
A small prepaid credit, topped up from the account by at least $0.25 at a time. Each call takes its exact cost from it; what is left stays for the next calls.
Ask for fast, balanced or best. Purser picks the lowest priced model at that level that is still inside your budgets.
| Model | Input | Output | Markup |
|---|---|---|---|
| Claude Haiku 5.5 | $0.10 | $0.50 | $0 |
| Claude Sonnet 5.5 | $2 | $10 | $0 |
| Claude Opus 5.5 | $4 | $20 | $0 |
Claude Haiku 5.5 has a second rate for prompts above 100,000 tokens ($0.50 in, $2.50 out), the same as the provider charges. The model price has no markup; when the calls are paid, the usual Purser fee of 0.1% applies to that payment, as on every payment.
The most the call can cost is taken from the credit first. When the credit is short, the account tops it up on chain, under its rules and the firewall. If it cannot, the model is never asked.
Purser sends the request to the provider and returns the answer in the OpenAI format your framework already speaks.
The tokens the call really used, times the provider's price. No markup, rounded to the millionth of a dollar.
What the call did not use goes back to the credit. Top-ups are at least $0.25, so gas never costs more than the calls.
The owner caps what an agent may spend on each model per day and per task. When the cheapest model has used its budget, a request for a level moves to the next model up. A request for that exact model is refused with the reason.
Every payment is a receipt with the model and the tokens. The books show cost per model and per task, and every call adds to the open price index of AI work on the network page.
import OpenAI from "openai";
// the agent's own Purser key, nothing else to set up
const ai = new OpenAI({ apiKey: process.env.PURSER_API_KEY, baseURL: "https://purseragents.fun/v1" });
const r = await ai.chat.completions.create({
model: "auto:fast", // or auto:balanced, auto:best, purser/claude-sonnet-5-5
messages: [{ role: "user", content: "Summarise this report in three lines." }],
});
// r.purser.costUsd is what the call cost, at the provider's price