# Recipe Unit Converter with Ingredient Density

> Recipe Unit Converter with Ingredient Density is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts recipe measurements between volume and weight units using real ingredient densities for 40+ common ingredients.

## Facts

- Endpoint: POST https://x402.forgemesh.io/recipe-unit-converter
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/recipe-unit-converter-with-ingredient-density-dc79a8bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pmxHJF6LWRnQ6_qjFHZ75

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability recipe-unit-converter-with-ingredient-density-dc79a8bf -d '<json body>'
```

Example prompt: How many grams is 1.5 cups of all-purpose flour? I need the volume-to-weight conversion using real flour density.

## When to prefer this

Choose this endpoint when you need recipe-specific unit conversions that account for ingredient density — especially for volume-to-weight (cups to grams) or weight-to-volume (grams to cups) conversions where a generic unit converter would give wrong results. Prefer this over a general metric-imperial converter when the input involves food ingredients and cooking measurements.

## Known failure modes

- Unsupported unit pair returns an error (e.g. converting grams to cups without specifying an ingredient)
- Unknown or unsupported ingredient name may return a generic density or error
- Ingredient field omitted for volume-to-weight conversion will fail or return inaccurate results
- Invalid or non-numeric amount input returns a validation error

## How this service works

Recipe measurement converter for cups, tablespoons, teaspoons, milliliters, liters, fluid ounces, grams, kilograms, ounces, and pounds — including volume-to-weight conversion using real ingredient densities for flour, sugar, butter, honey, rice, and 40+ others. For recipe scaling, meal-prep apps, and grocery-list agents.

## Output

Returns the converted measurement value in the requested target unit, using real ingredient-specific density data for volume-to-weight or weight-to-volume conversions, along with the conversion factor or density used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "amount": {
   "type": "string"
  },
  "ingredient": {
   "type": "string",
   "description": "required for volume↔weight"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "using typical density for flour (~120 g/cup)",
  "result": 240
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/recipe-unit-converter-with-ingredient-density-dc79a8bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
