{"uid":"cap_soLVrt1RmJoXitpzyMKmY","slug":"cooking-measurement-converter-df4154fd","name":"Cooking Measurement Converter","description":"Cooking measurement API: convert between cups, tbsp, tsp, ml, l, fl-oz, grams, kg, oz, lb — including volume↔weight using typical densities for 40+ ingredients (flour, sugar, butter, honey, rice...). A cup of flour is 120g but a cup of honey is 340g. For recipe scaling and grocery agents. Density results labeled approximate.","url":"https://x402.forgemesh.io/convert-cooking","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_WBUOGrGptobi3Di0aIP2q","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 between cooking units (volume and weight) with ingredient-aware density lookup for 40+ common ingredients like flour, sugar, and butter.","exampleAgentPrompt":"Convert 2.5 cups of all-purpose flour to grams — I need the weight for a recipe and I know volume-to-weight depends on the ingredient.","exampleUseCases":[{"title":"Metric recipe conversion for baking","prompt":"I have a recipe that calls for 3 cups of butter and 2 cups of sugar — can you convert both of those to grams so I can use my kitchen scale?"},{"title":"Grocery shopping weight from volume","prompt":"My recipe says 1.5 cups of honey but I want to buy it by weight at the store — how many grams is that?"},{"title":"Recipe scaling from tbsp to ml","prompt":"Convert 4 tablespoons of olive oil to milliliters for me."}],"resultDescription":"Returns the converted amount in the target unit. For volume-to-weight or weight-to-volume conversions, uses a built-in density table covering 40+ ingredients (flour, sugar, butter, honey, rice, etc.) and labels the result as approximate since densities vary by brand and packing method.","failureModes":["Missing ingredient parameter when performing volume-to-weight conversion — endpoint requires ingredient name for density lookup","Unsupported unit string — only recognized unit abbreviations (cups, tbsp, tsp, ml, l, fl-oz, g, kg, oz, lb) are accepted","Ingredient not in density database — only ~40 common ingredients are supported; exotic ingredients may fail or return an error","Invalid amount format — non-numeric or unparseable amount strings will cause errors","Volume-to-volume conversions between incompatible unit systems may yield unexpected errors if unit string is malformed"],"whenToPreferThis":"Choose this endpoint when you need cooking-specific unit conversions, especially volume-to-weight conversions that require ingredient density (e.g., cups of flour to grams). It is more accurate than a generic unit converter for culinary tasks because it knows that a cup of flour is 120g while a cup of honey is 340g. Prefer it for recipe scaling agents, grocery list builders, and any workflow where ingredient weight matters. For non-food unit conversions (miles to km, Fahrenheit to Celsius), use a general-purpose metric-imperial converter instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:09.756Z","isFirstParty":false}