# Pet Care Calc – Food Portion Calculator

> Pet Care Calc – Food Portion Calculator is a paid API for AI agents from pet-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates daily and per-meal pet food portions in grams, cups, and ounces from daily calorie needs and food energy density, with a configurable treat allowance.

## Facts

- Endpoint: GET https://pet-calc.x402tookit.com/food-portion?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pet-care-calc-food-portion-calculator-fa31822a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YPPGeAEpCHsdqmX6vhUl7

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 pet-care-calc-food-portion-calculator-fa31822a
```

Example prompt: My dog needs 1,200 kcal per day and his kibble has 3,500 kcal per kg — can you figure out how many grams per meal I should feed him, split across 3 meals, keeping 10% of calories for treats?

## When to prefer this

Use this endpoint when you already have a pet's daily calorie requirement (e.g. from the /daily-energy sibling endpoint) and a food label's energy density, and need precise per-meal portion sizes in multiple units. Prefer this over manual calculation when you want a treat allowance automatically deducted and results in both grams and cups simultaneously.

## Known failure modes

- Missing dailyKcal parameter returns a 400 error
- Neither kcalPerKg nor kcalPerCup provided causes an error
- treatPercent outside 0–30 range rejected
- meals value outside 1–8 range rejected
- Negative or zero calorie values are invalid

## How this service works

Grams, cups and per-meal portions of pet food from daily kcal and the food's kcal per kg or per cup, with a treat allowance.

## Output

Returns daily and per-meal food portions in grams, cups, and ounces, along with the calories allocated to treats, the adjusted food kcal after the treat budget, number of meals, and a human-readable summary with a veterinary 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": [
      "dailyKcal"
     ],
     "properties": {
      "meals": {
       "type": "integer",
       "description": "Meals per day, 1 to 8 (default 2)"
      },
      "dailyKcal": {
       "type": "number",
       "description": "Calories per day the pet needs (see /daily-energy)"
      },
      "kcalPerKg": {
       "type": "number",
       "description": "Food energy per kilogram from the label (use this or kcalPerCup)"
      },
      "kcalPerCup": {
       "type": "number",
       "description": "Food energy per cup from the label"
      },
      "gramsPerCup": {
       "type": "number",
       "description": "Grams in one cup of this food, to show both units (optional)"
      },
      "treatPercent": {
       "type": "number",
       "description": "Share of calories kept for treats, 0 to 30 percent (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "meals": {
       "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"
       ]
      },
      "foodKcal": {
       "type": [
        "null",
        "number"
       ]
      },
      "dailyKcal": {
       "type": [
        "null",
        "number"
       ]
      },
      "treatKcal": {
       "type": [
        "null",
        "number"
       ]
      },
      "cupsPerDay": {
       "type": [
        "null",
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pet-care-calc-food-portion-calculator-fa31822a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pet-calc.x402tookit.com](https://www.zero.xyz/host/pet-calc.x402tookit.com/llms.txt)
