{"uid":"cap_YPPGeAEpCHsdqmX6vhUl7","slug":"pet-care-calc-food-portion-calculator-fa31822a","name":"Pet Care Calc – Food Portion Calculator","description":"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.","url":"https://pet-calc.x402tookit.com/food-portion?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"cupsPerMeal":{"type":["null","number"]},"gramsPerDay":{"type":["null","number"]},"gramsPerMeal":{"type":["null","number"]},"ouncesPerDay":{"type":["null","number"]},"treatPercent":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v_PSENDZ0PqwYc4WMrFOh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Daily kibble portions for a dog","prompt":"My dog's vet says she needs 900 kcal a day. Her dry food has 3,600 kcal per kg and there are 120 grams per cup. Can you tell me how many cups and grams to feed her per meal across 2 meals, with 10% set aside for treats?"},{"title":"Cat feeding plan with cup measurements","prompt":"I want to feed my cat 3 times a day — she needs 280 kcal daily and her food has 340 kcal per cup. How much should I give her each meal in cups, keeping 5% of calories for treats?"},{"title":"Multi-meal schedule for a working dog","prompt":"Our working dog needs 2,400 kcal per day and we feed him 4 times a day. His food is 4,200 kcal per kg and 105 grams per cup. How many grams and cups does he get per meal, with no treat allowance?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:48.376Z","isFirstParty":false,"canonicalSlug":"pet-care-calc-food-portion-calculator-fa31822a"}