Skip to main content
POST
Cooking Measurement Converter

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioValue
number

Amount

Required range: x >= 0
ioFromUnit
enum<string>

Unit

Available options:
cup,
tbsp,
tsp,
floz,
ml,
l,
g,
kg,
oz,
lb
ioIngredient
enum<string>

Ingredient (for volume ↔ weight)

Available options:
none,
all_purpose_flour,
bread_flour,
cake_flour,
whole_wheat_flour,
almond_flour,
coconut_flour,
rye_flour,
oat_flour,
cornstarch,
granulated_sugar,
brown_sugar_packed,
powdered_sugar,
honey,
maple_syrup,
corn_syrup,
molasses,
agave_nectar,
water,
milk_whole,
heavy_cream,
buttermilk,
vegetable_oil,
olive_oil,
coconut_oil,
sour_cream,
yogurt,
butter,
cream_cheese,
ricotta,
parmesan_grated,
cheddar_shredded,
white_rice,
brown_rice,
rolled_oats,
quinoa,
couscous,
breadcrumbs_dry,
panko,
almonds_whole,
walnuts_chopped,
pecans_chopped,
peanuts,
peanut_butter,
flax_seeds,
chia_seeds,
sesame_seeds,
sunflower_seeds,
coconut_shredded,
cocoa_powder,
baking_powder,
baking_soda,
salt_table,
salt_kosher,
ground_cinnamon,
ground_ginger,
black_pepper,
vanilla_extract,
chocolate_chips,
raisins,
dried_cranberries,
jam,
mayonnaise,
ketchup,
soy_sauce

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.