Last Price computes what one thing should cost
last-price.ai/api/compute/price
Last Price computes what one thing should cost. Send the product context (type, unit cost, current price, currency) and get a price with its confidence, alternatives and a receipt. Use it before an agent quotes, buys, pays a service or places an order, so the amount it commits has a reason behind it. POST /api/compute/price.
POST
https://last-price.ai/api/compute/priceUptime100% 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
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://last-price.ai/api/compute/price", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"context":{"currency":"USD","current_price":49,"product_id":"pro-plan","product_type":"saas"},"routing_preference":"default"}),
});
console.log(await res.json());Example input
{
"context": {
"currency": "USD",
"current_price": 49,
"product_id": "pro-plan",
"product_type": "saas"
},
"routing_preference": "default"
}