{"uid":"cap_7lD_i-vOcNgKfD6FYikfM","slug":"x402-ai-gateway-currency-amount-converter-380c4772","name":"x402 AI Gateway — Currency Amount Converter","description":"Self-hosted AI API gateway. Expensive endpoints require an x402 micropayment (USDC on Base) before executing.","url":"https://api.fastapi.online/f/fx/aoa/wst?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"number","description":"Amount of the source currency to convert (default 1)"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0002","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.0002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bBD3viVRqz3vXq73kOPuK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a specified amount of a source currency, accessed via x402 micropayment on Base/USDC","exampleAgentPrompt":"Convert 50 units of my source currency using the x402 AI gateway — it charges a tiny USDC micropayment per call.","exampleUseCases":[{"title":"Quick single-currency amount conversion","prompt":"Convert 100 of my source currency through the x402 gateway — I just need the converted result and I'm fine with the $0.0002 USDC per-call fee."},{"title":"Automated FX rate check in agent workflow","prompt":"My workflow needs to convert 1 unit of the base currency on every step — can you hit the x402 AI gateway for each conversion and deduct the micropayment automatically?"},{"title":"Spot-check exchange value for budgeting","prompt":"I want to know what 250 of the source currency converts to — use the fastapi.online x402 gateway and pay the micropayment from my USDC wallet on Base."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion for the specified amount; exact fields depend on the gateway's internal model but typically include the converted value or exchange computation output.","failureModes":["402 Payment Required if the x402 micropayment (USDC on Base) is not provided or fails","Invalid amount input (non-numeric or missing) may return a 422 Unprocessable Entity","Gateway unavailable or self-hosted server down returns 503 or connection timeout","Insufficient USDC balance on Base wallet causes payment rejection and no execution","Unrecognized or unsupported currency codes may return empty or error response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use currency conversion that integrates natively with the x402 micropayment protocol on Base/USDC, especially in autonomous agent workflows where per-call billing via crypto micropayment is preferred over subscription-based FX APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:21.128Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}