78trust / 100
Yield Cost
by Kitchen Pass Chef API in Security & trust
x402 APIPassing, checked 3 min ago
Raw vs cooked weight and cost per portion: what brisket yields after trim and cook loss, from head chef Cristopher's verified ranges. Send ingredient, weight bought, price paid, optional portions; get usable and cooked weight (best/mid/worst), cost per kg and per portion, with workings. Also whole salmon, pumpkin, onion, soft herbs (trim only); others 404 with suggestions. Refused, never guessed: allergen, curing and preserving terms. Only a 200 answer is charged; refusals and 404s are free.
POST https://kitchen-pass.netlify.app/v1/yield-cost
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 499 ms typical, 664 ms slowest 5%
- Last check
- 3 min ago
- Next check
- in 28 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://kitchen-pass.netlify.app/v1/yield-cost" \
-H "content-type: application/json" \
-d '{"ingredient":"brisket","portionSize":{"qty":180,"unit":"g"},"price":95,"purchased":{"qty":5,"unit":"kg"}}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fkitchen-pass.netlify.app%2Fv1%2Fyield-cost
const res = await pay("https://kitchen-pass.netlify.app/v1/yield-cost", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"ingredient":"brisket","portionSize":{"qty":180,"unit":"g"},"price":95,"purchased":{"qty":5,"unit":"kg"}}),
});
console.log(await res.json());Example input
{
"ingredient": "brisket",
"portionSize": {
"qty": 180,
"unit": "g"
},
"price": 95,
"purchased": {
"qty": 5,
"unit": "kg"
}
}Example output
{
"ingredient": "whole brisket",
"portion": {
"costPerPortion": {
"proportional": {
"mid": 6.54
},
"wholePortion": {
"mid": 6.79
}
}
},
"status": "ok",
"trimPct": {
"high": 25,
"low": 20
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 min ago | Passed | 402 | 476 ms | $0.01 |
| 3 h ago | Passed | 402 | 570 ms | $0.01 |
| 7 h ago | Passed | 402 | 408 ms | $0.01 |
| 10 h ago | Passed | 402 | 413 ms | $0.01 |
| 14 h ago | Passed | 402 | 406 ms | $0.01 |
| 18 h ago | Passed | 402 | 611 ms | $0.01 |
| 21 h ago | Passed | 402 | 694 ms | $0.01 |
| 26 h ago | Passed | 402 | 499 ms | $0.01 |
| 29 h ago | Passed | 402 | 664 ms | $0.01 |
| 32 h ago | Passed | 402 | 404 ms | $0.01 |
| 37 h ago | Passed | 402 | 513 ms | $0.01 |