{"uid":"cap_L6WX7bX5PDf6sVMGuaw1d","slug":"centralcity-ai-unit-converter-02fc3aac","name":"centralcity.ai Unit Converter","description":"Converts a value between two units of length, mass, volume or temperature.","url":"https://centralcity.ai/api/public/x402/off_f6eyp7736ic7xgq4?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"enum":["mm","cm","m","km","in","ft","yd","mi","mg","g","kg","oz","lb","ml","l","floz","gal","c","f","k"],"type":"string","description":"The unit to convert to, of the same kind as from."},"from":{"enum":["mm","cm","m","km","in","ft","yd","mi","mg","g","kg","oz","lb","ml","l","floz","gal","c","f","k"],"type":"string","description":"The unit of value: mm, cm, m, km, in, ft, yd, mi, mg, g, kg, oz, lb, ml, l, floz, gal, c, f, k."},"value":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"The value to convert."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yaWBQnnpvCK88eLqX6MI_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a numeric value from one unit to another across length, mass, volume, and temperature categories.","exampleAgentPrompt":"Can you convert 5.5 miles to kilometers for me?","exampleUseCases":[{"title":"Recipe ingredient measurement conversion","prompt":"I have a recipe that calls for 250 milliliters of milk, but I only have a measuring cup in fluid ounces — how much is that?"},{"title":"Body weight conversion for medical form","prompt":"I weigh 185 pounds and a form is asking for my weight in kilograms — what should I enter?"},{"title":"Temperature conversion for travel planning","prompt":"The weather forecast says it'll be 32 degrees Celsius in Rome next week — what is that in Fahrenheit?"}],"resultDescription":"The API returns the converted numeric value in the target unit, allowing the agent to present the result directly to the user or use it in downstream calculations.","failureModes":["Mismatched unit types (e.g. converting meters to kilograms) will return an error since 'from' and 'to' must be the same measurement category","Values outside the allowed range (-1,000,000,000,000,000 to 1,000,000,000,000,000) will be rejected","Invalid or unsupported unit codes will return a validation error","Network timeout or payment failure via x402 protocol may prevent the call from completing"],"whenToPreferThis":"Use this endpoint when you need a reliable, pay-per-use unit conversion across length (mm/cm/m/km/in/ft/yd/mi), mass (mg/g/kg/oz/lb), volume (ml/l/floz/gal), or temperature (c/f/k) without setting up any external library or service. It is ideal for agents that occasionally need conversion without bundling a local math library, and handles temperature correctly including nonlinear Fahrenheit/Celsius/Kelvin transformations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:36:58.421Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-unit-converter-ce7c4d8e"}