# Qty Recipe Scaler

> Qty Recipe Scaler is a paid API for AI agents from qty.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Scales a recipe's ingredient quantities by a deterministic factor to serve a different number of people

## Facts

- Endpoint: GET https://qty.vercel.app/v1/scale-recipe?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qty-recipe-scaler-3e9f02cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-v4afwAuXngRC1-e4T2f_

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 qty-recipe-scaler-3e9f02cf
```

Example prompt: I have a pasta recipe that serves 4 — can you scale it up to serve 6 people and tell me the exact scaling factor I need to multiply all the ingredients by?

## When to prefer this

Choose this endpoint when you need a deterministic, hallucination-free scaling factor for recipe quantities rather than asking an LLM to guess. It is ideal for cooking apps, meal planners, or any agent workflow that must reliably transform ingredient amounts without inventing numbers.

## Known failure modes

- Missing or invalid 'path' query parameter returns an error
- Unsupported recipe format or path may return no result
- Invalid HTTP method (POST, PUT) returns 405
- Malformed query parameters may result in a 400 bad request
- Payment failure via x402 returns 402 if USDC balance is insufficient

## How this service works

Qty converts known units for free and interprets messy quantities, prices, recipes, sizes, and dates in code. It never invents a number.

## Output

Returns a JSON object containing a numeric scaling factor (e.g. 1.5) and a definition ID (e.g. 'recipe.scale.servings.v1') confirming the computation type used. The agent can multiply each ingredient quantity by the factor to obtain the scaled recipe.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "path": {
       "type": "string"
      },
      "price": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "path": {
       "type": "string"
      },
      "price": {
       "type": "string"
      },
      "method": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "see": {
   "mcp": "/mcp",
   "docs": "/docs",
   "llms": "/llms.txt",
   "x402": "/.well-known/x402.json",
   "openapi": "/openapi.json",
   "llmsFull": "/llms-full.txt",
   "agentCard": "/.well-known/agent-card.json"
  },
  "recipe": {
   "factor": 1.5,
   "definitionId": "recipe.scale.servings.v1"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qty-recipe-scaler-3e9f02cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qty.vercel.app](https://www.zero.xyz/host/qty.vercel.app/llms.txt)
