{"uid":"cap_BKegbHndMxqU2Wy64Lql-","slug":"brainiac-food-waste-estimator-094d8919","name":"BRAINIAC Food Waste Estimator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/restaurant-operations/food-waste-estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"sales":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","maxLength":40},"units":{"type":"number","maximum":1000000000,"minimum":0},"revenue":{"type":"number","maximum":1000000000,"minimum":0},"recipeId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"waste":{"type":"array","items":{"type":"object","properties":{"unit":{"type":"string","maxLength":40},"reason":{"type":"string","maxLength":160},"quantity":{"type":"number","maximum":1000000000,"minimum":0},"ingredientId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":200},"matrix":{"type":"array","items":{"type":"object","properties":{"claimed":{"type":"boolean"},"allergen":{"type":"string","maxLength":80},"recipeId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"prices":{"type":"array","items":{"type":"object","properties":{"asOf":{"type":"string","maxLength":40},"unit":{"type":"string","maxLength":40},"packSize":{"type":"number","maximum":1000000000,"minimum":0},"packPrice":{"type":"number","maximum":1000000000,"minimum":0},"unitPrice":{"type":"number","maximum":1000000000,"minimum":0},"supplierId":{"type":"string","maxLength":80},"ingredientId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"recipes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"portions":{"type":"number","maximum":1000000,"minimum":0},"yieldQty":{"type":"number","maximum":1000000000,"minimum":0},"sellPrice":{"type":"number","maximum":1000000000,"minimum":0},"yieldUnit":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":100},"allergens":{"type":"array","items":{"type":"object","properties":{"present":{"type":"boolean"},"allergen":{"type":"string","maxLength":80},"ingredientId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"ingredients":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"unit":{"type":"string","maxLength":40},"packSize":{"type":"number","maximum":1000000000,"minimum":0},"packPrice":{"type":"number","maximum":1000000000,"minimum":0},"unitPrice":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":200},"recipeLines":{"type":"array","items":{"type":"object","properties":{"unit":{"type":"string","maxLength":40},"quantity":{"type":"number","maximum":1000000000,"minimum":0},"recipeId":{"type":"string","maxLength":80},"ingredientId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":500}}},"responseSchema":{"type":"json","example":{"items":[{"unit":"g","reason":"spoilage","quantity":500,"unitPrice":0.004,"priceSource":"ingredient.unitPrice","ingredientId":"lettuce","estimatedCost":2,"priceInvented":false,"estimatedCostSupplied":true},{"unit":"kg","reason":"trim","quantity":0.2,"unitPrice":4,"priceSource":"ingredient.unitPrice","ingredientId":"lettuce","estimatedCost":0.8,"priceInvented":false,"estimatedCostSupplied":true}],"status":"estimated","findings":[],"checkedAt":"2026-11-04T21:00:00.000Z","limitations":["Recipes, supplier prices, sales, waste, and allergen rows are copied only from labeled fields supplied by the caller.","Recipe cost uses supplied quantities and prices after unit conversion. Missing prices are not invented.","Unit conversion covers common mass and volume units. Count units convert only to the same count family.","Allergen validation uses only explicitly supplied ingredient allergen flags and menu claims.","Nutritional values are never invented. No legal food-safety compliance is claimed."],"priceInvented":false,"allergenInvented":false,"nutritionInvented":false,"totalEstimatedCost":2.8,"totalEstimatedCostSupplied":true,"foodSafetyComplianceClaimed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4jY8O9drCV9cpFFCa8TQf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates food waste costs for a restaurant by analyzing waste logs, recipes, ingredient prices, and sales data","exampleAgentPrompt":"Estimate my restaurant's food waste costs — I had 500g of lettuce spoilage and 0.2kg of trim, the lettuce costs $4/kg, and I want to see a cost breakdown by ingredient and reason.","exampleUseCases":[{"title":"Daily spoilage cost audit","prompt":"I want to know what yesterday's food waste cost us — I have spoilage entries for lettuce (500g), tomatoes (1kg), and chicken (200g) with their unit prices. Can you give me an estimated cost breakdown by ingredient and reason?"},{"title":"Weekly waste report from CSV","prompt":"Can you analyze this CSV file of our weekly kitchen waste log and estimate the total cost of waste? It includes ingredient IDs, quantities, units, and reasons like trim and spoilage."},{"title":"Waste cost tied to recipe sales","prompt":"We ran 80 portions of recipe R42 last Friday and logged 1.2kg of vegetable trim and 300g of protein spoilage — can you estimate the waste cost given our supplier prices and flag any allergen issues?"}],"resultDescription":"A JSON object containing a list of waste line items each with estimated cost, unit price, price source, ingredient ID, quantity, and reason; a total estimated cost; a status field; allergen and nutrition invented flags; food safety compliance disclaimer; and a list of analytical limitations. Prices are only used when explicitly supplied — none are invented.","failureModes":["Missing ingredient prices result in items with no estimated cost (prices are never invented)","Unrecognized unit types prevent quantity conversion and cost calculation","Overly large input (CSV/JSON exceeding 200,000 characters) may be rejected","Malformed recipe or waste arrays may cause partial or empty results","allergen findings only appear if allergen matrix and ingredient flags are explicitly supplied"],"whenToPreferThis":"Use this endpoint when you need a transparent, deterministic cost estimate of restaurant food waste without any invented data — it explicitly flags when prices or nutritional values are missing rather than guessing. Ideal for restaurant operators, kitchen managers, or food-cost auditing agents that have structured waste logs, ingredient prices, and optionally recipes and sales data. Prefer this over general-purpose LLM analysis when auditability and clear sourcing of each price figure matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:50.383Z","isFirstParty":false,"canonicalSlug":"brainiac-food-waste-estimator-094d8919"}