Overview
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.
Protocol
x402 (POST)
Price
$0.01
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
Last Price
Indexed
2026-11-03 15:40:42
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"context": {
"currency": "USD",
"current_price": 49,
"product_id": "pro-plan",
"product_type": "saas"
},
"routing_preference": "default"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"alternatives": [],
"computed_price": 52.5,
"confidence": 0.82,
"currency": "USD",
"explanation": null,
"function_id": "0a6f3a52-5f1e-4f7c-8f0e-6b8f1d2c3e4a",
"function_name": "lastprice/cost-plus",
"metadata": {
"cached": false,
"model_version": "1",
"routing_reason": "default"
},
"metering": {
"compute_duration_ms": 41,
"cost": 0.01,
"input_units": 1,
"output_units": 1
},
"product_type": "saas",
"receipt": {
"id": "7b0f0c8e-1d2a-4c55-9a51-3f0f6f0b2c11"
},
"request_id": "7b0f0c8e-1d2a-4c55-9a51-3f0f6f0b2c11"
},
"type": "json"
}