{"uid":"cap_v9xsTu_veJWSQ8RUQYjGI","slug":"fastapi-online-unit-converter-4b935f47","name":"fastapi.online Unit Converter","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/unit-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","maxLength":10,"minLength":1},"from":{"type":"string","maxLength":10,"minLength":1},"value":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HHwlzpvTZTjrWZFgeayvZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 unit via a simple POST call, priced per call with crypto.","exampleAgentPrompt":"Convert 250 pounds to kilograms for me — use the fastapi.online unit converter.","exampleUseCases":[{"title":"Recipe ingredient unit conversion","prompt":"I have a recipe that calls for 2.5 cups of flour but I only have a kitchen scale — can you convert 2.5 cups to grams for me?"},{"title":"Travel distance calculation","prompt":"I'm planning a road trip and the map shows 320 kilometers — how many miles is that?"},{"title":"Body weight unit conversion","prompt":"My doctor recorded my weight as 185 pounds but I need it in kilograms for this European health form — can you convert that?"}],"resultDescription":"Returns the numeric result of converting the given value from the source unit to the target unit. The response includes the converted value in the requested target unit.","failureModes":["Unsupported or unrecognized unit strings in 'from' or 'to' fields may return an error or null result","Invalid or missing 'value' field (non-numeric) causes a 400 validation error","Units from incompatible dimensions (e.g. converting kg to meters) may return an error","Payment failure or insufficient USDC balance returns a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a quick, programmatic unit conversion without requiring a full math library or external conversion service integration. It is ideal for AI agents that need to convert single values on-the-fly within a pay-per-call crypto-payment workflow (x402 protocol), and when no signup or API key setup is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:03:59.544Z","isFirstParty":false}