{"uid":"cap_UG1IhO1lXOA7H5GAhmQKA","slug":"x402-ai-gateway-currency-amount-converter-c4f13193","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/ang/omr?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_4jGV1r6ZIBzhMzCOsy81n","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, gated behind an x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 units of source currency using the x402 AI Gateway fx endpoint — I need the converted result back.","exampleUseCases":[{"title":"Quick FX amount calculation","prompt":"Can you convert 500 of the source currency for me using the fx gateway? I need the converted amount right away."},{"title":"Micropayment-gated FX for agent workflow","prompt":"I'm building an automated workflow that needs currency conversion — use the x402 micropayment gateway to convert 1000 units and give me the result."},{"title":"Single unit exchange rate lookup","prompt":"What does 1 unit of the source currency convert to? Use the fx endpoint on the fastapi.online gateway to get the answer."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation, including the converted amount or equivalent value for the input currency quantity provided.","failureModes":["402 Payment Required — x402 micropayment not attached or insufficient USDC balance on Base","Invalid or missing 'amount' field — must be a numeric value","Unsupported currency pair — source or target currency not recognized","Network or gateway timeout from the self-hosted inference server","Empty or malformed response object if upstream FX data is unavailable"],"whenToPreferThis":"Choose this endpoint when you need a low-cost, per-call currency amount conversion accessible via the x402 micropayment protocol (USDC on Base), particularly in autonomous agent pipelines that already handle x402 payment flows. Prefer this over public free FX APIs when your stack is already integrated with the x402 payment rail and you want a unified self-hosted gateway experience.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:42:23.310Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}