{"uid":"cap_FsO7Xc26injh9phtEF_cf","slug":"cooking-measurement-converter-volume-weight-ingredient-aware-ff34bbc5","name":"Cooking Measurement Converter (Volume & Weight, Ingredient-Aware)","description":"Converts cooking measurements between volume units (cups, tbsp, tsp, ml, l, fl-oz) and weight units (g, kg, oz, lb), using ingredient-specific densities so a cup of flour and a cup of honey convert to their correct, different gram weights. For baking apps and recipe-scaling agents.","url":"https://x402.forgemesh.io/cups-to-grams","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"amount":{"type":"string"},"ingredient":{"type":"string","description":"required for volume↔weight"}}},"responseSchema":{"type":"json","example":{"note":"using typical density for flour (~120 g/cup)","result":240}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6j5xqGdIPuHtjR4C5ZurY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts cooking measurements between volume and weight units using ingredient-specific densities, so a cup of flour and a cup of honey each convert to their correct, different gram weights.","exampleAgentPrompt":"Can you convert 2.5 cups of all-purpose flour to grams for my bread recipe?","exampleUseCases":[{"title":"Recipe scaling for baking","prompt":"I need to convert 3/4 cup of honey to grams so I can weigh it out on my kitchen scale — can you do that conversion for me?"},{"title":"Metric recipe adaptation","prompt":"This recipe calls for 180g of rolled oats but I only have measuring cups — how many cups is that?"},{"title":"Ingredient substitution measurement","prompt":"I'm swapping cake flour for almond flour and need to know how many grams are in 1.5 cups of almond flour so I can adjust my recipe correctly."}],"resultDescription":"Returns the converted measurement value in the requested target unit, applying ingredient-specific density factors so that volume-to-weight conversions accurately reflect the actual mass of the specified ingredient (e.g. flour vs honey vs water each yield different gram values per cup).","failureModes":["Unrecognized ingredient name — API may return an error or fall back to a default density","Missing ingredient field when converting between volume and weight — required for those conversion types","Invalid unit strings for 'from' or 'to' fields — must use supported unit identifiers (cups, tbsp, tsp, ml, l, fl-oz, g, kg, oz, lb)","Amount not parseable as a numeric string — conversion cannot proceed","Attempting volume-to-volume or weight-to-weight conversions may not require ingredient but still need valid unit codes"],"whenToPreferThis":"Choose this endpoint when you need ingredient-aware cooking measurement conversions, especially volume-to-weight (e.g. cups to grams) where generic unit converters fail because they don't account for ingredient density. Prefer this over a generic unit conversion API whenever the ingredient matters for accuracy — flour, butter, honey, and water all have different gram weights per cup. Also ideal for baking and recipe-scaling agents that must handle mixed measurement systems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:13:44.977Z","isFirstParty":false}