# Cooking Calculators – Recipe Scaler

> Cooking Calculators – Recipe Scaler is a paid API for AI agents from cooking-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-04).

Scales a recipe's ingredient list up or down by target servings or a multiplier, returning tidy fractional quantities, unit bumping, optional gram weights, and scaling cautions.

## Facts

- Endpoint: GET https://cooking-calc.x402tookit.com/recipe-scale?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cooking-calculators-recipe-scaler-abdd535c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HwtVJN1xBL_-F7136isr4

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-calculators-recipe-scaler-abdd535c
```

Example prompt: I have a cookie recipe that makes 24 servings — 2 cups flour; 1 tsp baking soda; 1/2 tsp salt; 1 cup butter; 3/4 cup sugar — can you scale it up to 60 servings and include gram weights?

## When to prefer this

Use this endpoint when you need to programmatically scale a recipe's ingredient list to a different number of servings or by a custom multiplier, especially when you want human-friendly fractional output (e.g. '1 1/4 cups' instead of '1.25 cups'), automatic unit bumping (teaspoons to tablespoons), or optional gram weights for baking precision. Prefer it over manual math or general-purpose LLM arithmetic when accuracy and tidy formatting matter.

## Known failure modes

- Missing or unparseable ingredient lines returns an error or empty items list
- Factor out of range (outside 0.1–20) may be rejected or produce unexpected results
- Unknown ingredient names will not get gram weight matches (ingredientMatched will be null)
- Ambiguous unit strings may not be bumped correctly
- Very large batches may trigger scaling caution warnings in the reasons array

## How this service works

Scale a recipe's ingredient list by servings or factor: tidy fractions, spoon-to-cup bumping, optional grams, scaling cautions.

## Output

Returns a list of scaled ingredient objects, each with the original quantity string, the new scaled quantity (as a tidied fraction or whole number), the unit (bumped up when appropriate, e.g. teaspoons to tablespoons), optional gram weight and a matched ingredient name, plus a summary, the effective scaling factor, any scaling cautions or reasons, and a disclaimer.

## 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": [
      "ingredients"
     ],
     "properties": {
      "grams": {
       "type": "boolean",
       "description": "true to add gram weights for volume measures of known ingredients"
      },
      "factor": {
       "type": "number",
       "description": "Or a multiplier, 0.1 to 20 (instead of servings)"
      },
      "toServings": {
       "type": "number",
       "description": "Servings you want"
      },
      "ingredients": {
       "type": "string",
       "description": "Ingredient lines separated by semicolons or new lines, for example '2 cups flour; 1 1/2 tsp salt; 3 eggs'"
      },
      "fromServings": {
       "type": "number",
       "description": "Servings the recipe makes (use with toServings)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "items": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": [
           "null",
           "string"
          ]
         },
         "unit": {
          "type": [
           "null",
           "string"
          ]
         },
         "grams": {
          "type": [
           "null",
           "number"
          ]
         },
         "scaled": {
          "type": [
           "null",
           "string"
          ]
         },
         "original": {
          "type": [
           "null",
           "string"
          ]
         },
         "quantity": {
          "type": [
           "null",
           "number"
          ]
         },
         "gramsNote": {
          "type": [
           "null",
           "string"
          ]
         },
         "ingredientMatched": {
          "type": [
           "null",
           "string"
          ]
         }
        }
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cooking-calculators-recipe-scaler-abdd535c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cooking-calc.x402tookit.com](https://www.zero.xyz/host/cooking-calc.x402tookit.com/llms.txt)
