{"uid":"cap_UW_CeK90VkUT7S_uvOTZt","slug":"brainiac-restaurant-recipe-cost-calculator-39d1c1d8","name":"BRAINIAC Restaurant Recipe Cost Calculator","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-cost-calculate?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":"Cookie","lines":[{"unit":"g","lineCost":1,"quantity":500,"converted":false,"unitPrice":0.002,"priceSource":"ingredient.unitPrice","ingredientId":"flour","lineCostSupplied":true,"unitPriceSupplied":true},{"unit":"g","lineCost":1.2,"quantity":100,"converted":false,"unitPrice":0.012,"priceSource":"ingredient.packPrice/packSize","ingredientId":"butter","lineCostSupplied":true,"unitPriceSupplied":true}],"portions":10,"recipeId":"R-1","lineCount":2,"sellPrice":3,"totalCost":2.2,"priceInvented":false,"costPerPortion":0.22,"portionsSupplied":true,"nutritionInvented":false,"sellPriceSupplied":true,"totalCostSupplied":true,"costPerPortionSupplied":true}],"status":"calculated","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_bD6WQNDXGRxrsUdc5OuGl","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":"Calculates per-portion and total costs for restaurant recipes using ingredient prices, quantities, waste data, and sales figures, with allergen matrix validation","exampleAgentPrompt":"Calculate the cost per portion for my Cookie recipe (ID R-1): it uses 500g flour at $0.002/g and 100g butter at $0.012/g, makes 10 portions, and sells for $3 each — tell me the total recipe cost, cost per portion, and whether my sell price covers it.","exampleUseCases":[{"title":"Menu costing for new dishes","prompt":"I'm launching 5 new dishes at my bistro. Here are the recipes with ingredient quantities and my latest supplier prices — calculate the cost per portion for each one so I can figure out what to charge."},{"title":"Allergen matrix validation for menu","prompt":"Can you check my recipe list against our allergen data? I want to know which dishes contain nuts, dairy, or gluten based on the ingredient flags, and flag any mismatches with what we're claiming on the menu."},{"title":"Waste-adjusted food cost analysis","prompt":"We've logged $200 worth of ingredient waste this week — flour, butter, and eggs mostly. Can you recalculate our recipe costs factoring in that waste data so I can see the real cost per portion?"}],"resultDescription":"A JSON object with an array of recipe cost items, each containing the recipe name, ID, total cost, cost per portion, sell price, line-by-line ingredient costs with unit prices and quantities, portions count, and flags indicating which values were supplied vs derived. Also includes a status field, findings list, allergen and nutrition invention flags, a food safety disclaimer, and a list of calculation limitations.","failureModes":["Missing ingredient prices result in that line item being excluded rather than invented — cost may be understated","Unrecognized unit conversions (e.g. count-to-mass) will not be converted, leaving line costs unsupplied","Truncated or malformed CSV/JSON input may result in partial recipe parsing","Allergen validation only works if explicit allergen flags are provided on ingredients — missing flags are not inferred","Recipe IDs that don't match between recipes and prices arrays will produce missing price warnings","Exceeding maxItems limits (400 recipes, 400 prices, 200 waste rows) will cause input rejection"],"whenToPreferThis":"Use this endpoint when you need deterministic, auditable recipe cost calculations based on explicit supplier prices and quantities — it will not invent missing data, making it suitable for financial reporting and menu pricing decisions. Prefer this over general-purpose LLM food cost estimates when you need line-item transparency, unit conversion accuracy, or allergen claim cross-checking against structured ingredient data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T13:20:48.737Z","isFirstParty":false,"canonicalSlug":"brainiac-restaurant-recipe-cost-calculator-39d1c1d8"}