{"uid":"cap_O2EdmvMaAnDnzVzBeE0bm","slug":"unit-converter-bb4b3034","name":"Unit Converter","description":"Convert a value between units — length, mass, volume, temperature, area, speed, pressure, energy, power, digital storage, time, angle, frequency and more. Unknown units or a conversion between incompatible measures (e.g. kg → km) are rejected as a clean 400.","url":"https://unit.openverbs.com/v1/convert","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["value","from","to"],"properties":{"to":{"type":"string","maxLength":32,"minLength":1,"description":"Target unit abbreviation, e.g. \"mi\", \"lb\", \"F\", \"MB\"."},"from":{"type":"string","maxLength":32,"minLength":1,"description":"Source unit abbreviation, e.g. \"km\", \"kg\", \"C\", \"GB\"."},"value":{"type":"number","description":"The numeric quantity to convert."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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_zI0FT21TvQC9TRC2kOz-I","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 a numeric value from one unit of measurement to another (length, mass, temperature, digital storage, etc.)","exampleAgentPrompt":"Can you convert 26.2 miles to kilometers for me?","exampleUseCases":[{"title":"Recipe unit conversion for cooking","prompt":"I have a recipe that calls for 250 grams of flour — can you convert that to ounces for me?"},{"title":"Temperature conversion for travel","prompt":"What is 38 degrees Celsius in Fahrenheit? I'm trying to figure out how hot it is going to be on my trip."},{"title":"Data storage size conversion","prompt":"My file is 2.5 GB — how many megabytes is that?"}],"resultDescription":"The API returns the converted numeric result corresponding to the input value expressed in the target unit, allowing the agent to present the converted measurement directly to the user.","failureModes":["Unrecognized or misspelled unit abbreviation (e.g. 'kilometre' instead of 'km') may return an error","Incompatible unit types (e.g. converting km to kg) will result in a conversion error","Missing required fields (value, from, or to) will return a validation error","Extremely large or small numeric values may cause precision issues"],"whenToPreferThis":"Choose this endpoint when you need a reliable, paid, low-latency unit conversion computation via API — especially in agentic workflows where deterministic numeric accuracy matters and you cannot rely on an LLM's internal math for unit conversions. Prefer this over in-context LLM calculation when precision and correctness are critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:22.607Z","isFirstParty":false}