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

WhenResultHTTPTimePrice
3 min agoPassed402476 ms$0.01
3 h agoPassed402570 ms$0.01
7 h agoPassed402408 ms$0.01
10 h agoPassed402413 ms$0.01
14 h agoPassed402406 ms$0.01
18 h agoPassed402611 ms$0.01
21 h agoPassed402694 ms$0.01
26 h agoPassed402499 ms$0.01
29 h agoPassed402664 ms$0.01
32 h agoPassed402404 ms$0.01
37 h agoPassed402513 ms$0.01