{"uid":"cap_bPmR1YnH0h2lPIyT5iAGe","slug":"brainiac-recipe-yield-normalizer-f01f6443","name":"BRAINIAC Recipe Yield Normalizer","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/recipe-yield-normalize?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":[{"name":"Latte syrup base","lines":[{"unit":"l","quantity":1,"converted":true,"convertible":true,"ingredientId":"milk","normalizedUnit":"ml","normalizedQuantity":1000},{"unit":"kg","quantity":0.2,"converted":true,"convertible":true,"ingredientId":"sugar","normalizedUnit":"g","normalizedQuantity":200}],"portions":4,"recipeId":"R-1","yieldQty":1,"yieldUnit":"batch","perPortion":[{"unit":"ml","ingredientId":"milk","quantityPerPortion":250,"quantityPerPortionSupplied":true},{"unit":"g","ingredientId":"sugar","quantityPerPortion":50,"quantityPerPortionSupplied":true}],"portionsSupplied":true,"yieldQtySupplied":true,"nutritionInvented":false}],"status":"normalized","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,"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_ZEBOTKu31sGWb3XhpC9C1","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":"Normalizes recipe ingredient quantities and units across a set of recipes, computing per-portion breakdowns, costs, allergen matrix validation, and waste tracking without inventing missing data.","exampleAgentPrompt":"Normalize the yield and ingredient units for my Latte Syrup Base recipe — it makes 4 portions from 1 batch, using 1 kg milk and 200 g sugar — and calculate the per-portion quantities using my supplier prices of $1.20/l for milk and $0.80/kg for sugar.","exampleUseCases":[{"title":"Menu costing for new café launch","prompt":"I have 12 recipes for my new café menu. Here's the data including ingredients, quantities in mixed units, portion counts, and my supplier pack prices. Can you normalize all the units to standard mass and volume, compute cost per portion for each recipe, and flag any missing prices?"},{"title":"Allergen compliance check for restaurant chain","prompt":"We have a set of 30 recipes and an allergen matrix showing which dishes we claim are nut-free or gluten-free. Run a validation against our ingredient allergen flags and tell me if any of our menu claims are inconsistent with what's actually in the recipes."},{"title":"Waste and yield analysis for catering operation","prompt":"We're tracking ingredient waste across our catering kitchen — I have waste records for the last month by ingredient and reason, plus our recipe yields and sales by recipe ID. Can you normalize everything and show me per-portion ingredient usage alongside waste quantities so I can spot where we're losing the most?"}],"resultDescription":"A JSON object containing normalized recipe items, each with standardized ingredient lines (converted units, normalized quantities, per-portion breakdowns), yield info, portion counts, computed costs where prices are supplied, allergen findings, normalization status, a checkedAt timestamp, and a limitations list clarifying what was and was not computed or invented.","failureModes":["Missing required recipe fields cause those recipes to be skipped or flagged in findings","Unrecognized or non-convertible units (e.g. 'pinch', count-to-volume) are left unconverted with convertible=false","Missing supplier prices result in cost fields being omitted rather than invented","Allergen validation only covers explicitly supplied flags — undeclared ingredients produce no findings","Input CSV/JSON exceeding size limits returns a validation error","Malformed base64 file content causes a parsing error"],"whenToPreferThis":"Use this endpoint when you need to programmatically normalize and standardize recipe ingredient data — converting mixed units, computing per-portion costs, and validating allergen claims — especially in a restaurant, catering, or food-service context where data integrity matters and you do not want values invented. Prefer this over generic LLM-based recipe parsing when you need deterministic unit conversion, traceable cost computation from real supplier prices, and explicit flags distinguishing supplied vs. inferred values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T13:20:48.736Z","isFirstParty":false,"canonicalSlug":"brainiac-recipe-yield-normalizer-f01f6443"}