Ingredient Batch Scale
Scale a recipe across multiple output batches and report purchasing increments and unused ingredient quantity.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /ingredient-batch-scale/v1/check with an x402 V2 client.
Worked example
Request
{
"servings": 10,
"batch_outputs": [
15,
5
],
"ingredients": [
{
"id": "flour",
"base_grams": 400,
"purchase_grams": 500
}
]
}Result
{
"total_servings": 20,
"ingredients": [
{
"id": "flour",
"batch_grams": [
600,
200
],
"needed_grams": 800,
"purchase_units": 2,
"unused_grams": 200
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter