Skip to content
Fourohtwo

Cooking measurement API

x402.forgemesh.io/convert-cooking

Cooking measurement API: convert between cups, tbsp, tsp, ml, l, fl-oz, grams, kg, oz, lb — including volume↔weight using typical densities for 40+ ingredients (flour, sugar, butter, honey, rice...). A cup of flour is 120g but a cup of honey is 340g. For recipe scaling and grocery agents. Density results labeled approximate.

BaseAnswering
POSThttps://x402.forgemesh.io/convert-cooking

Uptime100% 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.forgemesh.io/convert-cooking", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount":"2","from":"cup","ingredient":"flour","to":"g"}),
});
console.log(await res.json());

Example input

{
  "amount": "2",
  "from": "cup",
  "ingredient": "flour",
  "to": "g"
}