# Cooking Unit Converter

> Cooking Unit Converter is a paid API for AI agents from units-convert.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Converts cooking measurements between volume and weight units (cups, tablespoons, teaspoons, ml, oz, grams, etc.) with ingredient-aware density for flour, sugar, butter, and more.

## Facts

- Endpoint: GET https://units-convert.x402tookit.com/cooking-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cooking-unit-converter-90792616
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kRW6QQlVTeklQP3ISrWV-

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 cooking-unit-converter-90792616
```

Example prompt: How many grams is 1.5 cups of flour? Convert from cups to grams using flour as the ingredient.

## When to prefer this

Use this endpoint when you need precise cooking measurement conversions, especially cross-domain conversions between volume and weight that require ingredient-specific density (e.g. cups of flour to grams). Prefer this over general unit converters when the context is culinary and ingredient identity matters for accuracy.

## Known failure modes

- Missing required 'value', 'from', or 'to' query parameters returns an error
- Cross-unit conversion between volume and weight without specifying an ingredient fails or returns degraded result
- Unsupported unit strings (not in allowed enum) return an error
- Unknown ingredient names may fall back to a generic or degraded density estimate

## How this service works

Convert cooking measures: cups, tablespoons, teaspoons, ml, ounces and grams, with weight for flour, sugar, butter and more.

## Output

Returns the converted numeric result along with the source and target units, a human-readable summary, the ingredient used (if any), the grams-per-cup density basis, and an optional disclaimer about approximation accuracy.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "cup, tbsp, tsp, ml, l, floz, oz, g, kg, lb"
      },
      "from": {
       "type": "string",
       "description": "cup, tbsp, tsp, ml, l, floz, oz, g, kg, lb"
      },
      "value": {
       "type": "number",
       "description": "Amount"
      },
      "ingredient": {
       "type": "string",
       "description": "Needed to cross between volume and weight, e.g. flour, sugar, butter, honey"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "to": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "from": {
       "type": [
        "null",
        "string"
       ]
      },
      "basis": {
       "type": [
        "null",
        "string"
       ]
      },
      "result": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "ingredient": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "gramsPerCup": {
       "type": [
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cooking-unit-converter-90792616/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from units-convert.x402tookit.com](https://www.zero.xyz/host/units-convert.x402tookit.com/llms.txt)
